-
Notifications
You must be signed in to change notification settings - Fork 128
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
How add replacement_font option to command #281
Comments
i add the following before $pdf->getCommand() |
@Sak1s I've added another utility method for this. Could you maybe help testing it (see MR above)? $pdf = new Pdf('/full/path/to/form.pdf');
$result = $pdf->fillForm($data)
->replacementFont('/usr/share/fonts/dejavu/DejaVuSans.ttf')
->saveAs('filled.pdf'); |
Hello @mikehaertl I test it and works fine . Thank you |
Great. I've released 0.12.0 containing this change. Thanks for the pointer to this new method. |
Issue #281 Implement `replacementFont($font)` (requires pdftk-java >= 3.3.0)
Hmm, seems like nobody noticed that I forgot to merge my MR before releasing 0.12.0. I've now created 0.12.1 which this time really includes this new method. |
Hello everyone
can anyone help me how to pass the replacement_font parameter to the following example
$pdf = new Pdf('/path/example.pdf', [
'command' => '/usr/bin/pdftk',
'useExec' => true,
]);
$pdf->fillForm($fields)
->needAppearances()
->flatten();
$pdf->saveAs(/path/output.pdf)
The text was updated successfully, but these errors were encountered: