Skip to content

Instantly share code, notes, and snippets.

@phi-gamma
Created February 24, 2014 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phi-gamma/9197525 to your computer and use it in GitHub Desktop.
Save phi-gamma/9197525 to your computer and use it in GitHub Desktop.
Prevent Luatex from writing filesystem location of included PDFs to the document.
Index: source/texk/web2c/luatexdir/image/writeimg.w
===================================================================
diff --git a/trunk/source/texk/web2c/luatexdir/image/writeimg.w b/trunk/source/texk/web2c/luatexdir/image/writeimg.w
--- a/trunk/source/texk/web2c/luatexdir/image/writeimg.w (revision 4837)
+++ b/trunk/source/texk/web2c/luatexdir/image/writeimg.w (working copy)
@@ -693,7 +693,7 @@
// write additional information
snprintf(s, 20, "%s.FileName", pdfkeyprefix);
pdf_add_name(pdf, s);
- pdf_printf(pdf, " (%s)", convertStringToPDFString(p, strlen(p)));
+ pdf_printf(pdf, " (censored)");
}
@ To allow the use of \.{\\pdfrefximage} inside saved boxes in -ini mode,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment