Merge dynamic documents

Merge dynamic documents

Forum member · Nov 13, 2007
Is it possible to merge dynamically created PDF documents into another newly created document? I want to create 2 letter size (8.5x11) PDFs dynamically, then rotate and drop them on to another PDF document that is tabloid size (11x17). I don't see the abilility to use straight document objects with MergeDocument (couldn't locate them in the constructor). Thanks in advance.

Re: Merge dynamic documents

Support · Nov 13, 2007
From how you described it, if your ultimate goal is to have one tabloid size page that consists of two sides of different content and all the content is being created dynamically (meaning none of the PDF documents existed before the application ran) then it would actually be advisable to only build one tabloid size page. I wouldn't recommend building the two letter documents when what you really need is a tabloid document. In other words, is there something preventing you from just first creating one tabloid document, and instead of creating a letter document to later be added to the tabloid, just create the content directly onto the tabloid and skip the letter documents altogether? If the letter pages already existed and you just want to rotate those and drop them onto another page dynamically, this can be done very easily using Merger. In fact if this is what you are after then take a look at the "PlacePDFs" example that comes with the product. This example does something similar which will demonstrate this behavior. If this was not exactly what you had in mind feel free to enhance your explanation of your needs and requirements and we can continue to explain how the component can work best for you. Thanks, ceTe Software Support Team

Re: Merge dynamic documents

Forum member · Nov 14, 2007
Thank-you for the quick response. I will elaborate a bit further... We currently have a process in place where template PDFs (all 8.5x11 with different content) are pulled from a forms library, cached, and then are made available to the end user to produce on the fly to a single PDF. We also have a system already developed that sprays data onto the forms (as defined by the system) for personalized output. This system is working well and now we are working on improvements. As part of the enhancements we hope to use the same process now in place, but drop 2 letter size docs (say french and german versions) onto a tabloid doc to increase efficiency and ease of use for our clients. We would prefer not to have to create a new document that is tabloid size and reposition all the coordinates of the dynamic (sprayed on) data (we just want to create them in the current process, rotate them, and place them at a specific coordinate on the tabloid doc). Thus, this leads back to our original question with a bit more light on the subject. Any assistance is greatly appreciated.

Re: Merge dynamic documents

Support · Nov 14, 2007
Hello, From what we understand, you want two PDF documents which have form fields on them. The fields are populated using some process. Now you want to take those two PDF documents and put them on one page by rotating them. If the above is true, you can do this using the ImportedPageArea class. You can refer to the PlacePDFs example included with the product download. However the form fields will not be preserved when doing this. The work around is to take the original PDF documents, flatten them with data using our product and then adds them to single PDF page using ImportedPageArea. Thanks, ceTe Software Support Team