[pdftex] pdftex is retaining InfoDict altough I asked for it to be suppressed

Phillips Rogfield thebudget72 at gmail.com
Sun Jan 30 07:18:23 CET 2022


The ChangeLog of pdftex <https://www.tug.org/applications/pdftex/NEWS>, 
when enumerating the changes in |pdfTeX 3.14159265-2.6-1.40.17 (TeX Live 
2016) (May 20, 2016)|, says:

    new primitive \pdfsuppressptexinfo to omit PTEX.* keys from output;

    the value is a bitmask:

    % 1 -> PTEX.Fullbanner

    % 2 -> PTEX.FileName

    % 4 -> PTEX.PageNumber

    % 8 -> PTEX.InfoDict (/Producer /Creator /CreationDate /ModDate
    /Trapped)

I wrote the following code:

|\documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} 
\author{Joe Six Pack} \title{Lecture 1} \pdfsuppressptexinfo15 
\begin{document} Hello world! \end{document} |

I have this pdftex:

|$ pdftex --version pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2021) 
kpathsea version 6.3.3 Copyright 2021 Han The Thanh (pdfTeX) et al. 
There is NO warranty. Redistribution of this software is covered by the 
terms of both the pdfTeX copyright and the Lesser GNU General Public 
License. For more information about these matters, see the file named 
COPYING and the pdfTeX source. Primary author of pdfTeX: Han The Thanh 
(pdfTeX) et al. Compiled with libpng 1.6.37; using libpng 1.6.37 
Compiled with zlib 1.2.11; using zlib 1.2.11 |

I compiled my code, and then i called exiftools on the result. Here is 
the output:

|$ exiftool -All -a test.pdf ExifTool Version Number : 12.30 File Name : 
test.pdf Directory : . File Size : 21 KiB File Modification Date/Time : 
2022:01:30 05:49:44+01:00 File Access Date/Time : 2022:01:30 
05:49:44+01:00 File Inode Change Date/Time : 2022:01:30 05:49:44+01:00 
File Permissions : -rw-r--r-- File Type : PDF File Type Extension : pdf 
MIME Type : application/pdf PDF Version : 1.5 Linearized : No Page Count 
: 1 Producer : pdfTeX-1.40.22 Creator : TeX Create Date : 2022:01:30 
05:49:44+01:00 Modify Date : 2022:01:30 05:49:44+01:00 Trapped : False |

We have the producer, the creator, the modified date, the creation date 
and also trapped.

My understanding is that the number 15 (=1+2+4+8) would set all the bits.

Am I doing something wrong?

​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/pdftex/attachments/20220130/b1bac214/attachment-0001.html>


More information about the pdftex mailing list.