Quantcast
Channel: Adobe Community: Message List - XMP SDK
Viewing all articles
Browse latest Browse all 801

Can't write large xmp metadata to pdf

$
0
0

Hello,

I tried to add a custom metadata of 2kb to the pdf, using PutXmp() method.The API supports "inplace" serialization of exact size - it serializes my packet to the size of the old xmp packet. If my packet size is small - it succeeds; otherwise, like in case of 2kb - fails.Moreover, if there is no old xmp packet, it can't put my xmp. Are there any limitations?I tried to remove some flags in API and PutXmp() performed "not inplace" serialization - that way it succeeded to serialize a big packet.Then I call CloseFile() method which performs an actual writing to file. When I open a pdf in txt format, I see the meta is writen correctly in a correctplace. But when I open the pdf file, the "out of memory" message is displayed.When I try to close the pdf file, it asks if I want to save it. Please advise how to add a large amount of metadata without getting the pdf corrupted.


Viewing all articles
Browse latest Browse all 801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>