Get Documents $2.00 / 1,000 calls

PDF bookmarks

What this tool does

This tool extracts the navigation structure from a PDF file by reading its internal bookmarks. It helps you understand how the document is organized and find specific sections quickly without opening the file in a viewer. This is useful for processing large documents where you need to know the table of contents structure in advance.

When to use it

  • Creating a custom index for a digital library
  • Validating that a document has proper headings
  • Automating the sorting of PDF files by section
  • Extracting structure for accessibility reports

What to expect

You will receive a list of the headings or sections defined in the PDF file, along with their hierarchical order.

Limitations

  • The tool only reads bookmarks that were explicitly saved in the PDF file.
  • If the PDF has no bookmarks, the list will be empty.
  • It cannot extract text from the page bodies, only the named anchors.

When it fails

  • The provided link is not a valid web address.
  • The file at the link is not a PDF document.
  • The file cannot be downloaded or is protected by a password.

Good to know

  • Some PDFs generated from word processors may have automatic bookmarks that are not stable.
  • Complex nested structures are supported, so sub-sections will appear under their main sections.

Input data

Parameter Required Example Description
url Yes https://public.downloads.uproc.io/samples/sample.pdf Public URL of the PDF.

Output data

Field Description
count Number of bookmarks.
bookmarks List of {title, page, level}.