View Metadata of PDF with C# REST API

This article describes how to view metadata of PDF with C# REST API. You will learn to automatically print the PDF document metadata with C# REST Interface using the .NET-based Cloud SDK. You may select a particular property using the Find method by providing the desired property name.

Prerequisite

Steps to Access PDF Metadata with C# Low Code API

  1. Configure the PdfApi class object using the Client ID and secret to check metadata
  2. Upload the source PDF file for viewing the metadata
  3. Call the GetDocumentProperties() method to fetch the file properties
  4. Parse through the document properties in the API response object
  5. Display all or selected properties on the console

The above steps describe how to check metadata PDF with C# Low Code API. Configure the PdfApi object, upload the source PDF file, call the GetDocumentProperties() method, and parse the API response. Based on your requirements, you can display all or selected properties.

Code to Read Metadata from PDF with C# .NET-based API

This code has enabled us to see PDF metadata with C# .NET-based API. You can find a property by providing the name as demonstrated by finding the property Producer in the above code. You can also use other variants of this method to fetch the selected property instead of all the properties in the uploaded PDF file.

This article has taught us to view the PDF meta information with C# RESTful Service. If you want to update the PDF metadata, refer to the article on Update PDF metadata with C# REST API.

 Tiếng Việt