Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should a page really be imported if it never was used by an useImportedPage() call? #220

Open
JanSlabon opened this issue Sep 30, 2024 · 0 comments

Comments

@JanSlabon
Copy link
Member

Actually following logic:

$pdf = new Fpdi();
$pdf->setSourceFile('template.pdf');
$pdf->importPage(1);
$pdf->AddPage();
$pdf->Output();

will copy the XObject of the imported page 1 and all of its resources to the resulting document. Though it was never used.
Can we add a check for this and do not import it at all then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant