Bug 689955 - Issues with pdf_info.ps
Summary: Issues with pdf_info.ps
Status: NOTIFIED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: master
Hardware: PC Linux
: P2 enhancement
Assignee: Ray Johnston
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-09 07:55 UTC by Marcos H. Woehrmann
Modified: 2009-01-20 17:26 UTC (History)
0 users

See Also:
Customer: 850
Word Size: ---


Attachments
pdf_jane_rjj.ps (5.30 KB, application/postscript)
2008-07-13 14:51 UTC, Ray Johnston
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos H. Woehrmann 2008-07-09 07:55:49 UTC
The customer reports:

We would like to get the essential information of a PDF file similar to
pdf_info.ps which seems to be not functional in our GS 8.62 beta.
We have already enhanced pdf_info.ps (see attachment) to give us complete
box info and the detected rotation angle in a format also interpretable by
a program.
What we need additionally is an enhanced font list:
- which fonts are embedded
- which are used
- which fonts replaced by which other (this is the main point)
Can you help us, please?
Comment 1 Marcos H. Woehrmann 2008-07-09 07:56:20 UTC
Created attachment 4196 [details]
PDF_JANE.PS
Comment 2 Marcos H. Woehrmann 2008-07-09 08:04:40 UTC
Note that pdf_info.ps and the attached PDF_JANE.PS both work with 8.62 and head
(r8825), so please ignore that part of the original comment.  The issue at hand
is the enhanced font list.
Comment 3 Ray Johnston 2008-07-13 14:51:16 UTC
Created attachment 4215 [details]
pdf_jane_rjj.ps

This file uses Ghostscript and the PDF interpreter to glean the extra
information
that I think the cusomter wants. The output from:

gswin32c -q -dDumpFontsUsed -sFile=0.pdf pdf_jane.ps

   is:

Producer: Acrobat Distiller 4.0 for Windows
CreationDate: D:20000330113139
ModDate: D:20000330113245-06'00'

PDF FontName		      Used Font Path	      Used FontName
------------		      --------------	      -------------
Arial-BoldItalicMT	      /fonts/n019024l.pfb     NimbusSanL-BoldItal
Arial-BoldMT		      /fonts/n019004l.pfb     NimbusSanL-Bold
Arial-ItalicMT		      /fonts/n019023l.pfb     NimbusSanL-ReguItal
ArialMT 		      /fonts/n019003l.pfb     NimbusSanL-Regu
JEPCCO+TT105Ao00	      embedded
TimesNewRomanPS-BoldItalicMT  /fonts/n021024l.pfb     NimbusRomNo9L-MediItal
TimesNewRomanPS-BoldMT	      /fonts/n021004l.pfb     NimbusRomNo9L-Medi
TimesNewRomanPS-ItalicMT      /fonts/n021023l.pfb     NimbusRomNo9L-ReguItal
TimesNewRomanPSMT	      /fonts/n021003l.pfb     NimbusRomNo9L-Regu
WPTypographicSymbols	      /fonts/s050000l.pfb     StandardSymL

By adding -sFONTPATH=c:/windows/fonts the command line becomes:

gswin32c -q -sFONTPATH=c:/Windows/Fonts -dDumpFontsUsed -sFile=0.pdf
pdf_jane.ps

And the output is:
Producer: Acrobat Distiller 4.0 for Windows
CreationDate: D:20000330113139
ModDate: D:20000330113245-06'00'

PDF FontName		     Used Font Path		  Used FontName
------------		     --------------		  -------------
Arial-BoldItalicMT	     c:/Windows/Fonts/arialbi.ttf Arial-BoldItalicMT
Arial-BoldMT		     c:/Windows/Fonts/arialbd.ttf Arial-BoldMT
Arial-ItalicMT		     c:/Windows/Fonts/ariali.ttf  Arial-ItalicMT
ArialMT 		     c:/Windows/Fonts/arial.ttf   ArialMT
JEPCCO+TT105Ao00	     embedded
TimesNewRomanPS-BoldItalicMT c:/Windows/Fonts/timesbi.ttf
TimesNewRomanPS-BoldItalicMT
TimesNewRomanPS-BoldMT	     c:/Windows/Fonts/timesbd.ttf
TimesNewRomanPS-BoldMT
TimesNewRomanPS-ItalicMT     c:/Windows/Fonts/timesi.ttf 
TimesNewRomanPS-ItalicMT
TimesNewRomanPSMT	     c:/Windows/Fonts/times.ttf   TimesNewRomanPSMT
WPTypographicSymbols	     /fonts/s050000l.pfb	  StandardSymL

Sending to the customer to allow evaluation, and reassigning to myself until
we hear from the customer.
Comment 4 Ray Johnston 2009-01-13 10:16:57 UTC
Customer is happy with the provided info. Closing.