RAG.Parsers.Pdf
1.1.0-preview-048
See the version list below for details.
dotnet add package RAG.Parsers.Pdf --version 1.1.0-preview-048
NuGet\Install-Package RAG.Parsers.Pdf -Version 1.1.0-preview-048
<PackageReference Include="RAG.Parsers.Pdf" Version="1.1.0-preview-048" />
<PackageVersion Include="RAG.Parsers.Pdf" Version="1.1.0-preview-048" />
<PackageReference Include="RAG.Parsers.Pdf" />
paket add RAG.Parsers.Pdf --version 1.1.0-preview-048
#r "nuget: RAG.Parsers.Pdf, 1.1.0-preview-048"
#addin nuget:?package=RAG.Parsers.Pdf&version=1.1.0-preview-048&prerelease
#tool nuget:?package=RAG.Parsers.Pdf&version=1.1.0-preview-048&prerelease
RAG.Parsers
This library allow you to parse Word or Excel based documents towards a Markdown format
Library created in .NET which read the Word/Excel based documents with openXML/closedXML in order to write the equivalent file in markdown format.
==========
Onboarding Instructions
RAG.Parsers.Docx
Installation
- Add nuget package:
Install-Package RAG.Parsers.Docx
- In your application, you must instanciate a new DocxParser object, and call the method 'DocToMarkdown' with the path of your file to transform it to markdown string:
var docxParser = new DocxParser();
var filePath = Path.Combine(Environment.CurrentDirectory, "TestFiles/TestSample.docx");
var result = docxParser.DocToMarkdown(filePath);
result value :
My sample document
Creation Date:
Last Revised:
Version:1.0
## Index
### Sub Index
#### Sub Sub Index
**Something bold**
*Something italic*
***Something*** ***bold in italic***
Something either **bold** OR *italic*
In **the** middle, [An hyperlink to ChatGPT](https://openai.com/chatgpt), but *nothing*
|First Cell header|||
|---|---|---|
||||Middle Cell 1|
|Middle Cell 2||||
||||Last Cell|
|-|-|-|-|
|---|---|---|---|
|Test1||||
|||||||
|||||||
||||||Test final|
RAG.Parsers.Xlsx
Installation
- Add nuget package:
Install-Package RAG.Parsers.Xlsx
- In your application, you must instanciate a new XlsxParser object, and call the method 'ExcelToMarkdown' with the path of your file to transform it to markdown string:
var xlsxParser = new XlsxParser();
var filePath = Path.Combine(Environment.CurrentDirectory, "TestFiles/TestSample.xlsx");
var result = xlsxParser.ExcelToMarkdown(filePath);
result value :
# Worksheet "First tab"
||A|B|C|D|E|F|G|H|I|J|
|---|---|---|---|---|---|---|---|---|---|---|
|**1**|This is a test|some cell filled||||||||||
|**3**||||||||||also here||
|**7**||||an other one here||||||||
|**12**|last one here|||||||||||
# Worksheet "An other tab"
||A|B|C|D|E|F|G|H|
|---|---|---|---|---|---|---|---|---|
|**1**|First cell in second tab|||||||||
|**3**||With a tab||||||||
|**4**||||Header first|Colonne2|Colonne3|Header last|||
|**16**||||||||toto||
Support / Contribute
If you have any questions, problems or suggestions, create an issue or fork the project and create a Pull Request.
You want more ? Feel free to create an issue or contribute by adding new functionnalities by forking the project and create a pull request.
And if you like this project, don't forget to star it !
You can also support me with a coffee :
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net8.0
- Microsoft.Extensions.DependencyInjection (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Logging.Console (>= 9.0.0)
- PdfPig (>= 0.1.9)
-
net9.0
- Microsoft.Extensions.DependencyInjection (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Logging.Console (>= 9.0.0)
- PdfPig (>= 0.1.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.2.0-preview-060 | 47 | 4/21/2025 |
1.2.0-preview-058 | 160 | 4/18/2025 |
1.2.0-preview-057 | 121 | 4/18/2025 |
1.2.0-preview-056 | 145 | 4/17/2025 |
1.2.0-preview-055 | 171 | 4/9/2025 |
1.2.0-preview-054 | 135 | 4/8/2025 |
1.2.0-preview-053 | 153 | 4/7/2025 |
1.2.0-preview-052 | 108 | 4/5/2025 |
1.1.0 | 331 | 2/1/2025 |
1.1.0-preview-050 | 89 | 2/1/2025 |
1.1.0-preview-048 | 153 | 1/29/2025 |
1.1.0-preview-047 | 72 | 1/17/2025 |
1.1.0-preview-046 | 77 | 1/17/2025 |
1.0.0 | 78 | 1/12/2025 |
1.0.0-preview-043 | 127 | 1/8/2025 |
1.0.0-preview-041 | 73 | 12/30/2024 |
1.0.0-preview-040 | 77 | 12/29/2024 |
1.0.0-preview-039 | 75 | 12/29/2024 |
1.0.0-preview-038 | 121 | 12/27/2024 |
1.0.0-preview-034 | 82 | 12/24/2024 |
1.0.0-preview-033 | 75 | 12/24/2024 |
1.0.0-preview-032 | 73 | 12/24/2024 |
1.0.0-preview-031 | 80 | 12/20/2024 |
1.0.0-preview-030 | 80 | 12/20/2024 |
1.0.0-preview-029 | 79 | 12/20/2024 |
1.0.0-preview-028 | 77 | 12/20/2024 |
1.0.0-preview-027 | 88 | 12/20/2024 |
1.0.0-preview-018 | 627 | 1/4/2024 |
1.0.0-preview-017 | 216 | 1/4/2024 |
1.0.0-preview-016 | 102 | 1/4/2024 |
1.0.0-preview-015 | 109 | 1/4/2024 |