Convert PDFs to Markdown/JSON using Marker
mainMarker is a pipeline for converting PDFs to Markdown and JSON with high accuracy. It supports both GPU and CPU and includes specialized converters for tables and OCR.
Key Components:
PdfConverter: General PDF to Markdown/JSON conversion.TableConverter: Specialized extraction of table structures.OCRConverter: For handling scanned documents or images.ConfigParser: Used to customize layout assumptions and output formats.
Advanced Features:
- LLM Integration: You can boost accuracy by using OpenAI or Azure LLM services via the
--use_llmflag. - OCR Force: For complex layouts, use the
--force_ocrflag to ensure all elements are processed through OCR.