Remove external file name references
Hi, When external PDF graphics are included in a document (e.g., using externalfigure), the resulting PDF contains a line such as: /PTEX.FileName (/home/username/path/to/file.pdf) What ConTeXt command prevents external file names from being written to the PDF? I've tried: \pdfptexfilename=0 \ptexinfo=0 \pdfsuppressptexinfo Links to a thread discussing the issue for pdftex: http://tug.org/mailman/htdig/pdftex/2007-August/007290.html http://tug.org/mailman/htdig/pdftex/2007-August/007294.html Thank you.
On 2/24/2014 11:19 PM, Thangalin wrote:
A patch from Phillip:
that's not a patch but obscuring code (ok for private use) ... there is however a proper tracker request so we will have a look at it at some point (probably some primitive needed or (as we try to avoid new primitives, maybe an option in the img library Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hi, A flexible solution could be: \setupexternalfigures[ pdfptexfilename={customfilename.jpg}, ] To eliminate the filename altogether: \setupexternalfigures[ pdfptexfilename=, ] This looks like it could be extended to customize the other PTEX attributes, or be used to configure values in other namespaces.
On 2/25/2014 2:42 AM, Thangalin wrote:
Hi,
A flexible solution could be:
\setupexternalfigures[ pdfptexfilename={customfilename.jpg}, ]
To eliminate the filename altogether:
\setupexternalfigures[ pdfptexfilename=, ]
This looks like it could be extended to customize the other PTEX attributes, or be used to configure values in other namespaces.
no, it would probably be: \disabledirective[backend.ptex] or so where we don't bother about the fact that there are multiple ptex keys ... 'all' or 'none' Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Thangalin