PHPPdf
PHPPdf copied to clipboard
how to use pdf template
I would like to use the pdf template function but how do I create the template first of all? I tried a generic pdf template and get this error: Fatal error: Uncaught exception 'ZendPdf\Exception\NotImplementedException' with message 'Cross-reference streams are not supported yet
If I understand correctly, you are trying to generate a template at the same time as the final PDF file. I did not try that but I am sure it is not possible.
Your template is a PDF file you already have and you want to write on top of it. For example, it could be an application form like one you can find here and you want to fill it with your own data.
So the template attribute will be the path to the existing template. I hope it helps