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: [email protected], "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.

[iText-questions] Pdf Encryption and Gif files failing

2013-06-24 Thread Marc Campforts
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

[iText-questions] PDF Encryption

2011-12-08 Thread Satti
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. Here is the code I am using public void encryptPdfDoc() throws IOException, DocumentException {

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:[email protected]] Sent: Tuesday, July 19, 2011 11:34 AM To: [email protected] 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

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

2011-07-19 Thread aeternum
Hello, i am currently working on a Proof-of-Concept to expose the encryption functionality of iText as a web service for external consumption. As this Web Service is supposed to run on a SAP Netweaver Application Server 7.0 which is still based on Java 1.4.2 i cant use the latest iText release :(

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

[iText-questions] Pdf encryption

2011-03-08 Thread Balaji, Madhusudhan (Citco)
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 client certificate to do this. Now we have new requirement to move away

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

[iText-questions] pdf encryption

2010-08-12 Thread Alex Symeonidis
/* chapter03/HelloWorldEncryptDecrypt.java */ PdfEncryptor.encrypt(new PdfReader("HelloWorldNotEncrypted.pdf"), new FileOutputStream("HelloWorldEncrypted2.pdf"), "Hello".getBytes(), "World".getBytes(), PdfWriter.AllowDegradedPrinting, PdfWriter.STRENGTH128BITS); Does this stuff real

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:[email protected]] Sent: Monday, June 28, 2010 11:13 AM To: [email protected] Subject: [iText-questions] PDF Encryption Hi, I have a pr

[iText-questions] PDF Encryption

2010-06-28 Thread wilson gwapo
Hi, I have a problem encrypting a pdf files.Password works but i should not be able to copy any content from pdf document.this works in acrobat reader 8 but in version 9 i can be able to select text, copy the selected text and paste it anywhere. below is the code im currently using. pdf.PdfEncry

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

[iText-questions] Pdf Encryption

2009-09-22 Thread Bharathram
PdfWriter writer = PdfWriter.getInstance(document,new FileOutputStream("d:\\HelloEncrypted.pdf")); writer.setEncryption("Hello".getBytes(), "Hello".getBytes(), PdfWriter.ALLOW_COPY | PdfWriter.ALLOW_PRINTING, PdfWriter.STANDARD_ENCRYPTION_128); document.open(); document.add(new Paragr

Re: [iText-questions] PDF Encryption

2009-08-30 Thread Leonard Rosenthol
streams & fonts are a separate issue ;). Leonard -Original Message- From: Paulo Soares [mailto:[email protected]] 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
erter, for that there are other methods in Java and in PdfEncodings. Paulo - Original Message - From: "Michael Bell" To: Sent: Saturday, August 29, 2009 7:46 AM Subject: [iText-questions] PDF Encryption 1. The javadocs don't define the character set of the encoding for

[iText-questions] PDF Encryption

2009-08-28 Thread Michael Bell
1. The javadocs don't define the character set of the encoding for the byte[] signature to PDFEncryptor.encrypt. Of course a byte array without a character encoding makes no sense. What is the acceptable character encodings (see #2) ? This should be corrected. 2. Cracking open the code, I see th

Re: [iText-questions] pdf encryption

2007-05-11 Thread Paulo Soares
gt; To: Sent: Friday, May 11, 2007 8:17 AM Subject: [iText-questions] pdf encryption > I'm trying to use iText to encrypt documents using public keys and the > PdfStamper > > > This is what I have tried: > > Certificate[] certs = certificateStream == null ? null : >

[iText-questions] pdf encryption

2007-05-11 Thread Hans Lund
I'm trying to use iText to encrypt documents using public keys and the PdfStamper This is what I have tried: Certificate[] certs = certificateStream == null ? null : (Certificate[])CertificateFactory.getInstance("X.509"). generateCertificates(certifi

Re: [iText-questions] PDF Encryption Options

2007-01-19 Thread Paulo Soares
AM > To: [email protected] > Subject: [iText-questions] PDF Encryption Options > > Hi, > > We are facing some issues related to Encryption options for > PDF documents. > If we apply the option "Allow contents to be modified" or > "Change the Document&q

[iText-questions] PDF Encryption Options

2007-01-19 Thread Tallat Hussain
Hi, We are facing some issues related to Encryption options for PDF documents. If we apply the option "Allow contents to be modified" or "Change the Document", then automatically "Document Assembly" will be allowed, but we did not explicitly apply the "document assembly" setting. Is it right tha

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?

[iText-questions] PDF Encryption and Metadata

2006-06-01 Thread Craig
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? Thanks...

RE: [iText-questions] PDF Encryption

2005-11-11 Thread satish babu
> > -Original Message- > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] > On > > Behalf Of satish babu > > Sent: Friday, November 11, 2005 12:32 PM > > To: [email protected] > > Subject: [iText-questions] P

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: [email protected] >

[iText-questions] PDF Encryption

2005-11-11 Thread satish babu
Hi!!! Again we have got the pdf encryption problem. Still we are getting the problem form users. Actually we want to protect the pdf file that is not able to do any operations apart from the printing. Previously the user is taking the printout by updating the page or copying the page to new

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

[iText-questions] PDF Encryption

2005-10-05 Thread satish babu
Hi.. 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 not allow to open the file also. So we a

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

[iText-questions] PDF encryption - avoid copying

2005-08-28 Thread satish babu
Hi i am doing pdf encryption. Now i am able to restrict the user not to print the modified copy with the following code but, still user is copying the text from the page and pasting in the new page and taking the modified print from that new page. Can u pls give me how to restrict the user n

[iText-questions] PDF encryption... small clarification .. pls!

2005-08-26 Thread satish babu
Hi, i am doing pdf encryption. It is working fine. but We want to give only print permissin and shuld not be editable. when the pdf file is opened it is giving worning msg as "the pdf is procted not able to edit". But when we try to edit the text it is editable and not able to save changes, bu

[iText-questions] Pdf encryption problem - secure modify

2005-08-25 Thread satish babu
Hi, i am doing pdf encryption. It is working fine. but We want to give only print permissin and shuld not be editable. when the pdf file is opened it is giving worning msg as "the pdf is procted not able to edit". But when we try to edit the text it is editable and not able to save changes, bu

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

[iText-questions] PDF encryption and Signature

2004-08-13 Thread SUper duper
Hi,   I ma doing the following steps one by one please let me know where I am doing wrong.   I want to sign and encrypt an existing PDF document.   Here are the steps I follow.   1. I open the document in PDF reader. 2. I creat a new PDFwriter. 3. Do the copy of pages, Bookmars. and then add the s

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
D] > Subject: [iText-questions] PDF Encryption > > Hi Folks: > > 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. > > Any id