Hi
how to add pages to my main pdf dynamically to the size of my data coming from a database, using dynamicPDF Merger. I have 4 fixed textboxes and one multiline textbox which can contain 25 rows.
I would like to be able to create a pdf that increases the amount of pages depending on the amount of data, for example one page holds 25 rows, so if I had 60 rows, I would need 3 pages to hold this data, does anyone have any examples or ideas on how to achieve this.
Regards
Luc
Need helps !
Re: Need helps !
Support · Sep 7, 2007Hello Luc,
Yes, you can dynamically add new pages to the document depending on the size of the data you are getting from the database. You can use the GetOverflowTextArea method of the TextArea which gives the overflow text which does not fit in the given dimensions of the text area. You can add a new page to the document and add the overflow text to the new page. You can do this in a loop until the overflow text exists. You can refer to the TextContinuation
topic on our help documentation.
Thanks,
ceTe Software Support Team.
Re: Need helps !
Forum member · Sep 10, 2007I wonder if you got any sample using MergeDocument instead to create textarea on the fly. I have already a pdf document with form fields. I can send you my code and could you advise me on the best approach. I really appreciate any help you could give me.
Best Regards
Re: Need helps !
Support · Sep 10, 2007Hello,
Yes, You can use the MergeDocument to add text area without any problem. You can send your code and the existing PDFs you are using to our [^a|mailto:support@cete.com|Support Team^] so that they can take a look at it. Also please specify in detail what exactly you wanted to achieve and what problems are you having with your current code and PDFs?.
Thanks,
ceTe Software Support Team.