How to set properties of type "Lang alt"?

Christoph Dalitz christoph.dalitz at hs-niederrhein.de
Fri Aug 22 00:25:25 PDT 2008


Am Thu, 21 Aug 2008 22:31:30 -0400
schrieb Hubert Figuiere <hub at figuiere.net>:
>
> On Thu, 2008-08-21 at 09:23 +0200, Christoph Dalitz wrote:
> > while setting scalar properties (value types "Bool" and "Text") works
> > fine with xmp_set_property, I could not figure out how to set
> > properties
> 
> Without a proper sample code and document it is a bit hard to
> determine[1]
> 
Thanks for the quick response. I have attached minimal sample code 
xmptest.cpp that produces this error and a pdf test file test.pdf.

> What if the XMP packet come from some other source? I haven't checked
> exactly, but there is not smart handler for PDF, so the packet scanner
> is used, and I guess that in that case you may be limited in what you
> can do as rewrite such and XMP packet is only within the allowed limits.
> 
This could be a hint to the source of the problem. I have noticed that
the size of the PDF file does not change, even when some properties are
successfully set. Moreover it is not possible to add XMP data to a PDF
file that does not yet have any XMP data stream (like PDFs created with
ghostscript 8.51); in that case xmp_files_can_put_xmp returns false).

Does anyone know of a third party tool for adding an XMP data stream
to a PDF file (so that exempi afterwards can update the XMP data)?

Thanks,

Christoph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pdf
Type: application/pdf
Size: 12431 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/exempi-devel/attachments/20080822/22a2d925/attachment.pdf 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmptest.cpp
Type: text/x-c++src
Size: 1506 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/exempi-devel/attachments/20080822/22a2d925/attachment.cpp 


More information about the Exempi-devel mailing list