Thanks Alexis. Yes pdf template is corrupted.

 

From: Alexis Pigeon [mailto:[email protected]] 
Sent: Tuesday, January 27, 2009 4:35 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] java.io.IOException: Rebuild failed: trailernot 
found.; Original message: null

 

Hi Anil,

On 27/01/2009, Anil Meesala (HCL Financial Services) <[email protected]> 
wrote:

I am getting the following error,while executing this statement 

java.io.IOException: Rebuild failed: trailer not found.; Original message: null

pdfReader = new PdfReader(templateDirName+pdfTemplate); 

where templateDirName="where my templates are 
there(ex:/export/enterprise-docs/templates")".

                pdfTemplate="templatefileName(Ex:BLRCHF.pdf)"


Please provide a standalone java code that reproduces the error. If it doesn't 
contain any confidential data, please post the PDF file too.

I'm no PDF specialist, but I would say the culprit is the PDF file. Have you 
tried opening it with a PDF viewer? Does it mention the file is corrupted, and 
it has to be rebuilt?

Cheers,
alexis


DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to