import->append -- Add a pre-existing PDF file to the PDF currently under creation.
int import->append ( binary stream PDF )
This function takes the PDF file provided as its only parameter, and adds the pages and other data to the end of the current PDF.
See example-import.php in the examples directory.
Added in 2.7
The first version that actually worked was in 2.9
The importer is liable to ignore anything it doesn understand and try to import the PDF anyway. In our current tests, this has worked well, but I expect wider testing will reveal problems. On the surface, this means things like PDF forms, links, and other spiffy features that phppdflib doesn't yet support may be stripped during importation.
Embedded fonts are silently converted to Helvetica. We expect to improve this prior to the release of 2.10
ExtGState objects are intentionally stripped from the imported PDF. It's unlikely that anyone will notice, but slight color changes may result from this.
ProcSet objects are intentionally ignored because modern PDF standards have declared them obsolete.