I guess the path you see is not really written in your PDF, but it is the relative path where the PDF is currently located. Apart from general information of the PDF producer ("LaTeX with hyperref package", etc.) I see no private information when examining the file with Adobe Acrobat Pro. (In this sense, PDFs produced with PDFLaTeX and XeLaTeX are more anonymous than those produced by, say, MS Word.)
However, if you wish to erase even that, you can try
\usepackage{hyperref}
\hypersetup{
pdfinfo={
pdfproducer={},
Title={},
Subject={},
Author={},
}
}
(for all keys described in § 3.9 of the hyperref package documentation).
Using Werner's suggestion---of which I was completely unaware---you can accomplish the same directly with the PDFTeX engine, thus:
\pdfinfo{
/Title ()
/Creator ()
/Producer ()
/Author ()
/Subject ()
/Keywords ()
}
Yet I'm a bit puzzled with this slashed syntax (instead of the TeX backslash).
pdftex. – Martin Scharrer♦ Jan 23 at 21:09grepfor known directory names etc. – cyberSingularity Jan 24 at 0:58pdftkto strip metadata from PDF files. – Aditya Jan 27 at 23:00