Sandeep Waghmare wrote:

We are facing problem while Updating existing PDF document.
Actually requirement is => we are having one PDF file, which gets updated frequently, and on each update we are appending (image or text) at the end of file.

You are mixing two concepts here.
You can append a page at the end of the document.
The result is a PDF file with 1 cross-reference table.
You can append content at the end of the file.
The result is a PDF file with more than 1 cross-reference table.
From your description it is impossible to find out what you mean.

As per the IText API I think it is not directly possible to update existing pdf document so I have created new pdf document and copied the original pdf content to the new document and then added the new content.

You could read the byte[] of an existing file into a PdfReader object
and write to a file with the original name using PdfStamper (or PdfCopy).
But what you are doing is OK too.

It's working fine but problem with this method is every time it is adding new content on new pdf page instant of continuing from the blank space in previous page.

Of course it is adding a new page.
PDF is a PDL (Page Description Language).
It is NOT a Word processing format.
What makes you think what you are asking is possible?

Any suggestion in the method, which I have adopted, or any other way to achieve the expected result is welcomed.

What you are asking for is not possible.
br,
Bruno


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to