[pdftex] PTEX.FileName contains file system information

Reinhard Kotucha reinhard.kotucha at web.de
Sun Aug 5 02:57:41 CEST 2007


Stephan Hennig writes:

 > Hi,
 
 > when an external pdf graphics is included into a LaTeX document with the
 > line
  
 > \includegraphics{pic}
 > 
 > the resulting file contains a line
 
 >> /PTEX.FileName (pic.pdf)
 
 > That is, the names of imported pdf files can be seen in the output file
 > by inspecting it with an editor.  What is the rationale for putting file
 > system related information into pdf output?
 
This information can be used by a PDF post-processor in order to
process included graphics separately.

I assume that you have document security in mind.  But /PTEX.FileName
is only one issue.  You can always convert a PDF file to PS, edit the
PS file, and convert it back to PDF.  

If you are concerned about security you should encrypt the file.  This
is the only way to make a PDF file "readonly".  A very good tool is
pdftk.

My personal opinion is that removing /PTEX.FileName doesn't improve
security very much but for post-processors this information can be
very useful.

I suggest to leave things as they are.

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-4592165
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------



More information about the pdftex mailing list