[iText-questions] Is there a way to set owner password null (No)

2006-04-27 Thread abc xyz
hi all i have a pdf file "abc.pdf" now i want to make changing in this existing file("abc.pdf"). i m using PdfStamper class to making changes in existing file. i set the user and owner password using pdfStamper.setEncryption() method. i supply values of both passwaords as null. but when i opened

[iText-questions] Is there a way to set an initial zoom for the viewer to display PDF file

2006-04-27 Thread abc xyz
hi all i have a pdf file "abc.pdf" now i want to make changing in this existing file("abc.pdf"). i m using PdfStamper class to making changes in existing file. i have done all i need but i could not set the initial zoom for new changed file. can any one help me to set the initial zoom of changed

[iText-questions] Newbie question about placing text

2006-04-27 Thread Greg Spence
Hi there. I'm a new user to iText but have spent quite a bit of time reading the documentation already. What is the preferred method for placing text so that it is confined (wraps) to a rect that I specify. I know how to place text at an absolute position, but I don't see how I can constrain it

Re: [iText-questions] PDFReader doesn't Garbage Collect

2006-04-27 Thread Paulo Soares
When did you expect PdfReader to be garbage collected? In your code it's used up to end. Paulo - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Thursday, April 27, 2006 4:57 PM Subject: [iText-questions] PDFReader doesn't Garbage Collect Hi All, I'm generating a Book (PD

[iText-questions] PDFReader doesn't Garbage Collect

2006-04-27 Thread elvis.novas
Hi All,   I’m generating a Book (PDF file) using Java. The book is made of several existent pdf files (mostly images) as pages and when this book reaches a significant amount of MBs I’m running out memory. Checking the process using OptimizeIt in JBuilder I’m noticing that PDFReader is no

Re: [iText-questions] Soft-Mask Dictionaries

2006-04-27 Thread Leonard Rosenthol
At 02:22 PM 4/27/2006, Michael J. Mueller wrote: thanks for the posting an example. I looked at it with a text editor. It is rather complicated. Yes, it is. It shows off a variety of transparency features. Are you sure that besides using Soft-Mask Images also Soft-Mask Dictionaries

Re: [iText-questions] Soft-Mask Dictionaries

2006-04-27 Thread Michael J. Mueller
Hi Leonard, thanks for the posting an example. I looked at it with a text editor. It is rather complicated. Are you sure that besides using Soft-Mask Images also Soft-Mask Dictionaries are used. I am still trying to cook up a simple example which is not easy because Soft-Mask dictinonaries are ra

[iText-questions] How to determine end of data

2006-04-27 Thread Ken
I am creating a report that contains a table of data from numerous   files. On all pages but the first, there is a line of text containing   the names of the table columns. When processing each new file, I first   issue document.newPage(), which causes the page event handler to print   the colu

Re: [iText-questions] How to check if a PDF is password-protected?

2006-04-27 Thread Zhi Ren
Hi, Bruno, Thank you! Sorry! Please forgive me I am a kind of slow here. I have checked PDF Spec. If I understand what you said right, (1) If I know owner password, of course, I can open and manipulate the PDF with iText. I understand this. (2) If I have a pdf file which has no owner password, bu

[iText-questions] PDFReader doesn't Garbage Collect

2006-04-27 Thread Elvis Novas
Hi All,   I’m generating a Book (PDF file) using Java. The book is made of several existent pdf files (mostly images) as pages and when this book reaches a significant amount of MBs I’m running out memory. Checking the process using OptimizeIt in JBuilder I’m noticing that PDFReader is not “garb

Re: [iText-questions] Convert HTML to PDF

2006-04-27 Thread Bruno Lowagie
Parag Keshavji Sangoi wrote: Hi, Could you please let me know if iText can convert html/rtf to PDF file? RTF: no HTML: yes, but no. It can parse certain HTML files, but there are other products (built on top of iText) that do a much better job. Also can iText use XML and XSLT and genera

[iText-questions] Convert HTML to PDF

2006-04-27 Thread Parag Keshavji Sangoi
Hi,   Could you please let me know if iText can convert html/rtf to PDF file?   Also can iText use XML and XSLT and generate a final PDF document?   Thanks, Kavan CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATI

Re: [iText-questions] Printing PDF without opening the document.

