How to set properties of type "Lang alt"?
hub at figuiere.net
Thu Aug 21 19:31:30 PDT 2008
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
> of value type "Lang alt". I have tried
> xmp_set_localized_text(xmp, NS_DC, "rights",
> NULL, "x-default",
> "Licensed under CC By-Sa 3.0",
> but always obtain the error
> Can't fit into specified packet size
> The error occurs invariably also with other option bits or
> explicit language settings. It should be noted that this property
> does not yet exist in my PDF file, so maybe I have missed some
> memory allocation beforehand?
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.
Without a proper sample code and document it is a bit hard to
 This is directly in Adobe original code.
More information about the Exempi-devel