fpdm icon indicating copy to clipboard operation
fpdm copied to clipboard

Viewing a merged PDF on iOS, the filled-in fields are not visible

Open 1gear opened this issue 5 years ago • 2 comments

When using $support='native' and merging field values, the output pdf file will have fields that are not visible on iOS using the built-in pdf handlers. The fields are also not visible in mupdf viewer on Windows. If using a third party viewer on iOS (like Acrobat), then the filled-in field values look okay. But in a typical scenario, where the pdf is attached to an email message or viewed in Safari, the pdf will not preview correctly.

If using $support=’pdftk' on the same source pdf and same fill-in field values, the resulting pdf renders fine under iOS and mupdf viewer.

Viewed merged pdf file on iOS 13.3.1, iOS 9.3.5; Windows 10 version 1903 with MuPDF 1.14.0

Attached are the template pdf, merge output using native, and merged output using pdftk modes. The templatePDF file was prepared with pdftk executable.


The calling PHP code looks like this [for $support='native'] $pdf = new FPDM($this->templatePDF); $pdf->Load($flds, false);
// $pdf->Plays('pdftk'); $pdf->Fix(); $pdf->Merge(); $pdf->Output('I', $fName);

gc-native.pdf gc-template.pdf gc-pdftk.pdf

1gear avatar Feb 08 '20 17:02 1gear

+1

reddingwebpro avatar Oct 28 '20 00:10 reddingwebpro

@leek it seems like this might be somewhat related to your pull request.

reddingwebpro avatar Oct 28 '20 02:10 reddingwebpro