The ChangeLog of pdftex, 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?
PTEXkeys the information itself is still there. An easy solution is\usepackage{pdfprivacy}as suggested in https://tex.stackexchange.com/questions/95080/making-an-anonymous-pdf-file-using-pdflatex. But it would still be interesting to know why\pdfsuppressptexinfobehaves in this way. – Marijn Jan 30 '22 at 10:48\pdfinfo{/Author () /Title () /Subject () /Keywords () }if hyperref is not loaded and\hypersetup{pdfinfo={ Author={}, Subject={}, Title={}, Keywords={} }}if hyperref is loaded. – Marijn Jan 30 '22 at 10:55\pdfsuppressptexinfowas supposed to delete those entries altogether. Or at least set them empty, I don't know. Certainly it should do something, one or the other. – robertspierre Jan 30 '22 at 11:56