2006-04-27 Thread Vineet Reynolds
Vivek, to be more specific you could look at this page - http://www.noliturbare.com/ChicksTools.htmlOn 4/27/06, Vineet Reynolds <[EMAIL PROTECTED]> wrote: Thanks Bruno.Vivek, you could try if the programs available at http://www.noliturbare.com/ can match your needs.These are not my programs thou

Re: [iText-questions] Printing PDF without opening the document.

2006-04-27 Thread Vineet Reynolds
Thanks Bruno.Vivek, you could try if the programs available at http://www.noliturbare.com/ can match your needs.These are not my programs though. But they're worth a try. You could ask the author (Govert) regarding any licensing issues for commercial projects. On 4/27/06, bruno <[EMAIL PROTECTED]>

RE: [iText-questions] Far cry for help with JPEG in PDF

2006-04-27 Thread Leonard Rosenthol
At 07:15 AM 4/27/2006, Petter Nyström wrote: If I am not to mess with the PRStream but instead make a new PdfStream, my problem revolves around how to set up the new PdfStream in a manner so it has all the properties of the old one. I can copy the PdfDictionary values easily enough,

Re: [iText-questions] How to check if a PDF is password-protected?

2006-04-27 Thread bruno
Zhi Ren wrote: Hi, Bruno, Thanks! So, if isEncrypted() return true, it is user-password protected. It's not that simple. Please read the PDF Reference on user/owner passwords. But, in iText there are only constructors which take ownerPassword as input like: PdfReader(String filename, byte[

Re: [iText-questions] How to check if a PDF is password-protected?

2006-04-27 Thread Zhi Ren
Hi, Bruno, Thanks! So, if isEncrypted() return true, it is user-password protected. But, in iText there are only constructors which take ownerPassword as input like: PdfReader(String filename, byte[] ownerPassword). So my question is: How to open a user-password-protected pdf file in iText? My

RE: [iText-questions] Far cry for help with JPEG in PDF

2006-04-27 Thread Paulo Soares
It can't be done in a reliable way without changing the library. I'll get back to you next week with some kind of solution. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Petter Nyström > Sent: Thursday, April 27, 2006 12:15 PM > To: it

RE: [iText-questions] Far cry for help with JPEG in PDF

2006-04-27 Thread Petter Nyström
On Mon, 17 Apr 2006, Paulo Soares wrote: You shouldn't be messing with PRStream. Create a new PdfStream with the right filters to replace the old PRStream. Don't forget to kill the old PRStream with PdfReader.killIndirect(). I have been pondering this and trying to do things the right way as

Re: [iText-questions] Printing PDF without opening the document.

2006-04-27 Thread bruno
Vivek Mishra wrote: Hi, There is this requirement to print all the PDF's kept in a folder on a Windows XP based machine without opening all the individual documents. There will be a batch program which will run and will scan all the PDFs and print the same without opening the individual fil

[iText-questions] Printing PDF without opening the document.

2006-04-27 Thread Vivek Mishra
Hi, There is this requirement to print all the PDF's kept in a folder on a Windows XP based machine without opening all the individual documents. There will be a batch program which will run and will scan all the PDFs and print the same without opening the individual files. How can I proceed wi

RE: AW: [iText-questions] splitting a pdf file

2006-04-27 Thread Paulo Soares
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alan > Sent: Wednesday, April 26, 2006 8:41 PM > To: itext-questions@lists.sourceforge.net > Subject: RE: AW: [iText-questions] splitting a pdf file > > Hi Bruno, > Good news about the book... > >

RE: AW: [iText-questions] splitting a pdf file

2006-04-27 Thread Alan
I understand - when I get a minute I'll se what I can find out. Cheers AlanK -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of bruno Sent: Thursday, 27 April 2006 5:29 PM To: itext-questions@lists.sourceforge.net Subject: Re: AW: [iText-questions] splitting

Re: AW: [iText-questions] splitting a pdf file

2006-04-27 Thread bruno
Alan wrote: Hi Bruno, Good news about the book... Does "reader.SelectPages()" retain the Layers on a page? Can I add new graphics to an existing Layer? I haven't tried this yet. Unfortunately I don't have the time to look into this for the moment. br, Bruno

Re: [iText-questions] How to check if a PDF is password-protected?

2006-04-27 Thread bruno
Zhi Ren wrote: Hi, Does anyone know: with iText how to check if a PDF is password-protected ? A password protected file is encrypted, so you need the method isEncrypted() http://itextdocs.lowagie.com/docs/com/lowagie/text/pdf/PdfReader.html#isEncrypted() br, Bruno -