PdfPig
Read and extract text and other content from PDFs in C# (port of PDFBox)
- 2.6k
- C#
- Apache-2.0
- 11 d ago
Document Layout Analysis resources repos for development with PdfPig.
Repo BobLd/DocumentLayoutAnalysis, read from GitHub 12 h ago. BobLd has not joined Take My Repo.
BobLd/DocumentLayoutAnalysis is a public repo on GitHub by BobLd. Document Layout Analysis resources repos for development with PdfPig. It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it. It is written mainly in C#, has 635 stars and last changed on 2023-10-01. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-20.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Document Layout Analysis repos for development with PdfPig.
From wikipedia: Document layout analysis is the process of identifying and categorizing the regions of interest in the scanned image of a text document. A reading system requires the segmentation of text zones from non-textual ones and the arrangement in their correct reading order. Detection and labeling of the different zones (or blocks) as text body, illustrations, math symbols, and tables embedded in a document is called geometric layout analysis. But text zones play different logical roles inside the document (titles, captions, footnotes, etc.) and this kind of semantic labeling is the scope of the logical layout analysis.
The X-Y cut segmentation algorithm, also referred to as recursive X-Y cuts (RXYC) algorithm, is a tree-based top-down algorithm.
The root of the tree represents the entire document page. All the leaf nodes together represent the final segmentation. The RXYC algorithm recursively splits the document into two or more smaller rectangular blocks which represent the nodes of the tree. At each step of the recursion, the horizontal and vertical projection profiles of each node are computed. Then, the valleys along the horizontal and vertical directions, VX and VY, are compared to corresponding predefined thresholds TX and TY. If the valley is larger than the threshold, the node is split at the mid-point of the wider of VX and VY into two children nodes. The process continues until no leaf node can be split further. Then, noise regions are removed using noise removal thresholds TnX and TnY. source

The Docstrum algorithm by Gorman is a bottom-up approach based on nearest-neighborhood clustering of connected components extracted from the document image. After noise removal, the connected components are separated into two groups, one with dominant characters and another one with characters in titles and section heading, using a character size ratio factor fd. Then, K nearest neighbors are found for each connected component. Then, text-lines are found by computing the transitive closure on within-line nearest neighbor pairings using a threshold ft. Finally, text-lines are merged to form text blocks using a parallel distance threshold fpa and a perpendicular distance threshold fpe. source

The Voronoi-diagram based segmentation algorithm by Kise et al. is also a bottom-up algorithm. In the first step, it extracts sample points from the boundaries of the connected components using a sampling rate sr. Then, noise removal is done using a maximum noise zone size threshold nm, in addition to width, height, and aspect ratio thresholds. After that the Voronoi diagram is generated using sample points obtained from the borders of the connected components. Superfluous Voronoi edges are deleted using a criterion involving the area ratio threshold ta, and the inter-line spacing margin control factor fr. Since we evaluate all algorithms on document pages with Manhattan layouts, a modified version of the algorithm is used to generate rectangular zones.source
The layout analysis approach by Breuel finds text-lines as a two step process:
sourcePDF/A-1a compliant document make the following information available:
Unsupervised document structure analysis of digital scientific articles | S. Klampfl, M. Granitzer, K. Jack, R. Kern
Document understanding for a broad class of documents | M. Aiello, C. Monz, L. Todoran, M. Worring
A Data Mining Approach to Reading Order Detection | M. Ceci, M. Berardi, G. A. Porcelli
websitepptwebsitearxivgithubgithub | ibm articleValidate and transform between OCR file formats (hOCR, ALTO, PAGE, FineReader)
A Pdf page to image converter is available to help in the research proces. It relies on the mupdf library, available in the sumatra pdf reader.
A Pdf layout analysis viewer is available, also relies on the mupdf library.
BobLd/DocumentLayoutAnalysis is a public repo on GitHub by BobLd. Document Layout Analysis resources repos for development with PdfPig.
It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2023-10-01. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
The Free Software Media System - Server Backend & API
A modern file manager that helps users organize their files and folders.

A step-by-step C# implementation of the Docstrum algorithm
ShareX is a free and open-source application that enables users to capture or record any area of their screen with a single keystroke. It also supports uploading images, text, and various file types to a wide range of destinations.

Cross-platform OCR processing using PaddleOCR ONNX models (v4 / v5 / v6). Based on RapidAI's RapidOCR

Use the YOLO v4 and v5 (ONNX) models for object detection in C# using ML.Net
Cross-platform C# library to render PDF as images

Windows/Linux/MacOS Desktop App to browse QuantConnect Lean engine's backtest and monitor live performances. Original project https://github.com/mirthestam/lean-monitor
A C# library to extract tabular data from PDFs (port of camelot Python version using PdfPig).
This page is also available as structured data, with the same sources and dates.
/api/v1/resources/gh/BobLd/DocumentLayoutAnalysisTake My Repo has not tested this on your machine. Requirements come from the project's own documentation.
