-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Issue generating pdf in hebrew language using dompdf libraray #3260
Comments
Current releases of Dompdf have problems parsing CSS Note that there are other issues that are likely to occur if the text has not been pre-processed since Dompdf does not yet fully support complex text layout (see #2619). |
I have checked, font is now working but content in hebrew is still showing this "?????" Font applied: https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@300;400&display=swap |
As I said, that semi-colon in the Instead of:
try this:
|
Hello, I have trye yours and removed the import url and fonts are working fine but content in hebrew still not translated and showing "???????" Here is the the code: PDF Output:
Content function:
|
You might try deleting the installed-fonts.json file from the fonts directory, in case the previous attempt to install the font produced a corrupt file. Also, I can't really determine if there's an issue in the HTML since you've only provided the PHP that generated the page. Can you provide the actual HTML generated by your code? |
Well, this link solved my issue: https://github.com/dompdf/dompdf/wiki/UnicodeHowTo and does it support Rtl? |
Dompdf does not fully support rtl, no. We had started some work related to that (see #2107) but ran into issues around layout when a line was broken into multiple frames (e.g., with inline elements). |
I create PDFs using the dompdf library. The pdf is generating fine, however I want to translate the content into Hebrew. According to the documentation, https://github.com/dompdf/dompdf/wiki/About-Fonts-and-Character-Encoding. I added hebrew fonts. However, it isn't working and the content is still being translated to this "???????????????????"
function contains the html of pdf:
PDF Output
pdf image: https://i.stack.imgur.com/I0fWM.png
The text was updated successfully, but these errors were encountered: