Heya,

On 29 July 2014 23:38, dennis-fedco <[email protected]> wrote:

>
> * (essentially using existing PDFs as a template) - Ability to include
> (reuse) existing pre-made PDFs as part of PDF creation + ability to place
> more data on said pre-made PDFs
>

If I understand correctly, you want to use one pdf as a "background" and
render another PDF on top of it? Really don't know if ZF2 does this. Back
when I last looked you either needed a paid-for pdflib (expensive) or do it
via apache fop[1] +  fop-pdf-images[2].

The latter's the approach we took, and I've not regrets. A simple Tomcat
servlet - just a minor hack or two from the sample in the apache-fop source
- takes the XSL-FO and returns the PDF. XSL-FO might look intimidating, but
in practice anyone who can hand-code HTML soon gets the hang of it. You
don't even need the XSL side of it - we use PHP templates to generate pure
FO to render.

Check it out and ping me if you need an example of the page-master that
includes the background PDF.

Matt

[1] http://xmlgraphics.apache.org/fop/
[2] http://xmlgraphics.apache.org/fop/fop-pdf-images.html

Reply via email to