Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
JSP - A mailing list about Java Server Pages specification and reference
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Reading encrypted PDF-fileswithoutuser-pa         ssword

Reading encrypted PDF-fileswithoutuser-pa         ssword

2006-07-18       - By Humbold, Stefan

 Back
Hello Paulo,

thanks a lot!

Stefan

-- --Urspr?ngliche Nachricht-- --
Von: itext-questions-bounces@(protected)
[mailto:itext-questions-bounces@(protected)] Im Auftrag von Paulo
Soares
Gesendet: Dienstag, 18. Juli 2006 13:31
An: Post all your questions about iText here
Betreff: Re: [iText-questions] Reading encrypted PDF-fileswithoutuser-pa
ssword


It was a bug, the owner key was set to blank. It's fixed in the CVS.

Paulo

> -- --Original Message-- --
> From: itext-questions-bounces@(protected)
> [mailto:itext-questions-bounces@(protected)] On
> Behalf Of Humbold, Stefan
> Sent: Tuesday, July 18, 2006 7:01 AM
> To: 'Post all your questions about iText here'
> Subject: Re: [iText-questions] Reading encrypted
> PDF-fileswithoutuser-pa ssword
>
> yes, of course. I post the pdf-file, user-password is "user"
> (but you can
> also take the pdf-file from the tutorial ...
> http://itextdocs.lowagie.com/tutorial/general/HelloEncrypted.pdf)
> I also post you my simple small demo-program to decrypt the
> pdf-file without
> password.
>
> Stefan
>
>
> -- --Urspr?ngliche Nachricht-- --
> Von: itext-questions-bounces@(protected)
> [mailto:itext-questions-bounces@(protected)] Im
> Auftrag von Paulo
> Soares
> Gesendet: Montag, 17. Juli 2006 16:46
> An: Post all your questions about iText here
> Betreff: Re: [iText-questions] Reading encrypted PDF-files
> withoutuser-pa
> ssword
>
>
> If Acrobat asks for a password, then iText will also need
> one. Can you post
> the PDF?
>
> Paulo
>
> > -- --Original Message-- --
> > From: itext-questions-bounces@(protected)
> > [mailto:itext-questions-bounces@(protected)] On
> > Behalf Of Humbold, Stefan
> > Sent: Monday, July 17, 2006 2:39 PM
> > To: 'Post all your questions about iText here'
> > Subject: Re: [iText-questions] Reading encrypted PDF-files
> > withoutuser-pa ssword
> >
> > just now i recognized, that i can only decrypt the
> encrypted pdf-file
> > without password, if i use PdfWriter.STRENGTH128BITS during
> > encryption.
> > --> PdfReader reader = new PdfReader(pdfEncrypted.pdf);
> >
> > If i use PdfWriter.STRENGTH40BITS, i need the user-password
> > --> PdfReader reader = new PdfReader(pdfEncrypted.pdf,
> > "userPW".getBytes());
> >
> > But i hope, it is not the solution, just to set the encryption to 40
> > bit...
> >
> >
> > -- --Urspr?ngliche Nachricht-- --
> > Von: itext-questions-bounces@(protected)
> > [mailto:itext-questions-bounces@(protected)] Im Auftrag
> > von Paulo Soares
> > Gesendet: Montag, 17. Juli 2006 13:53
> > An: Post all your questions about iText here
> > Betreff: Re: [iText-questions] Reading encrypted PDF-files without
> > user-password
> >
> >
> > If you have a user password it will certainly need the password to
> > open it. What's the behaviour in Acrobat when opening the doc?
> >
> > Paulo
> >
> > > -- --Original Message-- --
> > > From: itext-questions-bounces@(protected)
> > > [mailto:itext-questions-bounces@(protected)] On Behalf
> > > Of stefan humbold
> > > Sent: Monday, July 17, 2006 12:02 PM
> > > To: itext-questions@(protected)
> > > Subject: [iText-questions] Reading encrypted PDF-files
> > > without user-password
> > >
> > > Hello iTexter,
> > >
> > > i want to make encrypted PDF-files with iText (iText v1.4.2, JDK
> > > 1.5.0):
> > >
> > > ...
> > > PdfWriter writer = PdfWriter.getInstance(document, new
> > > FileOutputStream(pdfEncrypted.pdf));      
> > > writer.setEncryption(PdfWriter.STRENGTH128BITS,
> > > "userPW", "ownerPW", permissions);
> > > ...
> > >
> > > My user password in this example is "userPW".
> > >
> > > I thougt, that this encryption is secure and that i
> > > need the user-password to read the encrypted pdf-File.
> > >
> > > But now i can open the generated file with iText
> > > without user password.... the user password is simple null!
> > >
> > > ...
> > > PdfReader reader = new PdfReader(pdfEncrypted.pdf);
> > > PdfEncryptor.encrypt(reader, new
> > FileOutputStream(pdfDecrypted.pdf),
> > > null, null, PdfWriter.AllowPrinting, false);
> > > ...
> > >
> > > Now i can save the decrypted file without encryption.
> > >
> > > Even if i take the encrypted pdf-file from the iText -Tutorial, i
> > > don't need a password to open the file with iText... my
> password is
> > > again null.
> > > (http://itextdocs.lowagie.com/tutorial/general/HelloEncrypted.pdf)
> > > I don't know, if this is a bug or a feature?
> > >
> > > But if i take the encrypted pdf-file from itextsharp
> > > (http://itextsharp.sourceforge.net/examples/Chap0110.pdf)
> > > , i get --> java.io.IOException Source code of java.io.IOException: Bad user password
> > > This pdf-file seems to be encrypted correct.
> > >
> > > Seems, that the PDF-Files encrypted by java-iText can always be
> > > deyrypted by java-iText. Independent of the giffen
> password during
> > > encryption. Did i make any mistake(s) during encryption?
> > >
> > > Hope for help!
> > > Humbi


Aviso Legal:
Esta mensagem ? destinada exclusivamente ao destinat?rio. Pode conter
informa??o confidencial ou legalmente protegida. A incorrecta transmiss?o
desta mensagem n?o significa a perca de confidencialidade. Se esta mensagem
for recebida por engano, por favor envie-a de volta para o remetente e
apague-a do seu sistema de imediato. ? proibido a qualquer pessoa que n?o o
destinat?rio de usar, revelar ou distribuir qualquer parte desta mensagem.

Disclaimer:
This message is destined exclusively to the intended receiver. It may
contain confidential or legally protected information. The incorrect
transmission of this message does not mean the loss of its confidentiality.
If this message is received by mistake, please send it back to the sender
and delete it from your system immediately. It is forbidden to any person
who is not the intended receiver to use, distribute or copy any part of this
message.

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID?VDEV
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
iText-questions mailing list iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID?VDEV
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions

©2008 junlu.com - Jax Systems, LLC, U.S.A.