PDF-ShellTools > Bug reports

Apostroph in meta data using SetMetadata (cmd line)

(1/1)

bernd.fuhrmann:
Hi,
how can I using the command line of PDFShellTools set the title of a PDF (metadata) to [This isn't an example]?
it should look something like this:
pdfshelltools.exe SetMetadata "Metadata=Title='This isn't an example'" somefile.pdf

or in other words:
(How) can I escape the ' character?

Thanks in advance!

RTT:
You just need to duplicate the apostrophe.
pdfshelltools.exe SetMetadata "Metadata='Title=This isn''t an example'" somefile.pdf
Also, the single quotation marks must inclose the field name too, not just the field metadata.

Navigation

[0] Message Index

Go to full version