[pdftex] The Jhove verifier
Ramón Casares
papa at ramoncasares.com
Wed May 14 09:21:27 CEST 2014
Hi Ross,
The Jhove that I was using is the one packaged for debian:
jhove_1.6+dfsg-1_all.deb
You can find it in:
https://packages.debian.org/wheezy/jhove
Now, after installing the package,
you can reproduce what I have done.
First, write a BORRAR.tex file:
\pdfoutput=1
\pdfcompresslevel=0
\pdfobjcompresslevel=0
\pdfmapline{ptmr8r Times-Roman <8r.enc}
\font\tenrm=ptmr8r
\tenrm
Welcome to pdf\TeX!
\bye
Secondly, run pdftex on BORRAR.tex:
pdftex BORRAR.tex
And then run the Jhove verifier on BORRAR.pdf:
papa at PCBox:/tmp/tex$ jhove -m PDF-hul BORRAR.pdf
Jhove (Rel. 1.6, 2011-01-04)
Date: 2014-05-14 08:33:15 CEST
RepresentationInformation: BORRAR.pdf
ReportingModule: PDF-hul, Rel. 1.8 (2009-05-22)
LastModified: 2014-05-14 08:30:44 CEST
Size: 1957
Format: PDF
Status: Not well-formed
SignatureMatches:
PDF-hul
ErrorMessage: Lexical error
Offset: 1568
MIMEtype: application/pdf
Offset 1568 is within the \PTEX.Fullbanner string.
Now, if you take BORRAR.pdf
and replace the parenthesis inside that string
with square brackets, that is,
from
/PTEX.Fullbanner (This is pdfTeX, Version 3.1415926-2.4-1.40.13
(TeX Live 2012/Debian) kpathsea version 6.1.0)
to
/PTEX.Fullbanner (This is pdfTeX, Version 3.1415926-2.4-1.40.13
[TeX Live 2012/Debian] kpathsea version 6.1.0)
and run the verifier again:
papa at PCBox:/tmp/tex$ jhove -m PDF-hul BORRAR.pdf
Jhove (Rel. 1.6, 2011-01-04)
Date: 2014-05-14 08:42:18 CEST
RepresentationInformation: BORRAR.pdf
ReportingModule: PDF-hul, Rel. 1.8 (2009-05-22)
LastModified: 2014-05-14 08:42:10 CEST
Size: 1957
Format: PDF
Version: 1.5
Status: Well-Formed and valid
SignatureMatches:
PDF-hul
MIMEtype: application/pdf
PDFMetadata:
Objects: 11
FreeObjects: 1
IncrementalUpdates: 0
DocumentCatalog:
PageLayout: SinglePage
PageMode: UseNone
Info:
Creator: TeX
Producer: pdfTeX-1.40.13
CreationDate: Wed May 14 08:30:16 CEST 2014
ModDate: Wed May 14 08:30:16 CEST 2014
ID: 0xdc839498a1e61c62763ffdbffdf3424b,
0xdc839498a1e61c62763ffdbffdf3424b
Fonts:
Type1:
Font:
BaseFont: Times-Roman
FirstChar: 33
LastChar: 116
FontDescriptor:
FontName: Times-Roman
Flags: Serif, Nonsymbolic
FontBBox: 0, -216, 1000, 678
EncodingDictionary:
Differences: true
Pages:
Page:
Sequence: 1
Then you see that everything is OK.
Best regards,
Ramón
More information about the pdftex
mailing list