You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by "M. Niedermair" <m_...@gmx.de> on 2016/02/19 11:43:43 UTC

PDFont subset

Hello,
how can I tell if a fund is a subset?

font.willBeSubset() just says that the font when embedding to activate 
as a subset.

How to determine the encoding used?


like pdffont:
pdffonts src/sample/s10.pdf
name                                 type              encoding 
emb sub uni object ID
------------------------------------ ----------------- ---------------- 
--- --- --- ---------
BAAAAA+TimesNewRomanPSMT             TrueType          WinAnsi 
yes yes yes     36  0

By
Michael

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


Re: PDFont subset

Posted by "M. Niedermair" <m_...@gmx.de>.
Am 19.02.2016 um 16:32 schrieb John Hewson:
>
>> On 19 Feb 2016, at 02:43, M. Niedermair <m_...@gmx.de> wrote:
>>
>> Hello,
>> how can I tell if a fund is a subset?
>
> Font subsets have a name which begins with a "tag", which is six random A-Z uppercase letters followed by +, so for the font you mention its BAAAAA+. That's how you know it's a subset.

Thanks, that helps me. Again what learned.

By
Michael


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


Re: PDFont subset

Posted by John Hewson <jo...@jahewson.com>.
> On 19 Feb 2016, at 02:43, M. Niedermair <m_...@gmx.de> wrote:
> 
> Hello,
> how can I tell if a fund is a subset?

Font subsets have a name which begins with a "tag", which is six random A-Z uppercase letters followed by +, so for the font you mention its BAAAAA+. That's how you know it's a subset.

> font.willBeSubset() just says that the font when embedding to activate as a subset.
> 
> How to determine the encoding used?

PDF encodings are rather complex, and often non-standard. There's no one place in which a font's encoding is specified. So it depends what your trying to do.

-- John

> like pdffont:
> pdffonts src/sample/s10.pdf
> name                                 type              encoding emb sub uni object ID
> ------------------------------------ ----------------- ---------------- 
> imesNewRomanPSMT             TrueType          WinAnsi yes yes yes     36  0
> 
> By
> Michael
> 
> ---------------------------------------------------------------------
> 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