Reading and Using/Disp;laying various XMP Metadatas

Reading and Using/Disp;laying various XMP Metadatas

Forum member · Feb 9, 2023
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

Re: Reading and Using/Disp;laying various XMP Metadatas

Support · Feb 9, 2023
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