Data is dynamically genarated, i want to write(append to the end of file) this data to a pdf file without loosing the previous data.
Asked
Active
Viewed 3,010 times
-1
-
*append to the **end of file*** - do you mean **starting on a new page** or do you mean somehow **after the last content of the current last page**? – mkl Jul 25 '15 at 10:15
-
Last content of the current page – user3305286 Jul 25 '15 at 10:26
-
You can start by creating the new text in a new PDF and then using the dense merge tool from [this answer](http://stackoverflow.com/a/28024276/1729265) or the very dense merge tool from [this answer](http://stackoverflow.com/a/29078954/1729265). – mkl Jul 25 '15 at 11:46
-
Thanks,For each time when the script is run, it should check first existing file is created or not. If existing file is created, it should write the data at the end of the file without loosing the old data for the previous run. – user3305286 Jul 25 '15 at 12:49
1 Answers
1
Please try this :-
- Example [http://itextpdf.com/examples/iia.php?id=123 ]
- Example [Appending a data in itext in existing pdf ]

Community
- 1
- 1

mukesh kumar Jangid
- 408
- 3
- 13
-
Thanks for the information, is there is other way we can append data to the pdf file without creating a copy – user3305286 Jul 25 '15 at 08:33