Recover PDF bookmarks via OCR of TOC

VerifiedSafe

Uses OCR on the printed table of contents to generate missing PDF bookmarks via the Arcane-PP server.

Sby Skills Guide Bot
DocumentationIntermediate
7/24/2026
Claude Code
#pdf#ocr#table-of-contents#bookmarks#recovery

Recommended for

Automated summary

Recovers PDF outline bookmarks by OCR-ing the printed table of contents via the Arcane-PP server, then using the parsed entries as seeds for recovery.

Strengths

  • Leverages the printed table of contents as a reliable source even without a reference edition
  • Combines OCR and heuristic analysis for robust recovery
  • Offers both manual and automated paths for different confidence levels

Limitations

  • Requires the Arcane-PP server to be running
  • Does not work on scanned PDFs (document_kind == 'Scanned')
  • TOC page range must be known or detected automatically
When to use it

Use this skill when your PDF lacks bookmarks and the printed table of contents is the only reliable source of chapter structure.

When not to use it

Do not use if the PDF is scanned or if a reference edition with bookmarks is available.

Security analysis

Safe
Quality score85/100

The skill uses Arcane-PP CLI commands for PDF analysis and outline recovery, with no destructive or exfiltrating actions. Shell scripts are local and only for server checks and PDF processing.

No concerns found

How this analysis is made

Examples

Recover bookmarks from PDF TOC
Recover outline bookmarks for my PDF by OCR-ing its printed table of contents using Arcane-PP.
Extract TOC pages and recover
I have a PDF without bookmarks. Use the printed table of contents (pages 3-5) to recover the outline.
Project batch recovery with TOC ranges
Set TOC page ranges for all sources in my project and recover outlines for the whole project.

Skill: recover-outline-bridge

Recover PDF outline bookmarks by OCR-ing the printed table of contents via the Arcane-PP server, then using the parsed entries as seeds for recovery.

When to use

  • The PDF has no bookmarks and no reference edition is available
  • The printed TOC is the only reliable source of chapter structure
  • The user mentions "Arcane-PP", "OCR", "TOC pages", or "bridge"
  • Heuristic recovery (recover-outline-heuristic) gave poor results

Prerequisites

  • Arcane-PP server must be running. Verify:
    bash .claude/commands/recover-outline-bridge/scripts/check-server.sh
    
  • User must provide (or agree to identify) the TOC page range.

Steps Claude must follow

  1. Probe the PDF:

    arcane analyze probe "<pdf>" --json
    

    Abort if document_kind == "Scanned".

  2. Identify TOC page range — ask the user if unknown. Alternatively, detect automatically:

    arcane analyze layout "<pdf>" --json | python3 -c \
      "import sys,json; d=json.load(sys.stdin); \
       toc=[a for a in d['anchors'] if a['kind']=='TocEntry']; \
       print(f\"TOC pages: {min(a['page_index']+1 for a in toc)}-{max(a['page_index']+1 for a in toc)}\") if toc else print('No TOC anchors detected')"
    
  3. Manual path — extract and inspect (recommended for first time):

    arcane pdf extract-pages "<pdf>" --start N --end M toc-extract.pdf
    arcane process-toc "<pdf>" --toc-pages "N-M" --output seeds.json
    

    Show the user the seeds.json content. Ask: "Does this look like the correct chapter list?" Then run recovery with the seeds:

    arcane recover-outline "<pdf>" --seed-file seeds.json --toc-pages "N-M" \
      --dry-run --depth 2
    
  4. Automated path (when user is confident):

    arcane recover "<pdf>" --toc-pages "N-M" --output "<fixed.pdf>" --depth 2
    
  5. For a whole project (when all sources have TOC ranges set):

    arcane recover-project --project "<name>" --dry-run
    arcane recover-project --project "<name>"
    
  6. Verify:

    arcane analyze outline "<fixed.pdf>" --depth 2
    
  7. Fill in template.md and present the summary.

Setting TOC ranges for batch recovery

When adding sources, include TOC page ranges so recover-project works:

arcane add "<project>" "<pdf>" --textbook --toc-start-page N --toc-end-page M

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/recover-pdf-bookmarks-via-ocr-of-toc-mrwakefy/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/recover-pdf-bookmarks-via-ocr-of-toc-mrwakefy' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/recover-pdf-bookmarks-via-ocr-of-toc-mrwakefy/download' --output '.skill-downloads/recover-pdf-bookmarks-via-ocr-of-toc-mrwakefy/SKILL.md.part' && mv '.skill-downloads/recover-pdf-bookmarks-via-ocr-of-toc-mrwakefy/SKILL.md.part' '.skill-downloads/recover-pdf-bookmarks-via-ocr-of-toc-mrwakefy/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Original excerpt: Prerequisites
  • Arcane-PP server must be running. Verify:
    bash .claude/commands/recover-outline-bridge/scripts/check-server.sh
    
  • User must provide (or agree to identify) the TOC page range.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/recover-pdf-bookmarks-via-ocr-of-toc-mrwakefy/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills