Reading and Using/Disp;laying various XMP Metadatas

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v11)  /  Re: Reading and Using/Disp;laying various XMP Metadatas

DynamicPDF CoreSuite for .NET (v11) Forum

Hello

I see you reference the WRITING of metadata in your samples.  However, do you have any example of code where you read the Metadata values from the various namespaces. In particular where the values are in XMPArrays... So, not document.Keywords etc

DublinCoreSchema dc = xmp.DublinCore;
BasicSchema bs = xmp.BasicSchema;

            Console.WriteLine("XMP: |" + dc.Type + "|");
            Console.WriteLine("XMPNickname: |" + bs.Nickname + "|");
TYhese always return null
Posted by a ceTe Software moderator
Hi,

You can read the XMP Metadata from an existing PDF into a string object using the XmpMetadata property of a PdfDocument object. Please refer to the documentation on the XmpMetadata property here.

You can parse the retrieved text (which will be in XML format) and read the required content .

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 9:39 PM.