Forum rules DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
i write XMP Data into a PDF/A3. After that, it's no longer a PDF/A3.
I tried the following:
(1) Open the PDF/A3, do nothing and write in new file, PDF/A3 lost.
(2) Open the PDF/A3, do nothing and write in same file, PDF/A3 not lost.
Are you using latest build (315) of the Core API ? I just checked and cannot reproduce the issue.
Can you send me your file as it might be file specific issue?
Tracker Software (Project Director)
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
Dim pDoc As LIBNAME.IPXC_Document = OpenDocumentFromFile(sFile, pdfInst)
If pDoc Is Nothing Then
Return
End If
Dim Meta As LIBNAME.IPXC_XMPMetadata = pDoc.GetXMPMetadata
Dim sSchemaZUGFeRD As String = System.IO.File.ReadAllText(sFileDir & "ZUGFeRD_extension_schema.xmp")
Dim sptr As IntPtr = Marshal.StringToHGlobalAnsi(sSchemaZUGFeRD)
Dim iDataSize As UInteger = Convert.ToUInt32(sSchemaZUGFeRD.Length)
Dim memBlock As LIBNAME.IMemBlock = auxInst.CreateMemBlock()
memBlock.SetData(sptr, iDataSize)
Meta.SetXMP(memBlock)
pDoc.WriteToFile(sFileXMP)
pDoc.Close()
Also there some issues with editing PDF/A documents - some methods prevents PDF/A documents modification.
Will fix this issue, and will add a method to add blocks to existing XMP metadata.
Tracker Software (Project Director)
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
As Ivan said, we will add a method to append blocks to existing XMP metadata in the future build.
As for the 'issue fix' - it's about 'some methods prevent PDF/A documents modification'.
I have asked Ivan to post an update here in this topic, but because of where he is (Western Canada) - the reply will come a bit later. Still - we will share with you any news as soon as we can!