pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Self <matt...@mself.com>
Subject Re: Kerning?
Date Fri, 08 Dec 2017 18:30:27 GMT
Excellent!  I'll check it out....

On Thu, Dec 7, 2017 at 10:26 PM, Tilman Hausherr <THausherr@t-online.de>
wrote:

> 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/a
> pache/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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message