# PDF Page Range Extractor

Extract only selected PDF pages with OpenDataLoader and export the subset as Markdown, JSON, or text

> Canonical page: https://elysiatools.com/en/tools/pdf-page-range-extractor

- **Category:** Developer Tools

- **Keywords:** pdf, page range, extractor, opendataloader

## Overview

Use OpenDataLoader to convert only the pages you care about from a long PDF. This is useful for appendix review, chapter extraction, report snippets, legal review packets, and partial AI ingestion workflows.

## Inputs

- **PDF File** (file)
- **Export Format** (select)
- **Pages** (text): e.g. 1,3,5-7
- **Use Struct Tree** (checkbox)
- **Keep Line Breaks** (checkbox)
- **Include Page Separators** (checkbox)

## When to use

- When you need to extract a specific chapter or appendix from a massive PDF report.
- When preparing targeted document snippets for AI context windows to save token costs.
- When converting selected pages of legal or financial documents into structured Markdown or JSON.

## How it works

- Upload your target PDF file into the tool.
- Specify the exact pages you want to extract using a comma-separated list or range (e.g., 1,3,5-7).
- Select your preferred export format (Markdown, JSON, or Text) and toggle structural options like keeping line breaks or page separators.
- Run the extraction to download a new file containing only the parsed content from your specified pages.

## Use cases

- Extracting financial tables from specific pages of an annual report for data analysis.
- Pulling a single contract clause or addendum from a lengthy legal packet.
- Isolating a specific research paper methodology section to feed into an LLM.

## Frequently asked questions

### What formats can I export the extracted pages to?

You can export the extracted PDF pages as Markdown, JSON, or plain text.

### How do I format the page range input?

Use commas to separate individual pages and hyphens for ranges. For example, '1,3,5-7' will extract pages 1, 3, 5, 6, and 7.

### What does the 'Use Struct Tree' option do?

It utilizes the PDF's internal structural tags to better preserve the logical reading order and document hierarchy during extraction.

### Can I keep the original line breaks from the PDF?

Yes, you can enable the 'Keep Line Breaks' option to maintain the original text wrapping of the document.

### Will the output indicate where a new page starts?

Yes, if you enable 'Include Page Separators', the exported file will contain markers indicating the boundaries between the extracted pages.

## Related tools

- [Encrypted PDF Converter](https://elysiatools.com/en/tools/encrypted-pdf-converter): Open password-protected PDFs with OpenDataLoader and export them as Markdown, JSON, or text once the correct password is provided
- [Data URI Generator](https://elysiatools.com/en/tools/data-uri-generator): Convert files into Data URIs (Base64 or percent-encoded) for inlining images, fonts, and assets directly into HTML, CSS, or Markdown
- [OCR PDF to Structured JSON Bridge](https://elysiatools.com/en/tools/ocr-pdf-to-structured-json-bridge): Extract the PDF text layer with geometry (lines by y-position, tables by column gaps, headings by font size, colon key-value pairs), then fill a user-supplied JSON Schema field by field — labels matched by normalized keys, values coerced to declared types and validated with ajv.
- [Markdown to PDF Theme Pack](https://elysiatools.com/en/tools/markdown-to-pdf-theme-pack): Convert Markdown to PDF with dark, light, or print-ready themes
- [PDF to JSON Structure Explorer](https://elysiatools.com/en/tools/pdf-to-json-structure-explorer): Extract structured OpenDataLoader JSON from a PDF and browse headings, paragraphs, tables, lists, pages, and bounding boxes in an explorer view
- [PDF to Markdown Converter](https://elysiatools.com/en/tools/pdf-to-markdown): Convert PDF documents to Markdown format with text extraction and formatting preservation
- [Fitness Workout PDF Generator](https://elysiatools.com/en/tools/fitness-workout-pdf-generator): Generate a printable workout-plan PDF from JSON or CSV data with exercise tables, progress boxes, and optional QR video links
- [2026 PDF Calendar Designer](https://elysiatools.com/en/tools/pdf-2026-calendar-designer): Design and export stylish 2026 printable PDF calendars with bimonthly, quarterly, semiannual, or annual single-page layouts

## Samples

- [PDF Samples](https://elysiatools.com/en/samples/pdf-samples): Generated PDF samples from tools dated 2026-02-01 to 2026-02-10
- [Markdown Slide Deck Samples](https://elysiatools.com/en/samples/md-slide-deck-to-pdf): Remark/Marp style Markdown slide decks for testing PDF export layouts
- [Changelog Extractor Samples](https://elysiatools.com/en/samples/changelog-extractor): Various changelog formats for testing changelog parsing and extraction tools
- [Phone Number Extractor Samples](https://elysiatools.com/en/samples/phone-number-extractor): Collection of mixed text containing phone numbers from various countries for extraction testing

## Related content

- [Document OCR Extraction](https://elysiatools.com/en/hubs/document-ocr-extraction): Extract OCR text from scans and convert document pages or images into Markdown, JSON, tables, captions, and retrieval-ready chunks with quality checks.
- [PDF Extraction and Debugging Workflows](https://elysiatools.com/en/hubs/pdf-extraction-debugging-workflows): Debug hard PDF extraction cases by checking encryption, safety, page scope, reading order, OCR, tables, review marks, and structured output.
- [PDF LLM and RAG Preparation](https://elysiatools.com/en/hubs/pdf-llm-rag-prep): Turn PDFs into clean, safe, citation-ready inputs for LLM summarization, embedding, search, and RAG pipelines.
- [RAG Chunking and Retrieval Prep](https://elysiatools.com/en/hubs/rag-chunking-retrieval-prep): Clean PDFs and Word files, remove extraction noise, scan hidden prompt risks, split text, score chunk quality, and package citation-ready RAG inputs.
