https://github.com/guilhermestracini/poc-dotnet-extractpdfcontent
🔬 Proof of Concept of extracting content from PDF files using multiple PDF libraries
https://github.com/guilhermestracini/poc-dotnet-extractpdfcontent
docnet dotnet dotnetcore itextsharp pdf-extractor pdf-reader pdfextraction pdfpig pdfsharp poc prdreader proof-of-concept
Last synced: about 1 month ago
JSON representation
🔬 Proof of Concept of extracting content from PDF files using multiple PDF libraries
- Host: GitHub
- URL: https://github.com/guilhermestracini/poc-dotnet-extractpdfcontent
- Owner: GuilhermeStracini
- License: mit
- Created: 2023-08-30T10:17:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-17T20:35:23.000Z (about 1 month ago)
- Last Synced: 2025-03-17T21:27:55.526Z (about 1 month ago)
- Topics: docnet, dotnet, dotnetcore, itextsharp, pdf-extractor, pdf-reader, pdfextraction, pdfpig, pdfsharp, poc, prdreader, proof-of-concept
- Language: C#
- Homepage: https://guilhermestracini.github.io/POC-dotnet-ExtractPdfContent/
- Size: 199 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PoC .NET - Extract PDF content
[](https://wakatime.com/badge/github/GuilhermeStracini/POC-dotnet-ExtractPdfContent)
[](https://codeclimate.com/github/GuilhermeStracini/POC-dotnet-ExtractPdfContent/maintainability)
[](https://codeclimate.com/github/GuilhermeStracini/POC-dotnet-ExtractPdfContent/test_coverage)
[](https://www.codefactor.io/repository/github/GuilhermeStracini/POC-dotnet-ExtractPdfContent)
[](https://github.com/GuilhermeStracini/POC-dotnet-ExtractPdfContent)
[](https://github.com/GuilhermeStracini/POC-dotnet-ExtractPdfContent)
[](https://github.com/GuilhermeStracini/POC-dotnet-ExtractPdfContent/actions/workflows/build.yml)
[](https://github.com/GuilhermeStracini/POC-dotnet-ExtractPdfContent/actions/workflows/linter.yml)🔬 Proof of Concept of extracting content from PDF files using multiple PDF libraries.
---
## Libraries
- [DocNet](https://github.com/GowenGit/docnet)
- ~~[iTextSharp.LGPLv2.Core](https://github.com/VahidN/iTextSharp.LGPLv2.Core)~~
- [PdfPig](https://github.com/UglyToad/PdfPig/)
- ~~[PdfSharpCore](https://github.com/ststeiger/PdfSharpCore)~~Refer to this article: [Reading a PDF in C# on .NET Core](https://dev.to/eliotjones/reading-a-pdf-in-c-on-net-core-43ef)
The main goal of this POC is to test the available options for effectively reading content from PDF files and replace the current [iTextSharp—for .NET Framework](https://www.nuget.org/packages/iTextSharp).
---
## Results
### ✅ ⚠️ DocNet
The results are not the best, but they look good.
With the files tested, some errors were detected that could be avoided using some simple regexp when processing it later.### ❌ iTextSharp.LGPLv2.Core
Encoding issues.
The simple PDF generated by the library itself can be read, but another PDF tested returns problems with encoding.- [SimpleTextExtractionStrategy ?](https://github.com/VahidN/iTextSharp.LGPLv2.Core/issues/7)
- [Encoding problem with extracted text from GhostScript generated pdf](https://github.com/VahidN/iTextSharp.LGPLv2.Core/issues/42)### ✅ 🔝 PdfPig
99.999% of the result of PdfPig was the same as the old [iTextSharp](https://www.nuget.org/packages/iTextSharp) class (not the [itextSharp Core](https://www.nuget.org/packages/iTextSharp.LGPLv2.Core/) version).
This will be used in my projects to replace the old one.### ❌ PdfSharpCore
This library doesn't support extract text yet.