Re: [iText-questions] Pdf Encryption and Gif files failing

2013-06-25 Thread Marc Campforts
uot;Marc Campforts" > , > Date: 25/06/2013 01:53 AM > Subject: Re: [iText-questions] Pdf Encryption and Gif files failing > > > > > On Mon, 24 Jun 2013 17:35:01 +0200, Marc Campforts > wrote: > &g

Re: [iText-questions] Pdf Encryption and Gif files failing

2013-06-24 Thread Chris . Egan
-bit to 24-bit colour the Firefox viewer displayed the images correctly. This may also work with gif images. Chris Egan From: "iText Mailing List" To: itext-questions@lists.sourceforge.net, "Marc Campforts" , Date: 25/06/2013 01:53 AM Subject:Re: [

Re: [iText-questions] Pdf Encryption and Gif files failing

2013-06-24 Thread iText Mailing List
On Mon, 24 Jun 2013 17:35:01 +0200, Marc Campforts wrote: > I have a pdf with a transparent gif in it. > When I set encryption with > Writer.setEncryption(null, null, PdfWriter.ALLOW_PRINTING | > PdfWriter.ALLOW_COPY, PdfWriter.STANDARD_ENCRYPTION_128); > the gif is showing with wrong colors.

Re: [iText-questions] Pdf Encryption and Gif files failing

2013-06-24 Thread iText Mailing List
On Mon, 24 Jun 2013 17:35:01 +0200, Marc Campforts wrote: > I have a pdf with a transparent gif in it. > When I set encryption with > Writer.setEncryption(null, null, PdfWriter.ALLOW_PRINTING | > PdfWriter.ALLOW_COPY, PdfWriter.STANDARD_ENCRYPTION_128); > the gif is showing with wrong colors.

Re: [iText-questions] PDF Encryption

2011-12-08 Thread Balder VC
On 08/12/11 15:14, mkl wrote: > Satti, > > Satti wrote >> any suggestions > > I never had to do that myself, it is merely obvious that first signing, then > encrypting cannot work. > > Google'ing around a bit I stumbled on an old thread on that topic: > > http://itext-general.2136553.n4.nabbl

Re: [iText-questions] PDF Encryption

2011-12-08 Thread mkl
Satti, Satti wrote > any suggestions I never had to do that myself, it is merely obvious that first signing, then encrypting cannot work. Google'ing around a bit I stumbled on an old thread on that topic: http://itext-general.2136553.n4.nabble.com/Encrypt-and-Sign-tp2139044p2139045.html Encrypt

Re: [iText-questions] PDF Encryption

2011-12-08 Thread Satti
Thanks Again Michael. I tried to sign and then encrypt the document using PdfStamper but I am getting the following exception "com.lowagie.text.DocumentException: Append mode does not support encryption." Even If I remove the Append mode I still get an Exception "com.lowagie.text.DocumentExcepti

Re: [iText-questions] PDF Encryption

2011-12-08 Thread Satti
Thanks Again Michael I tried to encrypt the document after signing using PdfStamper but I get an exception "com.lowagie.text.DocumentException: Append mode does not support encryption." If I remove the append mode I get the following exception "com.lowagie.text.DocumentException: Content was al

Re: [iText-questions] PDF Encryption

2011-12-08 Thread mkl
Satti, Satti wrote > Is there any way we can encrypt a pdf having signature fields in them? > > I want the pdf which consists of signature fields should allow only > printing rather editing. Not a posteriori. You can encrypt and sign concurrently, though. Regards, Michael -- View this messag

Re: [iText-questions] PDF Encryption

2011-12-08 Thread Satti
Thanks Michael for the quick response. Is there any way we can encrypt a pdf having signature fields in them? I want the pdf which consists of signature fields should allow only printing rather editing. -- View this message in context: http://itext-general.2136553.n4.nabble.com/PDF-Encryption-t

Re: [iText-questions] PDF Encryption

2011-12-08 Thread mkl
Satti, Satti wrote > I am trying to encrypt a pdf file using PdfStamper class. The pdf contains > filled signature fields. After encrypting the pdf, the signature fields > get corrupted. Can anyone propose a solution for this. Do not expect encrypting an already signed file to keep signatures val

Re: [iText-questions] PDF encryption as a Web Service on a JDK 1.4 based Application Server

2011-07-19 Thread aeternum
1T3XT BVBA wrote: > > On 19/07/2011 14:49, aeternum wrote: >> You are my hero of the day! It works now > Wow, it was a final attempt (without much hope that it would work). > I'm happy it works! Padding myself on the shoulder ;-) > Well-deserved! -- View this message in context: http://it

Re: [iText-questions] PDF encryption as a Web Service on a JDK 1.4 based Application Server

2011-07-19 Thread 1T3XT BVBA
On 19/07/2011 14:49, aeternum wrote: > You are my hero of the day! It works now Wow, it was a final attempt (without much hope that it would work). I'm happy it works! Padding myself on the shoulder ;-) -- Magic Quadrant

Re: [iText-questions] PDF encryption as a Web Service on a JDK 1.4 based Application Server

2011-07-19 Thread aeternum
1T3XT BVBA wrote: > > What if you change the encryption type (Standard encryption instead of > AES)? > You are my hero of the day! It works now -- View this message in context: http://itext-general.2136553.n4.nabble.com/PDF-encryption-as-a-Web-Service-on-a-JDK-1-4-based-Application-Server-

Re: [iText-questions] PDF encryption as a Web Service on a JDK 1.4 based Application Server

2011-07-19 Thread 1T3XT BVBA
On 19/07/2011 14:02, aeternum wrote: > When using iText 5.1 with JDK 1.6.0_26 and this code it works just great... I > am totally lost now I can't think of a reason why it wouldn't work in iText 2.1.7. I see that you've now tried using different passwords for user and owner, so we've ruled that out

Re: [iText-questions] PDF encryption as a Web Service on a JDK 1.4 based Application Server

2011-07-19 Thread aeternum
When using iText 5.1 with JDK 1.6.0_26 and this code it works just great... I am totally lost now ... :((( /import java.io.FileOutputStream; import java.io.IOException; import com.itextpdf.text.DocumentException; import com.itextpdf.text.pdf.PdfReader; import com.itextpdf.text.pdf.PdfStamper; imp

Re: [iText-questions] PDF encryption as a Web Service on a JDK 1.4 based Application Server

2011-07-19 Thread aeternum
I just created a standalone App using this code. As JDK i used 1.4.2_12. The "TestEncrypted.pdf" is created but no user password set! :( /import java.io.FileOutputStream; import java.io.IOException; import com.lowagie.text.DocumentException; import com.lowagie.text.pdf.PdfReader; import com.lowa

Re: [iText-questions] PDF encryption as a Web Service on a JDK 1.4 based Application Server

2011-07-19 Thread Paulo Soares
It may be a problem setting the same password for user and owner. Paulo -Original Message- From: aeternum [mailto:marcus.kl...@gmail.com] Sent: Tuesday, July 19, 2011 11:34 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] PDF encryption as a Web Service on a

Re: [iText-questions] PDF encryption as a Web Service on a JDK 1.4 based Application Server

2011-07-19 Thread 1T3XT BVBA
On 19/07/2011 12:33, aeternum wrote: > If it would, the return > parameter wouldnt be filled, but it is. I know; it was just a long shot. I was almost sure that wasn't the problem. > The pdf-data i am throwing to the > web service gets returned and can be displayed. Just the pwd is not set at > a

Re: [iText-questions] PDF encryption as a Web Service on a JDK 1.4 based Application Server

2011-07-19 Thread aeternum
Thx for the answer. I have included the Bouncy Castle Jars (bcprov-jdk14-146.jar and bcmail-jdk14-146.jar) into the classpath and the application doenst throw an exception at all. If it would, the return parameter wouldnt be filled, but it is. The pdf-data i am throwing to the web service gets retu

Re: [iText-questions] PDF encryption as a Web Service on a JDK 1.4 based Application Server

2011-07-19 Thread 1T3XT BVBA
On 19/07/2011 12:06, aeternum wrote: > Has anyone an idea what could be wrong with this code? Or is there an issue > with the encryption function of the iText release 2.1.7? The standard answer is iText 2.1.7 is no longer supported, but that doesn't help you as you have no other option of using tha

Re: [iText-questions] Pdf encryption

2011-03-09 Thread 1T3XT BVBA
Op 8/03/2011 22:28, Balaji, Madhusudhan (Citco) schreef: > Hi, > > I have a quick question related to our current application. We need to > encrypt pdf and currently using 128 bit encryption using PDFStamper and > PdfWriter.ENCRYPTION_AES_128. This is working as expected and we are using > cl

Re: [iText-questions] pdf encryption

2010-08-12 Thread 1T3XT info
Alex Symeonidis wrote: > >/* chapter03/HelloWorldEncryptDecrypt.java */ > PdfEncryptor.encrypt(new PdfReader("HelloWorldNotEncrypted.pdf"), > new FileOutputStream("HelloWorldEncrypted2.pdf"), > "Hello".getBytes(), "World".getBytes(), > PdfWriter.AllowDegradedPrinting, > PdfWrit

Re: [iText-questions] PDF Encryption

2010-06-28 Thread wilson gwapo
thank you very much.. it works now.. more power to you paulo! --- On Mon, 6/28/10, Paulo Soares wrote: From: Paulo Soares Subject: Re: [iText-questions] PDF Encryption To: "Post all your questions about iText here" Date: Monday, June 28, 2010, 6:26 PM Don't use the same p

Re: [iText-questions] PDF Encryption

2010-06-28 Thread Paulo Soares
Don't use the same password for the user and the owner. Paulo From: wilson gwapo [mailto:wilsonr...@yahoo.com] Sent: Monday, June 28, 2010 11:13 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] PDF Encryption Hi, I have a problem encryptin

Re: [iText-questions] Pdf Encryption

2009-09-22 Thread 1T3XT info
Bharathram wrote: > What I missed regarding the contents and password encrypt?why the contents > are displayed though the correct password is give?what is the relation > between the password encryption and the text/string available in PDF file? Your sentences miss cohesion and it's not clear what

Re: [iText-questions] PDF Encryption

2009-08-30 Thread Leonard Rosenthol
streams & fonts are a separate issue ;). Leonard -Original Message- From: Paulo Soares [mailto:psoa...@glintt.com] Sent: Saturday, August 29, 2009 10:42 PM To: Post all your questions about iText here Subject: Re: [iText-questions] PDF Encryption The PDF reference doesn't d

Re: [iText-questions] PDF Encryption

2009-08-29 Thread Paulo Soares
The PDF reference doesn't define any encoding, just bytes. In a german locale Acrobat will encode as cp1252 and in a japanese one maybe SJIS, iText uses 8859-1 as it could use anything. getISOBytes() is used to quick convert chars that are known to be in range, it's not a generic converter, for

Re: [iText-questions] pdf encryption

2007-05-11 Thread Paulo Soares
That error means that your crypto provider doesn't have that algorithm. Use bouncycastle as the crypto provider and it will work. See http://www.bouncycastle.org/wiki/display/JA1/Provider+Installation. Paulo - Original Message - From: "Hans Lund" <[EMAIL PROTECTED]> To: Sent: Friday,

Re: [iText-questions] PDF Encryption Options

2007-01-19 Thread Paulo Soares
iText only sets the bits, it's up to Acrobat to allow or not allow. There's no issue here. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Tallat Hussain > Sent: Friday, January 19, 2007 11:22 AM > To: itext-questions@lists.sourceforge.ne

Re: [iText-questions] PDF Encryption and Metadata

2006-06-01 Thread Leonard Rosenthol
At 10:06 AM 6/1/2006, Craig wrote: >I'm using iText to encrypt PDF documents. The problem I'm running >into is that >the metadata seems to be encrypted as well. I know Acrobat 6 and later can >encrypt a PDF's contents without encrypting the metadata. Does iText support >similar functionality?

RE: [iText-questions] PDF Encryption

2005-11-11 Thread satish babu
Hi Thanks, Will it give the special markers for the updated page (on the top corner). I think so. Right?. Will it work same in all pdf editors? Thanks KC. --- Paulo Soares <[EMAIL PROTECTED]> wrote: > That's the right option for printing. What's the > problem? > > > -Original Message--

RE: [iText-questions] PDF Encryption

2005-11-11 Thread Paulo Soares
That's the right option for printing. What's the problem? > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of satish babu > Sent: Friday, November 11, 2005 12:32 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] PDF Encrypt

Re: [iText-questions] PDF Encryption

2005-10-06 Thread Leonard Rosenthol
At 02:25 AM 10/6/2005, satish babu wrote: I am compound around the same issue from a long back. I have created one encrypted pdf file for our project. In that i ve given user pwd as "uesr" and no master pwd. Then it is fine. Now user has to open this file by giving user pwd. Pdf writers n

Re: [iText-questions] PDF encryption - avoid copying

2005-08-29 Thread Paulo Soares
Replace PdfWriter.AllowFillIn with 0. - Original Message - From: "satish babu" <[EMAIL PROTECTED]> To: Sent: Monday, August 29, 2005 7:14 AM Subject: [iText-questions] PDF encryption - avoid copying Hi i am doing pdf encryption. Now i am able to restrict the user not to print the mo

RE: [iText-questions] PDF encryption and Signature

2004-08-19 Thread Paulo Soares
API. Best Regards, Paulo Soares > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Peter Soelter > Sent: Thursday, August 19, 2004 12:39 PM > To: [EMAIL PROTECTED] > Subject: Re: [iText-questions] PDF encryption and Signature

Re: [iText-questions] PDF encryption and Signature

2004-08-19 Thread Peter Soelter
Hi Shashi, you're on the right path. - but in step 3. you should put placeholders in the values /ByteRange and /Contents (e.g. zeros or whatever). - after writing out the resulting PDF (step 4.) you should work only on these placeholders, you don't need iText any more (you must not use it

RE: [iText-questions] PDF Encryption

2002-10-10 Thread Paulo Soares
ED]] > Sent: Thursday, October 10, 2002 3:59 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [iText-questions] PDF Encryption > > At 9:43 AM +1000 10/10/02, <[EMAIL PROTECTED]> wrote: > > > That's because the file has a master password (whi

Re: [iText-questions] PDF Encryption

2002-10-09 Thread Leonard Rosenthol
At 9:43 AM +1000 10/10/02, <[EMAIL PROTECTED]> wrote: > >That's because the file has a master password (which controls >> access to the security settings) but not a user password (which >> control access to the document). > > Are you saying the document Encrypt dictionary has not got

Re: [iText-questions] PDF Encryption

2002-10-09 Thread phillip
> That's because the file has a master password (which controls > access to the security settings) but not a user password (which > control access to the document). Are you saying the document Encrypt dictionary has not got a /U entry? If so, open the file in a text editor, search

Re: [iText-questions] PDF Encryption

2002-10-09 Thread Leonard Rosenthol
At 5:31 PM +1000 10/9/02, <[EMAIL PROTECTED]> wrote: >I have attached an encrypted PDF file. But it seems that you do not need >password to open it. Does anyone know what is the trick in this PDF? I >guess object 1077 is playing some game here. That's because the file has a master passwor

RE: [iText-questions] PDF Encryption

2002-10-09 Thread Paulo Soares
The question is on how to crack it or how to produce an encrypted document with the same characteristics? Best Regards, Paulo Soares > -Original Message- > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, October 09, 2002 8:32 > To: [EMAIL PROTECTED] > Subject: