RTTSoftware Support Forum

PDF-ShellTools => Bug reports => Topic started by: bernd.fuhrmann on January 24, 2012, 01:23:57 PM

Title: Apostroph in meta data using SetMetadata (cmd line)
Post by: bernd.fuhrmann on January 24, 2012, 01:23:57 PM
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!
Title: Re: Apostroph in meta data using SetMetadata (cmd line)
Post by: RTT on January 24, 2012, 03:23:25 PM
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.