RTTSoftware Support Forum

PDF-ShellTools => Bug reports => Topic started by: Anderssod on June 30, 2008, 08:17:00 AM

Title: SetMetaData with space character
Post by: Anderssod on June 30, 2008, 08:17:00 AM
I have a problem with SetMetaData when a space character is included.

If I enter this...

Rundll32 "c:\Program Files\PDF-ShellTools\PDFShellTools.dll",SetMetadata "Metadata=Title='My Title'" C:\temp\B1C1\P2000-0102.pdf

...the title field will display 'My (the single quote included). It doesn't handle the single quotes as it should and it breaks the information after the first space character.

If I leave out the single quote it will only display My.

Is it a bug or if I have to live with it, what can I use to replace the space character?
Title: SetMetaData with space character
Post by: RTT on June 30, 2008, 09:38:00 AM
The example in the manual is wrong. The single quotes must embrace the metadata field name also, not just the metadata content as wrongly expressed in the manual.

This way should work

Rundll32 "c:\Program Files\PDF-ShellTools\PDFShellTools.dll",SetMetadata "Metadata='Title=My Title'" C:\temp\B1C1\P2000-0102.pdf

Now the manual is correct
PDF-InfoEdit (http://rttsoftware.googlepages.com/STIndex.htm?pageURL=InfoEdit.htm)