Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BAF35200C01 for ; Thu, 19 Jan 2017 13:17:15 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B9735160B54; Thu, 19 Jan 2017 12:17:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9114C160B42 for ; Thu, 19 Jan 2017 13:17:14 +0100 (CET) Received: (qmail 54592 invoked by uid 500); 19 Jan 2017 12:17:13 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 54562 invoked by uid 99); 19 Jan 2017 12:17:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2017 12:17:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 16995C036F for ; Thu, 19 Jan 2017 12:17:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id vZ-Mi_iLw3jW for ; Thu, 19 Jan 2017 12:17:09 +0000 (UTC) Received: from mail-ot0-f176.google.com (mail-ot0-f176.google.com [74.125.82.176]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 078F95F282 for ; Thu, 19 Jan 2017 12:17:08 +0000 (UTC) Received: by mail-ot0-f176.google.com with SMTP id 65so30489031otq.2 for ; Thu, 19 Jan 2017 04:17:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=ghPL7tK0jvfDtLF/SsXJqgaSJ57kGIxxRgspvTSoac8=; b=jICJvW+z9gFDDedfSMq4FbxCvt+msgNT5WhxT3+S34gPTBPci21zbDw3REw7jwjGYP dflXiJK2dmunCdxZ8CMGOKOTPLIrDEw+zdqhkuj4pJlFRFVzMqYJJBf0+1/nx7o1zflR UClMmEWZB4+z/VjmLCa4xWZ+6G/SeKtWaZO2M5NuaxSVo0ACiUDDGolXSGA0Fy4X5iq+ NI7znOU52rxN8JD9atFxjEOnAfd0Xmd0wqV2n2fEnNJs6tNDKEPFa54nV0H51WoAhZ5R cNthHQiDkCWA2hc9TI0dx+l9ATMd1BgNcrgr8ZEr2H093x+Gs7C8pHNbkq84XrPpPfsw wYwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=ghPL7tK0jvfDtLF/SsXJqgaSJ57kGIxxRgspvTSoac8=; b=K0DBscLgl8Om6+iE46O7Hmh29c706c5umaHP915Hsx2H09d07uXxh5BbXx9XtuQ9DX spy+qr37z6XLoXEXAmqVnzvM0begzWTN6mN11+KEttNL6mfi9FvrNzMvFJL0wQC8UlgO GK1Snt+rYUTR6G5QdTLQonLIVmpmWApbyrDvjHuPq8V+v7ZoIr8UpR4q/tcHLgGNDZWe yhggopG/YHMoFJ+yL08eg0C87JSvlfznaeLGQWnukYNDgkGfvnmkLglmus6fUnOnC9n3 QaCIHSn1ziZriTurQSxUpSbpjAhTrXHffSFQ9YHBgtgbCeuTBHNWaCVIxhYPHaLNLjFj PWZw== X-Gm-Message-State: AIkVDXIhxSAvlNvjQQ8xd6rKQSzEGPepaRmO0dR7YDOAxxIChrC+P0fj7AKzkX8GZc+V992J2fNA11yzxpigbw== X-Received: by 10.157.53.16 with SMTP id o16mr3927332otc.50.1484828226643; Thu, 19 Jan 2017 04:17:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.143.7 with HTTP; Thu, 19 Jan 2017 04:17:05 -0800 (PST) In-Reply-To: <706fe5e2-eea7-6959-ddb8-96eeedcb3ee0@t-online.de> References: <161b8c13-8881-5321-1e89-bfc067cedfab@t-online.de> <706fe5e2-eea7-6959-ddb8-96eeedcb3ee0@t-online.de> From: Claudius Teodorescu Date: Thu, 19 Jan 2017 13:17:05 +0100 Message-ID: Subject: Re: Rendering of a Devanagari text To: users@pdfbox.apache.org Content-Type: multipart/mixed; boundary=001a113dff2c00a9e9054671832b archived-at: Thu, 19 Jan 2017 12:17:15 -0000 --001a113dff2c00a9e9054671832b Content-Type: multipart/alternative; boundary=001a113dff2c00a9e40546718329 --001a113dff2c00a9e40546718329 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable So, I found the private use Unicode code for a ligature, and displayed it in a PDF document by using the code: pageContentStream.showText("=E0=A4=A4=E0=A5=8D=E0=A4=A4=E0=A5=8D=E0=A4=B5 i= s correctly displayed with glyph substitution as " + "\ue10d"); The result is in the attached file. So, it looks that what is needed is only the string to be rendered with all the glyph substitution done. With this approach, the PDFBox is left untouched. Cheers from Heidelberg, Claudius On Tue, Jan 17, 2017 at 8:55 AM, Tilman Hausherr wrote: > Am 17.01.2017 um 07:32 schrieb Claudius Teodorescu: > >> Well, I was just about to congratulate myself for fixing this with PDFBo= x, >> as FOP is returning good output, but with a character that is represente= d >> in half. >> >> So, I guess I will need a text layout engine. What output of such engine >> would be fit for PDFBox? >> > > In PDPageContentStream.showText there is this line: > > COSWriter.writeString(font.encode(text), getOutput()); > > So you need to get that sequence... might be tricky as above that line > there's the subsetting that also needs the correct codes. This is not a > change that will be done within a few hours. > > Tilman > > > > >> >> Thanks, >> Claudius >> >> On Tue, Jan 17, 2017 at 7:18 AM, Tilman Hausherr >> wrote: >> >> Am 15.01.2017 um 20:04 schrieb Claudius Teodorescu: >>> >>> Its is not a big deal, but works for an awt component, but it is not >>>> related to that: >>>> >>>> String s =3D "=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A3=E0=A4=A4= =E0=A5=8D=E0=A4=A4=E0=A5=8D=E0=A4=B5=E0=A4=99=E0=A5=8D=E0=A4=97=E0=A4=B5=E0= =A4=BE=E0=A4=B6=E0=A5=8D=E0=A4=B5=E0=A4=BE=E0=A4=A6=E0=A5=80=E0=A4=A8=E0=A4= =AE=E0=A4=AA=E0=A5=80=E0=A4=A4=E0=A4=BF =E0=A4=9A=E0=A5=87=E0=A4=A4=E0=A5= =8D =E0=A4=AF=E0=A5=81=E0=A4=95=E0=A5=8D=E0=A4=A4=E0=A4=AE=E0=A5=8D"; >>>> Font font2 =3D new Font("Sanskrit2003", Font.PLAIN, 24); >>>> FontRenderContext frc =3D new FontRenderContext(new >>>> AffineTransform(), true, true); >>>> >>>> char[] chars =3D s.toCharArray(); >>>> GlyphVector glyphVector =3D font2.layoutGlyphVector(frc, cha= rs, >>>> 0, >>>> chars.length, 0);// createGlyphVector(frc, s); >>>> >>>> int length =3D glyphVector.getNumGlyphs(); >>>> >>>> for (int i =3D 0; i < length; i++) { >>>> Shape glyph =3D glyphVector.getGlyphOutline(i); >>>> System.out.println(glyphVector.getGlyphCode(i)); >>>> } >>>> >>>> Any pointers about where I can hook this in PDFBox? >>>> >>>> Problem is we don't use the awt fonts anymore. >>> >>> Tilman >>> >>> >>> >>> >>> Thanks, >>>> Claudius >>>> >>>> On Sun, Jan 15, 2017 at 4:56 PM, Andreas Lehmkuehler >>>> wrote: >>>> >>>> Hi, >>>> >>>>> Am 15.01.2017 um 15:51 schrieb Claudius Teodorescu: >>>>> >>>>> Hi, >>>>> >>>>>> >>>>>> Thanks for the answer, Tilman. >>>>>> >>>>>> I managed to get the Devanagari text exactly as it should, by using >>>>>> java.awt.font.layoutGlyphVector(). >>>>>> >>>>>> Are they any chances to write a GlyphVector in a PDFBox page? >>>>>> >>>>>> There was a discussion at [1] about using GlpyhVector, but we didn't >>>>>> >>>>> make >>>>> any descision nor did we implement anything. >>>>> >>>>> Do you mimd to share some of your code as a possible starting point? >>>>> >>>>> BR >>>>> Andreas >>>>> >>>>> [1] https://issues.apache.org/jira/browse/PDFBOX-3550 >>>>> >>>>> >>>>> Thanks, >>>>> >>>>>> Claudius >>>>>> >>>>>> On Sat, Jan 14, 2017 at 9:45 AM, Tilman Hausherr < >>>>>> THausherr@t-online.de >>>>>> wrote: >>>>>> >>>>>> Hi, >>>>>> >>>>>> This is not supported, sorry. PDFBox just outputs the glyphs for the >>>>>>> single characters and does not replace for ligatures. >>>>>>> >>>>>>> Tilman >>>>>>> >>>>>>> >>>>>>> Am 14.01.2017 um 08:44 schrieb Claudius Teodorescu: >>>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I am using pdfbox 2.0.4, and I am trying to output a pdf document >>>>>>>> with >>>>>>>> text following devanagari text: =E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4= =A3=E0=A4=A4=E0=A5=8D=E0=A4=A4=E0=A5=8D=E0=A4=B5=E0=A4=99=E0=A5=8D=E0=A4=97= =E0=A4=B5=E0=A4=BE=E0=A4=B6=E0=A5=8D=E0=A4=B5=E0=A4=BE=E0=A4=A6=E0=A5=80=E0= =A4=A8=E0=A4=AE=E0=A4=AA=E0=A5=80=E0=A4=A4=E0=A4=BF =E0=A4=9A=E0=A5=87=E0= =A4=A4=E0=A5=8D >>>>>>>> =E0=A4=AF=E0=A5=81=E0=A4=95=E0=A5=8D=E0=A4=A4=E0=A4=AE=E0=A5=8D. >>>>>>>> >>>>>>>> The code is very simple: >>>>>>>> @Test >>>>>>>> public void testPdfBox() throws IOException { >>>>>>>> PDDocument document =3D new PDDocument(); >>>>>>>> PDPage page =3D new PDPage(); >>>>>>>> document.addPage(page); >>>>>>>> >>>>>>>> PDFont font =3D PDType0Font.load(document, >>>>>>>> new File("/home/claudius/workspace >>>>>>>> s/repositories/backup/fonts/Sanskrit2003.ttf")); >>>>>>>> >>>>>>>> PDPageContentStream contentStream =3D new >>>>>>>> PDPageContentStream(document, page); >>>>>>>> >>>>>>>> contentStream.beginText(); >>>>>>>> contentStream.setFont(font, 12); >>>>>>>> contentStream.moveTextPositionByAmount(100, 700); >>>>>>>> contentStream.showText("=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A3=E0=A4= =A4=E0=A5=8D=E0=A4=A4=E0=A5=8D=E0=A4=B5=E0=A4=99=E0=A5=8D=E0=A4=97=E0=A4=B5= =E0=A4=BE=E0=A4=B6=E0=A5=8D=E0=A4=B5=E0=A4=BE=E0=A4=A6=E0=A5=80=E0=A4=A8=E0= =A4=AE=E0=A4=AA=E0=A5=80=E0=A4=A4=E0=A4=BF =E0=A4=9A=E0=A5=87=E0=A4=A4=E0= =A5=8D =E0=A4=AF=E0=A5=81=E0=A4=95=E0=A5=8D=E0=A4=A4=E0=A4=AE=E0=A5=8D"); >>>>>>>> contentStream.endText(); >>>>>>>> >>>>>>>> // Make sure that the content stream is closed: >>>>>>>> contentStream.close(); >>>>>>>> >>>>>>>> // Save the results and ensure that the document is >>>>>>>> properly >>>>>>>> closed: >>>>>>>> document.save("target/" + name.getMethodName() + ".pdf")= ; >>>>>>>> document.close(); >>>>>>>> } >>>>>>>> >>>>>>>> The output pdf file (attached) is not rendering correctly the >>>>>>>> string, >>>>>>>> as >>>>>>>> it is above. Namely, the ligatures are not displayed, as if they d= o >>>>>>>> not >>>>>>>> exist. On the other hand, if I am copying the text from the pdf >>>>>>>> file, >>>>>>>> and >>>>>>>> paste it in eclipse, it shows perfectly. >>>>>>>> >>>>>>>> I checked the pdf output with evince, firefox, and adobe reader 9, >>>>>>>> in >>>>>>>> ubuntu. >>>>>>>> >>>>>>>> Any idea on how to fix this display issue? >>>>>>>> >>>>>>>> Thanks, >>>>>>>> Claudius >>>>>>>> >>>>>>>> -- >>>>>>>> http://kuberam.ro >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------------ >>>>>>>> --------- >>>>>>>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org >>>>>>>> For additional commands, e-mail: users-help@pdfbox.apache.org >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> ------------------------------------------------------------ >>>>>> --------- >>>>>> >>>>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org >>>>> For additional commands, e-mail: users-help@pdfbox.apache.org >>>>> >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org >>> For additional commands, e-mail: users-help@pdfbox.apache.org >>> >>> >>> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org > For additional commands, e-mail: users-help@pdfbox.apache.org > > --=20 http://kuberam.ro --001a113dff2c00a9e40546718329 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
So, I found the private use Unicode co= de for a ligature, and displayed it in a PDF document by using the code:
pageContentStream.showText("=E0=A4=A4=E0=A5=8D=E0=A4=A4=E0=A5=8D= =E0=A4=B5 is correctly displayed with glyph substitution as " + "= \ue10d");

The result is in the attached file.

So, it looks that what is needed is only the string to be rendered with a= ll the glyph substitution done. With this approach, the PDFBox is left unto= uched.


Cheers from Heidelberg,
Claudius
=

On Tue, Jan 17, 2= 017 at 8:55 AM, Tilman Hausherr <THausherr@t-online.de> = wrote:
Am 17.01.2017 um = 07:32 schrieb Claudius Teodorescu:
Well, I was just about to congratulate myself for fixing this with PDFBox,<= br> as FOP is returning good output, but with a character that is represented in half.

So, I guess I will need a text layout engine. What output of such engine would be fit for PDFBox?

In PDPageContentStream.showText there is this line:

COSWriter.writeString(font.encode(text), getOutput());

So you need to get that sequence... might be tricky as above that line ther= e's the subsetting that also needs the correct codes. This is not a cha= nge that will be done within a few hours.

Tilman





Thanks,
Claudius

On Tue, Jan 17, 2017 at 7:18 AM, Tilman Hausherr <THausherr@t-online.de>
wrote:

Am 15.01.2017 um 20:04 schrieb Claudius Teodorescu:

Its is not a big deal, but works for an awt component, but it is not
related to that:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 String s =3D "=E0=A4=95=E0=A4=BE=E0= =A4=B0=E0=A4=A3=E0=A4=A4=E0=A5=8D=E0=A4=A4=E0=A5=8D=E0=A4=B5=E0=A4=99=E0=A5= =8D=E0=A4=97=E0=A4=B5=E0=A4=BE=E0=A4=B6=E0=A5=8D=E0=A4=B5=E0=A4=BE=E0=A4=A6= =E0=A5=80=E0=A4=A8=E0=A4=AE=E0=A4=AA=E0=A5=80=E0=A4=A4=E0=A4=BF =E0=A4=9A= =E0=A5=87=E0=A4=A4=E0=A5=8D =E0=A4=AF=E0=A5=81=E0=A4=95=E0=A5=8D=E0=A4=A4= =E0=A4=AE=E0=A5=8D";
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Font font2 =3D new Font("Sanskrit20= 03", Font.PLAIN, 24);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 FontRenderContext frc =3D new FontRender= Context(new
AffineTransform(), true, true);

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 char[] chars =3D s.toCharArray();
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 GlyphVector glyphVector =3D font2.layout= GlyphVector(frc, chars, 0,
chars.length, 0);// createGlyphVector(frc, s);

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 int length =3D glyphVector.getNumGlyphs(= );

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 for (int i =3D 0; i < length; i++) {<= br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Shape glyph =3D glyphVector.getGl= yphOutline(i);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 System.out.println(glyphVector.getGlyphCode(i));
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 }

Any pointers about where I can hook this in PDFBox?

Problem is we don't use the awt fonts anymore.

Tilman




Thanks,
Claudius

On Sun, Jan 15, 2017 at 4:56 PM, Andreas Lehmkuehler <andreas@lehmi.de>
wrote:

Hi,
Am 15.01.2017 um 15:51 schrieb Claudius Teodorescu:

Hi,

Thanks for the answer, Tilman.

I managed to get the Devanagari text exactly as it should, by using
java.awt.font.layoutGlyphVector().

Are they any chances to write a GlyphVector in a PDFBox page?

There was a discussion at [1] about using GlpyhVector, but we didn't
make
any descision nor did we implement anything.

Do you mimd to share some of your code as a possible starting point?

BR
Andreas

[1] https://issues.apache.org/jira/browse/PDFB= OX-3550


Thanks,
Claudius

On Sat, Jan 14, 2017 at 9:45 AM, Tilman Hausherr <THausherr@t-online.de
wrote:

Hi,

This is not supported, sorry. PDFBox just outputs the glyphs for the
single characters and does not replace for ligatures.

Tilman


Am 14.01.2017 um 08:44 schrieb Claudius Teodorescu:

Hi,

I am using pdfbox 2.0.4, and I am trying to output a pdf document with
text following devanagari text: =E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A3=E0=A4= =A4=E0=A5=8D=E0=A4=A4=E0=A5=8D=E0=A4=B5=E0=A4=99=E0=A5=8D=E0=A4=97=E0=A4=B5= =E0=A4=BE=E0=A4=B6=E0=A5=8D=E0=A4=B5=E0=A4=BE=E0=A4=A6=E0=A5=80=E0=A4=A8=E0= =A4=AE=E0=A4=AA=E0=A5=80=E0=A4=A4=E0=A4=BF =E0=A4=9A=E0=A5=87=E0=A4=A4=E0= =A5=8D
=E0=A4=AF=E0=A5=81=E0=A4=95=E0=A5=8D=E0=A4=A4=E0=A4=AE=E0=A5=8D.

The code is very simple:
=C2=A0 =C2=A0 =C2=A0 @Test
=C2=A0 =C2=A0 =C2=A0 public void testPdfBox() throws IOException {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 PDDocument document =3D new PDDocument()= ;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 PDPage page =3D new PDPage();
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 document.addPage(page);

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 PDFont font =3D PDType0Font.load(documen= t,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 new File(&qu= ot;/home/claudius/workspace
s/repositories/backup/fonts/Sanskrit2003.ttf"));

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 PDPageContentStream contentStream =3D ne= w
PDPageContentStream(document, page);

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 contentStream.beginText();
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 contentStream.setFont(font, 12);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 contentStream.moveTextPositionByAmo= unt(100, 700);
contentStream.showText("=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A3=E0=A4=A4= =E0=A5=8D=E0=A4=A4=E0=A5=8D=E0=A4=B5=E0=A4=99=E0=A5=8D=E0=A4=97=E0=A4= =B5=E0=A4=BE=E0=A4=B6=E0=A5=8D=E0=A4=B5=E0=A4=BE=E0=A4=A6=E0=A5=80=E0=A4=A8= =E0=A4=AE=E0=A4=AA=E0=A5=80=E0=A4=A4=E0=A4=BF =E0=A4=9A=E0=A5=87=E0=A4=A4= =E0=A5=8D =E0=A4=AF=E0=A5=81=E0=A4=95=E0=A5=8D=E0=A4=A4=E0=A4=AE=E0=A5=8D&q= uot;);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 contentStream.endText();

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // Make sure that the content stream is = closed:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 contentStream.close();

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // Save the results and ensure that the = document is properly
closed:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 document.save("target/" + name= .getMethodName() + ".pdf");
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 document.close();
=C2=A0 =C2=A0 =C2=A0 }

The output pdf file (attached) is not rendering correctly the string,
as
it is above. Namely, the ligatures are not displayed, as if they do
not
exist. On the other hand, if I am copying the text from the pdf file,
and
paste it in eclipse, it shows perfectly.

I checked the pdf output with evince, firefox, and adobe reader 9, in
ubuntu.

Any idea on how to fix this display issue?

Thanks,
Claudius

--
http://k= uberam.ro


-----------------------------------------------------------------= ----
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org




-----------------------------------------------------------------= ----
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org



-----------------------------------------------------------------= ----
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org





-----------------------------------------------------------------= ----
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org




--
--001a113dff2c00a9e40546718329-- --001a113dff2c00a9e9054671832b Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org --001a113dff2c00a9e9054671832b--