Hi!

I've started to look at PDFBox and intends to use it in my current project.
However I have a problem that I have to solve first and hope to get some
input here.

I generate a Pdf-document that only contains text. I then want to overlay a
"template" Pdf file that the customer should supply with their own header
and footer. When I try to do this the content is missing and all I see in
the resulting file is the header from the template and it's positioned
wrong. I found a mail in the archive that describes the exact same issue:
http://pdfbox.markmail.org/search/?q=overlay#query:overlay+page:1+mid:cxy4azywj7asqrts+state:results

As he describes I also get the correct content if I switch the arguments
but, as expected, only one page is displayed in the resulting file since the
template only contains one page (and it's now the maser document). My
generated content will most of the times contain more than one page so this
is not really a workaround that works for me.

I tried to look at the code and understand how the overlay works to see if I
could turn it around to an underlay but I think it's rather complex.
Has anyone solved this or perhaps has some input on how to do if I want to
do an underlay instead?

Best regards,
Henrik

Reply via email to