Image-ExifTool - Re: Several information on one field with carriage return ?

Posted on Thu Aug 7 18:19:07 2008 by ashlin in response to 8510 (See the whole thread of 3)
Re: Several information on one field with carriage return ?
After several kind of trials, i have noticed differents things. The resulting pdf file with 4 information line into the Keywords field with carriage return included are interpreted like that by acrobat :
<rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/"> <dc:subject> <rdf:Bag> <rdf:li>Information 1</rdf:li> <rdf:li>Information 2</rdf:li> <rdf:li>Information 3</rdf:li> <rdf:li>Information 4</rdf:li> </rdf:Bag> </dc:subject> </rdf:Description> <rdf:Description rdf:about="" xmlns:pdf="http://ns.adobe.com/pdf/1.3/"> <pdf:Keywords>Information 1&#xD;&#xA;Information 2&#xD;&#xA;Information 3&#xD;&#xA;Informa +tion 4</pdf:Keywords> </rdf:Description>
So I have tried to pass that command line to exiftool :
-XMP-dc:subject="Information 1" -XMP-dc:subject+="Information 2" (...) -XMP-pdf:Keywords="Informati +on 1&#xD;&#xA;Information 2&#xD;&#xA;Information 3&#xD;&#xA;Information 4"
The result is that all ` ` are converted to `&#xD;&#xA;` to appear as text, and so it failed. So the result in the pdf is :
<pdf:Keywords>Information 1&amp;#xD;&amp;#xA;Information 2&amp;#xD;&amp;#xA;Information 3&amp;#xD;& +amp;#xA;Information 4</pdf:Keywords>
I have manualy replace each `&#xD;&#xA;` by ` ` and then it works. So I have now found how to implement carriage return into a field but i still don't know how I can do it from exiftool. Does anyone have an idea on how i can tell to exiftool 'don't shoot ` `' ?
Direct Responses: 8565 | Write a response