Q: we’re using your product for a few years and we are very pleased
with it.
Now we have the requirement to overlay two pdf pages in one document.
e.g.
We have a letter paper (with header and footer) and a bill (with
positions, etc.) which has one or more pages. The bill is created by
our system and the letter paper is created by any layout program. Can
we read both documents, overlay the bill (each page) with the letter
paper and save the complete document as new file?
If this is possible please give me a short code snippet how to do
this.
Thanks in advance.
---------------------------
A: As astarting point you may want to take a look at ImpositionTest
sample project (
http://www.pdftron.com/pdfnet/
samplecode.html#Imposition).
Besically you can use element_builder.CreateForm(page, src_do) to
create a form xobject from any PDF page. You can then place the form
on another page as if was image element.
To add headers/footers you could use ElementBuilder & ElementWriter to
add dynamic content (or in newer versions of PDFNet you could also use
Stamper utility class to simplify process of adding watermarks to sets
of pages).