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: PDType0Font object
Date Wed, 14 Jun 2017 08:05:52 GMT
Am 14.06.2017 um 09:26 schrieb Bharat Bhatt:
> Hi,
>
> I am trying to calculate the width of text before writing in to PDF.
> I am process the text from other locale i.e "Tipo Identificación".
> To calculate the width of these text I have to create PDType0Font font
> because default fonts throwing error while calculation.
>
> While doing text width calculation I am not having PDDcoument and that is
> required to load the font.
> Please let me know how to create PDType0Font font without using PDDocument

Why not use a dummy PDDocument with "new PDDocument()"? Just make sure 
you're not using that PDType0Font object in your real PDDocument.

Tilman


>
> Thanks,
> Bharat
>
> On Wed, Jun 14, 2017 at 12:42 PM, Maruan Sahyoun <sahyoun@fileaffairs.de>
> wrote:
>
>> Hi,
>>
>>> Am 14.06.2017 um 06:39 schrieb Bharat Bhatt <bharatbhatt@gmail.com>:
>>>
>>> Hi,
>>>
>>> How to create PDType0Font font object without loading PDDocument? Only
>>> based on font details and ttf file?
>> Could you outline what you are trying to achieve?
>>
>> BR
>> Maruan
>>
>>> Thanks,
>>> Bharat
>>
>> ---------------------------------------------------------------------
>> 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


Mime
View raw message