Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
TCPDF generates a single PDF for minutes. This is all because font subsetting (embedded font contains only these characters that are actually used) is enabled by default. When the following line is added to _print_pdf_tcpdf()
, PDF is generated "instantly":
$pdf->setFontSubsetting(FALSE);
Please include checkbox in admin/config/print/pdf
for disabling font subsetting. Generated PDFs will be larger but it's an enormous difference between 1s and 1min!
Comment | File | Size | Author |
---|---|---|---|
#1 | modules_print_print_pdf.patch | 2.01 KB | pillarsdotnet |
Comments
Comment #1
pillarsdotnet CreditAttribution: pillarsdotnet commentedPatch needs testing.
Comment #2
jcnventura CreditAttribution: jcnventura commentedThanks for the patch! I've committed it to git.
Comment #3
ogi CreditAttribution: ogi commentedA syntax error slipped in.
>
is missing.Comment #4
jcnventura CreditAttribution: jcnventura commentedThanks for the warning.. I have been trying to clear the queue, and I haven't really started re-testing the whole module.
Comment #5
ogi CreditAttribution: ogi commentedAn error is introduced again
Comment #6
jcnventura CreditAttribution: jcnventura commentedI had spotted that earlier.. Thanks!