RAG.Parsers.Docx 1.0.0-preview-19

This is a prerelease version of RAG.Parsers.Docx.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package RAG.Parsers.Docx --version 1.0.0-preview-19                
NuGet\Install-Package RAG.Parsers.Docx -Version 1.0.0-preview-19                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RAG.Parsers.Docx" Version="1.0.0-preview-19" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RAG.Parsers.Docx --version 1.0.0-preview-19                
#r "nuget: RAG.Parsers.Docx, 1.0.0-preview-19"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RAG.Parsers.Docx as a Cake Addin
#addin nuget:?package=RAG.Parsers.Docx&version=1.0.0-preview-19&prerelease

// Install RAG.Parsers.Docx as a Cake Tool
#tool nuget:?package=RAG.Parsers.Docx&version=1.0.0-preview-19&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

  1. Add nuget package:

Install-Package RAG.Parsers.Docx

  1. 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

  1. Add nuget package:

Install-Package RAG.Parsers.Xlsx

  1. 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 :

"Buy Me A Coffee"

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.0.0-preview-20 173 7/9/2024
1.0.0-preview-19 46 7/9/2024
1.0.0-preview-025 254 9/16/2024
1.0.0-preview-024 48 9/16/2024
1.0.0-preview-023 56 9/16/2024
1.0.0-preview-022 46 7/10/2024
1.0.0-preview-018 69 1/4/2024
1.0.0-preview-017 188 1/4/2024
1.0.0-preview-016 78 1/4/2024
1.0.0-preview-015 64 1/4/2024