[
https://issues.apache.org/jira/browse/PDFBOX-4189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17407073#comment-17407073
]
Kishore Kumar edited comment on PDFBOX-4189 at 8/31/21, 5:35 AM:
-----------------------------------------------------------------
Team,
I am not getting PDFBox to render malayalam (one of the Indic script) text
properly. If Ligature substitution works then this should work. I am using
3.0.0-RC1 version.
String text = "വകുപ്പ് 1 മനുഷ്യരെല്ലാവരും തുല്യാവകാശങ്ങളോടും";
PDDocument doc = *new* PDDocument();
PDFont font = PDType0Font.load(doc, new
File("/Users/kishore/Downloads/ML-NILA01_NewLipi.ttf"));
PDPage page = *new* PDPage();
doc.addPage(page);
PDPageContentStream contentStream = *new* PDPageContentStream(doc, page);
contentStream.beginText();
contentStream.newLineAtOffset(25, 700);
contentStream.setFont(font,12 );
contentStream.showText(text);
contentStream.endText();
contentStream.close();
Am I doing anything wrong here? Please help.
was (Author: kishorekollam):
Team,
I am not getting PDFBox to render malayalam (one of the Indic script) text
properly. If Ligature substitution works then this should work. I am using
3.0.0-RC1 version.
PDDocument doc = *new* PDDocument();
PDFont font = PDType0Font.load(doc, new
File("/Users/kishore/Downloads/ML-NILA01_NewLipi.ttf"));
PDPage page = *new* PDPage();
doc.addPage(page);
PDPageContentStream contentStream = *new* PDPageContentStream(doc, page);
contentStream.beginText();
contentStream.newLineAtOffset(25, 700);
contentStream.setFont(font,12 );
contentStream.showText(text);
contentStream.endText();
contentStream.close();
Am I doing anything wrong here? Please help.
> Enable PDF creation with Indian languages, by reading and utilizing the GSUB
> table
> ----------------------------------------------------------------------------------
>
> Key: PDFBOX-4189
> URL: https://issues.apache.org/jira/browse/PDFBOX-4189
> Project: PDFBox
> Issue Type: New Feature
> Components: FontBox, PDModel
> Reporter: Palash Ray
> Priority: Major
> Attachments: Bengali-text-after.pdf, Bengali-text-before.pdf,
> BengaliPdfGenerationHelloWorld.java, bengali-example.pdf,
> bengali-example2.pdf, bengali-example3.pdf, bengali-word-lohit-bad.pdf,
> bengali-word-lohit-good.pdf, committed.patch, screenshot.png
>
> Original Estimate: 336h
> Remaining Estimate: 336h
>
> Implemented proper rendering of Indian languages, which need extensive Glyph
> substitution. The GSUB table has been read and used effectively to replace
> some compound words with their respective Glyphs. All tests are passing. I
> have tested this for the Bengali font. Please review these changes and let me
> know if it makes sense to incorporate these.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]