Get PDF Metadata

Get PDF Metadata

Get PDF Metadata

Get PDF Metadata

Information

Retrieve metadata for a PDF file:

  • dimensions;

  • file size.

Usage

Basic API information


Method: GET

API Base URL: https://cortadojs.com/v1/api/pdf-metadata

Parameters: 
- pdfUrl: URL of the PDF file to retrieve metadata for

Example

Each code snippet provides a clear and concise illustration of making API requests, with comments explaining the purpose of each request and any required parameters. By following these examples, you can seamlessly integrate Cortado.js into your web applications and leverage its powerful features to enhance image optimization, PDF processing, and more.


import axios from 'axios';

const getPDFMetadata = async (pdfUrl) => {
  try {
    const response = await axios.get('/api/pdf-metadata', { params: { pdfUrl } });
    console.log('PDF metadata:', response.data);
  } catch (error) {
    console.error('Error retrieving PDF metadata:', error);
  }
};

getPDFMetadata('URL_OF_YOUR_PDF');

© 2024 Cortado. All rights reserved.

Designed by Ditych. Powered by Framer.

© 2024 Cortado. All rights reserved.

Designed by Ditych. Powered by Framer.