[
https://issues.apache.org/jira/browse/PDFBOX-4100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16354567#comment-16354567
]
Tilman Hausherr edited comment on PDFBOX-4100 at 2/6/18 9:38 PM:
-----------------------------------------------------------------
This isn't supported... the first glyph, "ரொ" is
[\u0BB0\u0BCA|https://chars.suikawiki.org/string?s=%5Cu0BB0%5Cu0BCA] . PDFBox
(or java) takes each 16 bit value separately. You'd need to find a way to pass
every single glyph, as in the PDF attached. I don't know if this is possible,
PDFBox does not support "complex scripts". It is unclear if Tamil is this.
(This is not a rendering problem, it is a PDF creation problem)
was (Author: tilman):
This isn't supported... the first glyph, "ரொ" is
[\u0BB0\u0BCA|https://chars.suikawiki.org/string?s=%5Cu0BB0%5Cu0BCA] . PDFBox
(or java) takes each 16 bit value separately. You'd need to find a way to pass
every single glyph, as in the PDF attached. I don't know if this is possible,
PDFBox does not support "complex scripts". It is unclear if Tamil is this.
> PDFBox not displaying Tamil Characters properly using Arial Unicode Font
> ------------------------------------------------------------------------
>
> Key: PDFBOX-4100
> URL: https://issues.apache.org/jira/browse/PDFBOX-4100
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.8
> Environment: Windows 10 64 bit, java 8
> Reporter: Jai Narayanan
> Priority: Major
> Attachments: pdfboxTamilImg.jpg, tamil-good-by-CIB.pdf
>
>
> I am loading Arial Unicode Font and trying to render some Tamil Language
> text. It is not rendering in proper order
> PDDocument document = new PDDocument();
> font = PDType0Font .load(document,
> getClass().getClassLoader().getResourceAsStream("fonts/Arial-Unicode-Regular.ttf"));
> page = new PDPage(PDRectangle.A4);
> document.addPage(page);
> PDPageContentStream stream = new PDPageContentStream(document, page);
> stream.beginText();
> stream.setFont(font, 12);
> stream.newLineAtOffset(50, 700);
> stream.showText("ரொக்கம்");
> stream.endText();
>
> I have attached the image which shows how it is being rendered by PDFBox. I
> treid with other fonts too but the same issue persists.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]