[latex3-commits] [l3svn] branch master updated: l3build: Suppress variable PDF info

noreply at latex-project.org noreply at latex-project.org
Sat May 21 18:30:04 CEST 2016


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

The following commit(s) were added to refs/heads/master by this push:
       new  a3b15af   l3build: Suppress variable PDF info
a3b15af is described below

commit a3b15af086bbea965be71431cdb5065610acef32
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat May 21 17:29:42 2016 +0100

    l3build: Suppress variable PDF info
    
    At least as far as possible.
---
 l3build/l3build.dtx |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/l3build/l3build.dtx b/l3build/l3build.dtx
index 3907b01..71abb47 100644
--- a/l3build/l3build.dtx
+++ b/l3build/l3build.dtx
@@ -1332,6 +1332,50 @@
 
 \def \NEWLINE {\TYPE{^^J}}
 %    \end{macrocode}
+%
+% \subsection{Suppressing variable data in output}
+%
+% To make any PDF file produced comparable we need to suppress various
+% pieces of data. This works in concert with setting the epoch from the
+% environment side (as not all output can be controlled here). We are
+% somewhat stuck if \texttt{dvips} is being used so just hope for the best!
+% There is a limit to what can be done with the underlying PDF structure so
+% there is no point entirely suppressing \texttt{Producer}: simply avoid
+% any version numbers.
+%    \begin{macrocode}
+\ifnum 0%
+  \ifx\pdfoutout\@undefined\else\ifnum\pdfoutout>0 1\fi\fi
+  \ifx\ouputmode\@undefined\else\ifnum\ouputmode>0 1\fi\fi
+  >0 %
+  \special{%
+    pdf: docinfo 
+      <<
+        /Creator        (TeX)
+        /CreationDate   ()
+        /ModDate        ()
+        /Producer       (\ifx\XeTeXversion\@undefined\else x\fi dvipdfmx)
+      >>
+  }
+\else
+  \ifx\pdfvariable\@undefined
+    \pdfinfo{/Producer (\ifx\directlua\@undefined pdf\else Lua\fi TeX)}
+    \ifx\pdfinfoomitdate\@undefined\else
+      \pdfinfoomitdate     = 1 %
+      \pdfsuppressptexinfo = 1 %
+      \pdftrailerid{}
+    \fi
+  \else
+    \pdfextension info{/Producer (LuaTeX)}
+    \pdfvariable suppressoptionalinfo \numexpr
+          0
+        +   1 % PTEX.Fullbanner
+        +  32 % CreationDate
+        +  64 % ModDate
+      \relax
+  \fi
+\fi
+%    \end{macrocode}
+%
 % Finish up.
 %    \begin{macrocode}
 \reset at catcodes

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list