Hello all I am using the XMP Toolkit SDK to try to attach an XMP file to a pdf. I am getting an error "Can't fit into specified packet size". Doing some googling and it seems there are problems with adding an XMP file to a pdf that is larger than the XMP already attached to the pdf?
Is there a work around for this? It is possible to attach an XMP of any size through the UI so I assume there is a programatic way to do this as well. Any help would be appreciated.
Edit and convert PDFs
When you say "try to attach an XMP file to a pdf" do you mean trying to append additional XML properties and information to the current metadata of the PDF that you're editing from another XMP file that you've created?
See if the link below is useful in determining if a step or procedure was missed:
When I say "try to attach an XMP file to a pdf" I mean using the XMP Toolkit SDK to update a pdf's metadata with an arbitrly sized xmp file. The toolkit provides a sample project named ModifyingXMP. If I use a target pdf with a metadata size of 4kb then "myFile.CanPutXMP(4kb_meta)" returns true. If I try to use some metadata with the size 9kb the call "myFile.CanPutXMP(9kb_meta)" returns false and attempting to call "myFile.PutXMP(9kb_meta)" will result in an exception being throw. The exception message is "Can't fit into specified packet size".
Manually replacing or appending the 9kb_meta.xmp file through the Adobe UI works just fine, but I can not get the same opperations to work programatically. Any ideas?