Yes or no questions are pretty rare here now that I think of it. My question is simply this:
When producing a PDF file with pdflatex
or lualatex
, is the original filename of an \includegraphics
preserved in any way, shape or form in the final PDF?
The reason I'm asking is that I'm using some less-than-serious filenames but if the original authors of the works I'm referencing in these images saw the names, I would have to rely a bit too much on the ability of someone I don't know to take a joke.
The filename does not show up in plain text in the PDF file but neither does any of the text itself so that doesn't seem to be a reliable test. There is no tooltip or anything with any of the PDF readers I tried but again, that doesn't prove anything. Once this document is released, it would be too late to learn something about PDF files that I didn't know before.
PS: If you elaborated on your "yes" or "no", that would be very much appreciated ;)
Edit I think it is worth mentioning that this question might be relevant even to people who don't share my questionable sense of humor. Similar to undo information left in a Word file, seeing the original filename might reveal something about the author that they do not wish to reveal and are hardly aware of. Filenames like failed_attempt-6.png
, study_plot_retouched.pdf
or stand-in031.jpg
are just some examples of filenames that might cast you in a strange light if uncovered by a faithful observer of your document ;)
robot_creepypants.jpg
gives me a certain satisfaction that I cannot well describe but that I'm not willing to part from if I don't absolutely have to. Call me childish if you will :)\includegraphics{filename}
to copy the file to/tmp/1
(using a counter to increment), and then actually include/tmp/1
. Upon next invocation, it would include/tmp/2
, etc. So you get to keep your "fun" file names, and the only numerical files are actually included.