pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kamal gera <gera.ka...@gmail.com>
Subject Not able to write chinese and other language character in PDF
Date Wed, 22 Aug 2012 12:53:14 GMT
Hi PDFBox Team,,

I am using your API, and i am not able to write other languages
character in pdf, As i am using

                      doc = new PDDocument();
                        page = new PDPage();
                        doc.addPage(page);
                        PDTrueTypeFont font =
PDTrueTypeFont.loadTTF(doc, "e:/arialuni.ttf");
                        PDPageContentStream content = new
PDPageContentStream(doc, page,false,false);

                        content.beginText();
                        content.setFont(font, 11);
                        content.setStrokingColor(Color.BLUE);
                        content.moveTextPositionByAmount( 100, 700 );
                        content.drawString("您");
                        content.endText();
                        content.close();

                        doc.save("e:/400500.pdf");
                        doc.close();
But always getting Java heap space error, not able to load file with
above code, or do we have any other resolution for this.


Thanks in Advance
Kamal

Mime
View raw message