I have a pdf file with PDFlib blocks on it. None of these blocks have been filled. I need to copy those blocks, but not the page content, onto a set of other pdf documents, each with their own content. The blocks do not need to be filled.
The idea is each document is a form, but each varies slightly. The form fields are all in the same location, so we just need to copy the blocks, including their layout. I've already checked out this documentation page, which describes doing this on what seems to be a single document with blocks to a new (blank) document.
Any help is appreciated.
I worked up a
PHP
script to handle this. See below: