I'm trying to access the xmpmm:DocumentID property of a pdf, but GetProperty() keeps coming back empty for me.
Can you provide some example C# code for using IPXC_XMPMetadata::GetProperty?
Thanks.
MetaData question
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
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.
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.
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: MetaData question
Hello JesseH,
Please check whether the document you are testing on has metadata. If so, please send us the test document that reproduces that behavior.
Cheers,
Alex
Please check whether the document you are testing on has metadata. If so, please send us the test document that reproduces that behavior.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: MetaData question
I can't post my test documents as I grab them from our production environment. Long story short, the contents of the documents are protected by HIPPA.
But, by the time I need the guid the documents have already been loaded and saved using CoreAPI with PDF spec 1.3 and the document write flag set to 0, so the top of the file looks like this:
Edit: Just to clarify, the document is reloaded after being saved using the SDK.
But, by the time I need the guid the documents have already been loaded and saved using CoreAPI with PDF spec 1.3 and the document write flag set to 0, so the top of the file looks like this:
Code: Select all
%PDF-1.3
%âãÏÓ
1 0 obj
<<
/CreationDate (D:20160902125537-04'00')
/ModDate (D:20160902125537-04'00')
/Producer (PDF-XChange Core API SDK \(6.0.317.1\))
>>
endobj
2 0 obj
<<
/Metadata 3 0 R
/Pages 4 0 R
/Type /Catalog
>>
endobj
3 0 obj
<<
/Length 3078
/Subtype /XML
/Type /Metadata
>>
stream
<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 5.1.2">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:format>application/pdf</dc:format>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/">
<xmpMM:DocumentID>uuid:df191398-9083-420a-b16a-10977b95704b</xmpMM:DocumentID>
<xmpMM:InstanceID>uuid:6d2488c5-f98a-4ced-ae73-364c30ade807</xmpMM:InstanceID>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:xmp="http://ns.adobe.com/xap/1.0/">
<xmp:CreateDate>2016-09-02T12:55:37-04:00</xmp:CreateDate>
<xmp:ModifyDate>2016-09-02T12:55:37-04:00</xmp:ModifyDate>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:pdf="http://ns.adobe.com/pdf/1.3/">
<pdf:Producer>PDF-XChange Core API SDK (6.0.317.1)</pdf:Producer>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>
endstream
endobj
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: MetaData question
Hello JesseH,
We still can't tell you anything specific from the given information. If the document contains sensitive information, you can mail it directly to me at polaringu@tracker-software.com
Cheers,
Alex
We still can't tell you anything specific from the given information. If the document contains sensitive information, you can mail it directly to me at polaringu@tracker-software.com
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