MedBooster wrote: ↑Wed Aug 09, 2023 8:17 pm
I agree that it should be easier to see whether your username or author name remains anywhere in the document, in comments, or even base content (?)
It seems Mathew's Javascript script removes it everywhere, so I'll remember to use that if needed.
While I commend Mathew for providing the script, AFAIK it does not remove an author name or username "everywhere". Actually, it is specifically targeted to remove the contents of the Author property of any Annotation objects (also called Comments), which can include text boxes, highlighting, strikethrough, underlining, and so on.
The Author property is automatically set to the user's username (as registered in
Editor) when the Annotation object is created. At least, that's what happens within Tracker's
Editor application. However, in principle, other software used to annotate a PDF might use something else as the default (a company name, perhaps, or the Windows username). And users can manually modify the Author property.
Notably, the script does
not search for the username. No matter what the contents of the Author property, the script will remove those contents (
and only those contents).
The script will not touch anything in "base content": not 'ordinary' text, and certainly not images. Nor will it examine metadata, including the nominated Author of the PDF document (as from pressing
Ctrl+
D).
As I mentioned, one of the benefits of sharing scripts in the forum is that they can be adopted and/or adapted by other users. Mathew's existing script could potentially be extended to create a new (longer) script by adding new code that would have the function of removing specific metadata, or searching the base text, say.
In summary, the existing short script is targeted to a very specific use that wasn't covered by the existing Sanitize Document feature.
Nevertheless, the Sanitize Document feature has a much broader capability, and so I reckon that it should probably still be the first choice for most users.
—DIV