Know font family name of PDF

Post Reply
saitok
Member
Posts: 63
Joined: Fri Apr 24, 2015 10:14 am
Location: Tokyo Japan

Know font family name of PDF

Post by saitok »

Hi,

Does anyone know a good way to know font family name used in PDF?

PitStop Preflight report can includes font details, but there is no family name.
I tried “pdffonts” command of Xpdf, but it also doesn’t return that.

The reason why I want to know this is I have a PDF like the screenshot I attached.
The font name of the text is shown as Futura in PitStop Inspector, but it’s not true.
This font is Myriad.

When I saw the internal structure using Acrobat, I found the family name is Myriad even though the font name is Futura.
So, I want to detect PDFs which lack consistency between the family name and the font name as error.

Thanks!

Image
freddyp
Advanced member
Posts: 1008
Joined: Thu Feb 09, 2012 3:53 pm

Re: Know font family name of PDF

Post by freddyp »

Can you please add the PDF as an attachment.

In your screenshot you indicate that the font name as shown by the PitStop Inspector is incorrect, but based on the other information visible in the internal structure it is more likely that the name of the font family is incorrect.
saitok
Member
Posts: 63
Joined: Fri Apr 24, 2015 10:14 am
Location: Tokyo Japan

Re: Know font family name of PDF

Post by saitok »

Hi freddyp,

Thank you for your reply.
Could you look into the attachment?
Attachments
NGPDF.zip
(4.31 KiB) Downloaded 322 times
saitok
Member
Posts: 63
Joined: Fri Apr 24, 2015 10:14 am
Location: Tokyo Japan

Re: Know font family name of PDF

Post by saitok »

I found that I can know font family name using pdf-parser.py.
https://blog.didierstevens.com/programs/pdf-tools/

Code: Select all

pdf-parser.py -s fontfamily /path/to/file.pdf | grep -i -e fontname -e fontfamily
But, to know font family name in stream, it’s very complicated for me. :(
If there is better way, please let me know.
freddyp
Advanced member
Posts: 1008
Joined: Thu Feb 09, 2012 3:53 pm

Re: Know font family name of PDF

Post by freddyp »

I logged a feature request to add the font family name to the PitStop report when gathering the font information.

I am not certain it is possible to make a reliable check of a mismatch between the font name and the font family name, but when it is in the report then at least there is a possibility that you build your own check.

Why is this important for you? I understand that it is not nice, but does it stop the file from being processed, or does the processing/ripping give the wrong result?
saitok
Member
Posts: 63
Joined: Fri Apr 24, 2015 10:14 am
Location: Tokyo Japan

Re: Know font family name of PDF

Post by saitok »

Thank you for the logging.

This PDF is exported by InDesign.
Actually the font used for the text was Futura at InDesign.
But the font was replaced to Myriad when I saw the exported PDF.

The issue seems to happen in the case that I used “Composite Fonts” feature of InDesign to create documents and convert them to PDF using Switch continuously.
I guess this is an issue related to cache or something of InDesign, but I can’t find a good way to avoid the issue.
So, I want to detect PDFs like this as error after the PDF conversions.

“Composite Fonts” feature of InDesign:
https://community.adobe.com/t5/indesign ... p/10864540
Last edited by saitok on Wed Apr 06, 2022 11:21 am, edited 1 time in total.
User avatar
JimmyHartington
Advanced member
Posts: 280
Joined: Tue Mar 22, 2011 7:38 am

Re: Know font family name of PDF

Post by JimmyHartington »

saitok wrote: Mon Apr 04, 2022 6:36 am … and convert them to PDF using Switch continuously.
Is the Futura font installed on the Switch server? Because it seems that there could be a problem with Switch seeing the fonts.
freddyp
Advanced member
Posts: 1008
Joined: Thu Feb 09, 2012 3:53 pm

Re: Know font family name of PDF

Post by freddyp »

I recommend using Indesign packages because these contain all the external links and all the fonts required for opening the file correctly.
saitok
Member
Posts: 63
Joined: Fri Apr 24, 2015 10:14 am
Location: Tokyo Japan

Re: Know font family name of PDF

Post by saitok »

JimmyHartington wrote: Mon Apr 04, 2022 7:53 am
saitok wrote: Mon Apr 04, 2022 6:36 am … and convert them to PDF using Switch continuously.
Is the Futura font installed on the Switch server? Because it seems that there could be a problem with Switch seeing the fonts.
Thank you for the advise!
The font is not installed on the system, but is included into the InDesign package.
Post Reply