Help required for Updating pdf Document
- From: Sandeep Waghmare <Sandeep.Waghmare (at) lntinfotech.com>
- Date: Wed, 31 May 2006 20:04:14 +0530
Hi,
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.
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. 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.
I have attached the source Code (ModifyExistingPDF.java)
and corresponding PDF files.
Input.pdf =>
This is Taken as original document to which we want to append same content.
Output.pdf => This is
generated output file (Problem the new content doesn’t start from second
page it is appended from next new page i.e. third page)
Any suggestion in the method, which I have adopted, or
any other way to achieve the expected result is welcomed.
Thanks & Regards,
Sandeep
The information contained in this email has been classified
as:
[ ] L&T Infotech General Business
[x] L&T Infotech Internal Use
[ ] L&T Infotech Confidential
[ ] L&T Infotech Proprietary
This email may contain confidential or privileged information for the intended
recipient(s). If you are not the intended recipient, please do not use
or disseminate the information, notify the sender and delete it from your
system.
______________________________________________________________________
Attachment:
ModifyExistingPDF.java
Description: Binary data
Attachment:
Input.pdf
Description: Binary data
Attachment:
Output.pdf
Description: Binary data