[iText-questions] RE: Copying a PDF File

2006-03-03 Thread Segev, Eli
Thanks! Your suggestion worked. Eli Segev 781-370-6096 -Original Message- From: bruno [mailto:[EMAIL PROTECTED] Sent: Friday, March 03, 2006 9:53 AM To: Segev, Eli Cc: itext-questions@lists.sourceforge.net Subject: Re: Copying a PDF File Segev, Eli wrote: >Bruno, > >The

[iText-questions] RE: Copying a PDF File

2006-03-03 Thread Segev, Eli
Bruno, The offending lines are: com.lowagie.text.pdf.PdfName len = new com.lowagie.text.pdf.PdfName(String.valueOf(meta.length)); stream.put(com.lowagie.text.pdf.PdfName.LENGTH, len); What is wrong here? If I take these lines out, everything is fine. -Original Message- From: br

[iText-questions] Re: Copying a PDF File

2006-03-03 Thread bruno
Segev, Eli wrote: Bruno, The offending lines are: com.lowagie.text.pdf.PdfName len = new com.lowagie.text.pdf.PdfName(String.valueOf(meta.length)); stream.put(com.lowagie.text.pdf.PdfName.LENGTH, len); What is wrong here? If I take these lines out, everything is fine. 'len' shoul

[iText-questions] Re: Copying a PDF File

2006-03-02 Thread bruno
Segev, Eli wrote: I have some code that I wrote to learn how to use iText. The code copies one file to another file. I copy pages and metadata. For some reason adding metadata corrupts the file. The original file was created with Adobe Illustrator. Without writing the metadata, AI can open