Can you post hihi.pdf?
 
Paulo

________________________________

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Gerold Krommer
        Sent: Friday, September 07, 2007 9:17 AM
        To: [email protected]
        Subject: [iText-questions] Is a flattened form special?
        
        

         

        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.

         



Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.

-------------------------------------------------------------------------
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