Skip to content
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

RTL support #674

Closed
Jaspreet96 opened this issue Feb 25, 2022 · 5 comments · Fixed by #673
Closed

RTL support #674

Jaspreet96 opened this issue Feb 25, 2022 · 5 comments · Fixed by #673
Milestone

Comments

@Jaspreet96
Copy link

I am using Apache POI with OpenPdf to convert docx(with arabic text) to a pdf. However, in the pdf being generated the characters are printed in the direction left to right instead of Right to Left.
Refer the below two images:
doc
pdf

@andreasrosdal
Copy link
Contributor

Pull requests welcome

This was referenced Feb 27, 2022
@asturio asturio linked a pull request Mar 5, 2022 that will close this issue
2 tasks
@asturio
Copy link
Member

asturio commented Mar 5, 2022

@Jaspreet96
Can you write the correct Arabic text here, so I can play around with it. Just a little snippet will do.

@asturio asturio linked a pull request Mar 5, 2022 that will close this issue
@asturio
Copy link
Member

asturio commented Mar 5, 2022

There is an example of using arabic text here: com.lowagie.examples.directcontent.graphics2d.ArabicText

Does this example solve your question?

@Jaspreet96
Copy link
Author

Hey @asturio I am using Apache Poi with OpenPdf (xdocreport) to convert docx to pdf. I think the issue might lie with how they are converting docx to pdf. Haven't reached any conclusion yet.

@asturio asturio removed a link to a pull request Mar 13, 2022
2 tasks
@Jaspreet96
Copy link
Author

As mentioned in the above comment, the problem lies with how XDocReport is using OpenPdf to convert DOCX to PDF.

@asturio asturio added this to the 1.3.28 milestone May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants