Closed (fixed)
Project:
Printer and PDF versions
Version:
2.0.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 May 2021 at 11:00 UTC
Updated:
16 Jun 2022 at 14:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
adamps commentedComment #3
t_stallmann commented+1 to this and the patch is working for me against v2.1.1.
Comment #5
nigelcunningham commentedThanks for the patch! Committed and will be in the next release.
Comment #6
adamps commentedGreat thanks
Comment #8
sneakysnk commentedHi,
EDIT: In the meantime, in the extractLinks method of PrintableFormatBase, I instanced a crawler and used his addContent to create the content the "right" way without filtering anything. I guess you'll want to put that in a proper method in the linkExtractor. Let me know if I can help with that.
Following that issue from t_stallmann
https://www.drupal.org/project/pdf_api/issues/3275815
I think that patch causes encoding problems (as stated, like it is utf8 encoded twice or something...).
In the extractLinks method, $content and $rendered_page are different (html entities look encoded in $rendered_page.
I honnestly don't know how to fix this properly (not even sure it's the real issue cause) but just wanted to let you know and get your opinion.
Thank you.