From this post of spsp about creating and viewing pdf files, i have two question:
Is it possible to create a new pdf document starting from a template, that is, an empty pdf document and fill in the information? the empty document can be an invoice or similar.
First question, how to create a new pdf document from the template.
Second question, how to add pages to the document when the invoice is very long.
cs.close ' end of current page
Dim px As PDPage = doc.GetPage(nPage) ' new page
Dim cs As PDPageContentStream ' restart content stream
cs.Initialize("", doc, px, "APPEND", False, False) ' add the page
SetPDFText ...
SetPDFText ...
SetPDFText
Finally, close the current stream and save the document.
The original pdf document (template) must have several pages to take one at a time for the cs. The unneeded pages can be removed from original template doc.removePage(index)