Text and fields

Text and fields

Forum member · Jun 5, 2008
I am new to DynamicPDF, so my question might seem simple. I have a PDF file that I want to use it as a template for the PDF files I want to dynamically generate. The template contains some text and some images. Let's take an example: This is the template PDF: http://ikonsoft.ro/temp/doc.pdf Originally, I have created the template using MS Word then I printed it out to PDF. The fields are marked between « and ». I need to be able to: 1. Replace the fields with actual data 2. Insert a picture at the position specified by the field «Fld_ImagePosition». The resulting document should look like this: http://ikonsoft.ro/temp/doc_gen.pdf Because the actual value of a field may be a long text (like the list of new features), the subsequent text should automatically slide, just like in MS Word. Questions: 1. How to prepare the template so that it will be easy to be parsed and replace the fields with actual text? 2. How to identify the fields and replace them with actual values? I can tell you that I didn't play very much with the component, so please be patient with me and also please provide me some code samples for my problems. Thanks.

Re: Text and fields

Support · Jun 5, 2008
Hello, It is not possible to read the text from an existing PDF document to replace the text with some other elements. You can add any new elements including text and images to an existing PDF using the X, Y position. You can create a PDF template adding some text and form fields to it using the Generator product. Later you can replace the form fields with some other text and images without any problem using the Merger product. But it can not move the other existing elements of the PDF document to accommodate the new text or the image. Thanks, ceTe Software Support Team.

Re: Text and fields

Forum member · Jun 9, 2008
Ok, I guess I should generate the documents without the use of a template document. Comes up another question. I want to control the formatiing inside the paragraph. That is, some words inside a paragraph should be bolded, while the paragraph should adjust the text flow accordingly. Is that possible?

Re: Text and fields

Support · Jun 9, 2008
Hello, Yes, you can add formatting for the text by using the FormattedTextArea page element. This will take the formatted text (HTML) and you can add bold, colored etc text to the PDF. You can refer to the FormattedtextArea page element and the tags supported by the FormattedTextArea on our help documentation. You can also use the GetOverflowFormattedTextArea method to get the overflow text and you can add this text to a new page without any problem. Thanks, ceTe Software Support Team.