Author Topic: Apostroph in meta data using SetMetadata (cmd line)  (Read 5802 times)

0 Members and 1 Guest are viewing this topic.

bernd.fuhrmann

  • Newbie
  • *
  • Posts: 1
Apostroph in meta data using SetMetadata (cmd line)
« 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!

RTT

  • Administrator
  • *****
  • Posts: 907
Re: Apostroph in meta data using SetMetadata (cmd line)
« Reply #1 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.