[iText-questions] last page trouble

2006-09-15 Thread Michael Shmulenson
I have a strange issue related to concatenation of PDFs. Everything works very well (almost). I am able to process dozens of pdfs, while adding headers and footers. The problem occurs when certain pdfs are the last to get concatenated. From what I can tell, there is nothing special about these

Re: [iText-questions] problem with adding table to template

2006-09-15 Thread Mark Storer
Have a look at PdfTable's writeSelectedRows() methods.  You can get the direct content from a page with PdfStamper and go from there...    Keep in mind that you'll have to take care of positioning and page breaks "manually".  When writing to a PdfContentByte directly, you loose all Documen

Re: [iText-questions] IllegalArgumentException: The key /Contents istoo big. (RSA 2k ???)

2006-09-15 Thread Android Andrew [:]
Thank you Paulo! After I've changed to "new byte[256]", program works with 2k length key, but generates invalid signature with 1k length key. As I understand, 1k length key requires 128 byte digest, 2k length key - 256 byte. Is it possible to determinate required digest size depending on key siz

[iText-questions] problem with adding table to template

2006-09-15 Thread Blumenberg, Kristi
I’m trying to add a table to a pdf file that has a template added to it.  The template PDF file that has a few text fields for date, title, etc.  To get those fields and set them, I believe I have to use a PdfStamper object.  Then I want to add a table to the document, but I’m not sure how

Re: [iText-questions] IllegalArgumentException: The key /Contents istoo big. (RSA 2k ???)

2006-09-15 Thread Paulo Soares
Replace "new byte[128]" with "new byte[256]". Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Android Andrew [:] > Sent: Friday, September 15, 2006 12:42 PM > To: iText-questions@lists.sourceforge.net > Subject: [iText-questions] IllegalAr

Re: [iText-questions] Using an existing PDF as a template

2006-09-15 Thread bruno
Keko wrote: >Hi all, > >I've to create some PDFs with two 'layers': an image (background), which >is the same for all, and text (foreground), unique for each PDF file. > > Read the image into a PdfImportedPage object. When you create the document, add the PdfImportedPage to each page in an onEn

Re: [iText-questions] replace font (iText)

2006-09-15 Thread Tibi
Paulo Soares consiste.pt> writes: > > I attached source code in my last mail to do what you want to do. If you > don't understand it maybe you should ask someone else to do your work. > > Paulo OK, sorry, I didn't find the attached file in your mail. :-) It escapes my attention. I overlook o

[iText-questions] IllegalArgumentException: The key /Contents is too big. (RSA 2k ???)

2006-09-15 Thread Android Andrew [:]
Hello everybody! I've faced with problem similar to described here: 26 Oct 2005 http://www.mail-archive.com/itext-questions@lists.sourceforge.net/msg19419.html If I'm using 1k length private key, everything is Ok, but if I try to use 2k length key, I get this: Exception in thread "main" java.l

[iText-questions] Using an existing PDF as a template

2006-09-15 Thread Keko
Hi all, I've to create some PDFs with two 'layers': an image (background), which is the same for all, and text (foreground), unique for each PDF file. I've seen how to do this in the samples, but i don't know if its possible to have a template PDF (with the image), and add only the foreground

Re: [iText-questions] how to read pict file

2006-09-15 Thread Damien Drix
Maybe QuickTime for Java would be a solution? http://developer.apple.com/quicktime/qtjava/ http://developer.apple.com/samplecode/Java/idxQuickTime-date.html Once you have a java.awt.Image for your PICT file, use the itext Image.getInstance() to wrap it into an iText object, or draw it to a Graph

Re: [iText-questions] replace font (iText)

2006-09-15 Thread Paulo Soares
I attached source code in my last mail to do what you want to do. If you don't understand it maybe you should ask someone else to do your work. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Tibi > Sent: Friday, September 15, 2006 12:13

Re: [iText-questions] replace font (iText)

2006-09-15 Thread Tibi
Paulo Soares consiste.pt> writes: > > I found a program I did some time ago to embedd a TrueType font. In this > program processResource() does more or less the same as > BaseFont.getDocumentFonts() and refNum is the reference to the font > descriptor. > > Paulo Hello, I'm not found "refNum"

Re: [iText-questions] how to read pict file

2006-09-15 Thread Paulo Soares
Those are files created in Mac QuickDraw. iText doesn't support them. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of narendra babu > Sent: Friday, September 15, 2006 11:42 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-q

[iText-questions] how to read pict file

2006-09-15 Thread narendra babu
can somebody tell me how to read the image data from the .pict file.   i am finding the difficulty in doing that as i have to do this within a few days, i have to read the image data present in the file also the icc profile in the file. Find out what India is talking about on - Yahoo!

Re: [iText-questions] replace font (iText)

2006-09-15 Thread Paulo Soares
I found a program I did some time ago to embedd a TrueType font. In this program processResource() does more or less the same as BaseFont.getDocumentFonts() and refNum is the reference to the font descriptor. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED

Re: [iText-questions] replace font (iText)

2006-09-15 Thread Tibi
Paulo Soares consiste.pt> writes: > > It can be done with BaseFont.getDocumentFonts(). This will get you the > font name and the reference to the font dictionary. From there on refer > to the PDF reference to add the actual font stream to the font > descriptor. > > Paulo Thanks for your (B