Skip to main content

pdf-info


Use the pdf-info endpoint to upload a PDF document and return JSON describing the PDF.


The pdf-info endpoint takes a PDF document and returns the following data as JSON:

  • the metadata (title, author, keywords etc)
  • any custom properties in the PDF,
  • an array of pages with the size of each page,
  • and an array of form fields and their name, value and available values (for select boxes).
info

Refer to the following Users Guide page if you need more information illustrating how to call the endpoint directly as a REST call.

The complete example is available via one of the following GitHub projects depending upon the language you wish to use.

LanguageGitHub Users Guide ProjectClassLocation/Package/Namespace
C#https://github.com/dynamicpdf-api/dotnet-client-examplesProgram.csnamespace PdfInfoExample
Javahttps://github.com/dynamicpdf-api/java-client-examplesPdfInfoExample.javacom.dynamicpdf.client.api.examples
Node.jshttps://github.com/dynamicpdf-api/nodejs-client-examplesPdfInfoExample.jsnodejs-users-guide
PHPhttps://github.com/dynamicpdf-api/php-client-examplesPdfInfoExample.phpphp-client-examples

The processing steps and syntax for all four languages are similar.

  • Create a PdfInfo instance and pass a PdfResource instance to the PdfInfo instance.
  • Call the PdfInfo instance's Process method to return the PDF's metadata as JSON.