Free Support Forum -

Use existing pdf as template



I’m a creating a pdf that has multiple pages. The pages get inserted automatically by Aspose.
I would like a header/footer on each page of the document.
Because the footer has a complex layout and it sometimes changes, I would like to use a template pdf instead of creating my own footer.

I can do something like this:
var document = new Document(“sjabloon.pdf”);

Now the first page is fine, but the next page that is inserted automatically doesn’t has the template.

Is there a way to do this? Can I use an external pdf as template for all pages?



Thanks for contacting support.

You can convert specific region of template PDF document page into image and add that image into footer of each added page in the PDF. I am afraid that footer cannot be added automatically on subsequent pages generated by the API during document generation. In case you still face any issue, please share your sample PDF document along with complete sample code snippet you have tried so far. We will test the scenario in our environment and address it accordingly.