-
Notifications
You must be signed in to change notification settings - Fork 77
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
TcpdiDriver with PDF field #66
Comments
https://www.setasign.com/products/setapdf-merger/demos/assistant-demo/#p-300 In the code, we can see: // merge all files
$document = $merger->merge();
// if form fields were merged, set a flag that introduce the
// reader application to re-render the form field appearances.
$acroForm = $document->getCatalog()->getAcroForm();
$fields = $acroForm->getFieldsArray();
if ($fields !== false && count($fields) > 0) {
$acroForm->setNeedAppearances();
} |
please create a MR and possibly a testcase, i will take a look into it then |
MR with what content ? I have no solution on your library for fix this problem about form fields. |
isn't that these 4 loc? $acroForm = $document->getCatalog()->getAcroForm();
$fields = $acroForm->getFieldsArray();
if ($fields !== false && count($fields) > 0) {
$acroForm->setNeedAppearances();
} Seemed to me, that it's enough to put it in the end of the merge function - ? |
I have take this code from SetaPDF-Merger. And your library is using TCPDI/FPDI Driver. |
Because in your example, how you get |
@kaystrobach Hello, any news? |
Hello,
I have a fillable PDF, when I save it with some fields filled, TCPDI Driver can't display they fields.
You can simply reproduce this with the following PDF:
example.pdf
firstname
andlastname
is filled (Toto / Rico). But if you pass it through TCPDI Driver (or FPDI), these data is not displayed.Do you know how can I use TCPDI Driver with fillable PDF?
Thanks you.
The text was updated successfully, but these errors were encountered: