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

Can not flatten the PDF #23

Open
Avemaar opened this issue Jan 7, 2020 · 4 comments
Open

Can not flatten the PDF #23

Avemaar opened this issue Jan 7, 2020 · 4 comments

Comments

@Avemaar
Copy link

Avemaar commented Jan 7, 2020

I generate a new PDF with the filled data but Firefox can not render it correctly so i tried to flatten the PDF so i used:

$pdf = new FPDM('pattern.pdf'); $pdf->Load($fields, true); // second parameter: false if field values are in ISO-8859-1, true if UTF-8 //$pdf->Flatten(); $pdf->Merge(); $pdf->Output();

command which make unreadable the pdf in every platform.

@dansleboby
Copy link

flatten field data as text and remove form fields (NOT YET SUPPORTED BY FPDM)

You need to have pdftk

@imclean557
Copy link

It's supported by fpdm if you have pdftk, but it would be nice to have it as pure PHP.

@tertek
Copy link

tertek commented Apr 26, 2021

I have installed pdftk but still $pdf->flatten not working. Anyone else having this experience?

@dskurth
Copy link

dskurth commented Oct 27, 2024

Having the same problem. The call crashes the page. Seems to make the PDF file a ""call"

Fatal error: Uncaught Error: Call to undefined function

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

5 participants