-
Notifications
You must be signed in to change notification settings - Fork 35
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
PDF export not working on specific pages in Arabic & Farsi #1498
Comments
The error also appears on some Arabic pages:
|
I've tested some of the not working farsi pages on the current develop branch for PDF export and it works. The tested pages are the first (عنوان اقامت شهروندان اتحادیه اروپا و کشورهای ثالث) and last (شهروندان اتحادیه اروپا فاقد شغل) under the last parent page with world map icon ( شهروندان اتحادیه اروپا و اتباع کشور های ثالث) under the ID-Card icon (مسائل حقوقی: پناهندگی، اتحادیه اروپا و کشورهای ثالث) in Marburg-Biedenkopf. Though when I copy & past the contents in the current develop branch and export them as PDF, it works. |
Looks like it's an IDK if this issue should remain open until then? |
@charludo Thank you so much! Hmm, I guess in this case let's leave it open until the problem is fixed for us by updating the library. |
Any updates here? What are we waiting for? |
@osmers the problem has been fixed in the upstream library xhtml2pdf, but these fixes have introduced a number of even worse bugs (for example page numbering doesn't work anymore and the text lines are reversed on right to left alphabets), so we decided not to update the library until the new bugs have been fixed as well. |
@timobrembeck ah alright, thanks for the explanation - I didn't get that from reading the comments :) hopefully it will be fixed soon! |
I'm facing the same issue, has there been progress? |
Describe the Bug
Steps to Reproduce
https://admin.integreat-app.de/marburg-biedenkopf/fa/wp-json/ig-mpdf/v1/pdf/
Expected Behavior
The PDF should be shown
Actual Behavior
An internal server error occurs
(
AttributeError: 'ParaLines' object has no attribute 'lineBreak'
)Additional Information
Update: Fixed upstream (see xhtml2pdf/xhtml2pdf#643), so wait until a new release is triggered and update xhtml2pdf to fix the issue.
Also, when updating, we can also remove this workaround:
integreat-cms/integreat_cms/cms/utils/pdf_utils.py
Lines 114 to 115 in d746126
Traceback
The text was updated successfully, but these errors were encountered: