But for some pages I'm getting the "Object (id:38521) not found." on ImportPage() :
public function getIndirectObject($objectNumber)
{
$offset = $this->getOffsetFor($objectNumber);
if ($offset === false) {
throw new CrossReferenceException(
\sprintf('Object (id:%s) not found.', $objectNumber),
CrossReferenceException::OBJECT_NOT_FOUND
);
}
...
I'm trying to use the FPDI to add pages from the existing PDF file to new one and for that I wrote this code:
But for some pages I'm getting the "Object (id:38521) not found." on ImportPage() :
existingFileName.pdf