pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: Kerning?
Date Fri, 08 Dec 2017 06:26:45 GMT
Am 08.12.2017 um 01:28 schrieb Matthew Self:
> Hello,
>
>      I have a newbie question about kerning in PDFs.
>
> When rendering text from a PDF, is kerning info from the font used to
> adjust the positions of the rendered characters automatically?

No

>
> Or do apps that write PDF files need to read the kerning data and
> individually adjust the positions of the characters when writing the PDF?

Yes

>
> If the latter, I see PDPageContentStream.showText() for creating a Tj
> operator, but I don't see a method like showTextWithSpacing() for creating
> a TJ operator (which is what I presume you would need to do).

Indeed, but it is coming in the next version: showTextWithPositioning(). 
You can test a snapshot version.
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.9-SNAPSHOT/

Issue:
https://issues.apache.org/jira/browse/PDFBOX-3992

Tilman

>
> Is that something I could add, or is there a reason it hasn't been added
> already?
>
> Thank you.
>


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


Mime
View raw message