[ 
https://issues.apache.org/jira/browse/PDFBOX-3583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr closed PDFBOX-3583.
-----------------------------------
    Resolution: Duplicate

Sorry, duplicate of PDFBOX-3550. I'll add you as a watcher there.

> Seperate arabic character issue
> -------------------------------
>
>                 Key: PDFBOX-3583
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3583
>             Project: PDFBox
>          Issue Type: New Feature
>    Affects Versions: 2.0.3
>         Environment: Android studio
>            Reporter: javad
>
> Hello
> I port PDFBox 2.0.3 to Android.It works well.But my problem is seperate 
> arabic character in created pdf document.how do i fix it?
> My Code :
> {code}
> try {
>                     PDDocument document = new PDDocument();
>                     
>                     PDFont font =  PDType0Font.load(document, 
> getAssets().open("fonts/tahoma.ttf") );
>                     for (int i = 0; i < images.size(); i++) {
>                         if (!images.get(i).equals("")) {
>                             PDPage page = new PDPage(PDRectangle.A4);
>                             Log.e("debug","code pos 1");
>                             // page.set
>                             document.addPage(page);
>                             PDPageContentStream contentStream = new 
> PDPageContentStream(document, page);
>                             contentStream.beginText();
>                             contentStream.setFont(font, 12);
>                             contentStream.setLeading(12 * 1.2);
>                             contentStream.newLineAtOffset(50, 600);
>                             contentStream.showText("اسلام علیکم 1"); // 
> printed : ا س ل ا م ع ل ی ک م 1
>                             contentStream.newLine();
>                                                       
>                             contentStream.endText();
>                             contentStream.close();
>                                                       ....
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to