You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2016/11/18 19:31:00 UTC

[jira] [Commented] (PDFBOX-3583) Seperate arabic character issue

    [ https://issues.apache.org/jira/browse/PDFBOX-3583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15677541#comment-15677541 ] 

Tilman Hausherr commented on PDFBOX-3583:
-----------------------------------------

Btw PDFBOX-3550 is not something that will happen like next week or next month. If you're in a hurry, you'll need something else, e.g. itext.

> 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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org