I am using iText 2.0.4 to create a single document out of many document
contained in a DMS repository. This works flawlessly. Some of the
documents in the DMS are already PDF and inclusion of them is no
problem.

To separate the documents I insert a cover sheet with some information
about the following document (date created, owner , whathaveyou) and use
a static PDF form (created in LC Designer 7) to fill in the fields.

Then I flatten the single page form and want to include it in my output
stream. The same code that works with other PDFs gives me an empty page
and absolutely no error.

 

This is the absolutely trivial code snippet which I basically copied
from 'iText in Action' which I'm a proud owner of.

 

PdfReader pdfCoverReader = new PdfReader("C:\\hihi.pdf");   <-- this is
the flattened form

      PdfImportedPage pip = _pdfWriter.getImportedPage(pdfCoverReader,
1);

      Image foo = Image.getInstance(pip);

      _pdfDocument.add(foo);

      _pdfDocument.newPage();

 

Since this works in other places, this makes me wonder if there is
something special about the flattened forms.

 

/DI Gerold Krommer

Manager Pre- und Postsales

ASTRON Business Services  G.m.b.H., Vienna, Austria

Tel.: +43 1 585 31 90-22

Fax: +43 1 585 31 90-15

 

CONFIDENTIAL NOTICE: The contents of this message, including any
attachments, are confidential and are intended solely for the use of the
person or entity to whom the message was addressed. If you are not the
intended recipient of this message, please be advised that any
dissemination, distribution, or use of the contents of this message is
strictly prohibited. If you received this message in error, please
notify the sender. Please also permanently delete all copies of the
original message and any attached documentation. Thank you.

 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to