DocTags Analyzer and Visualizer

1
2
3

📄 Analyze PDF

Extract DocTags structure from the PDF page using AI-powered document analysis.

What this does:
  • Converts the PDF page to an image
  • Uses AI to identify document structure (headers, text, images, tables)
  • Generates DocTags with precise coordinate information
  • Saves the results to the results/ folder

🎨 Visualize DocTags

Create a visual representation of the extracted DocTags with bounding boxes around detected elements.

What this does:
  • Reads the DocTags file from Step 1
  • Overlays colored rectangles on the original PDF page
  • Each element type gets a different color (headers, text, images, etc.)
  • Saves the visualization as a PNG image

🖼️ Extract Pictures

Extract individual images from the document based on the detected picture regions.

What this does:
  • Identifies picture regions from the DocTags
  • Crops and extracts individual images
  • Saves each image as a separate PNG file
  • Creates an HTML index of all extracted images