Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonaspetraska7/dokudoku
.NET PDF, WORD, EXCEL Library. Easy to use, free forever.
https://github.com/jonaspetraska7/dokudoku
converter docx dotnet generator library nuget pdf
Last synced: 4 days ago
JSON representation
.NET PDF, WORD, EXCEL Library. Easy to use, free forever.
- Host: GitHub
- URL: https://github.com/jonaspetraska7/dokudoku
- Owner: jonaspetraska7
- Created: 2024-01-22T09:36:22.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-05T11:54:41.000Z (11 months ago)
- Last Synced: 2024-12-18T03:48:31.240Z (5 days ago)
- Topics: converter, docx, dotnet, generator, library, nuget, pdf
- Language: C#
- Homepage: https://www.nuget.org/packages/DokuDoku
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ![image](https://github.com/jonaspetraska7/DokuDoku/assets/60759096/ede19124-ed73-478d-8caa-e9dccd7c3028) DokuDoku
---
.NET PDF, WORD, EXCEL Library. Easy to use, free forever.DokuDoku is using Migradoc Library to make all of this happen. MIT License. Fully Open source.
Documentation for the and useful resources for the Migradoc PDF library :
- https://github.com/empira/pdfsharp.Samples
- https://www.linkedin.com/pulse/pdf-generation-using-migradoc-arnoud-van-bokkem---
# Usage```
public MemoryStream CreatePdf()
{
var MyObject = new
{
Id = "101",
FirstName = "John",
LastName = "Johnson",
ComplexProperty = new
{
Country = "LTU",
Address = "Main str. 841, Vilnius",
}
};
MemoryStream pdf = Doku.PDF.Generate("MyPdf", pdf =>
{
pdf.AddTable("Table1", t =>
{
t.Config(true, 200, 200);
t.Property("Identification No.", MyObject.Id);
t.Property("First name", MyObject.FirstName);
t.Property("LastName", MyObject.LastName);
t.Property("Current Location : ", t =>
{
t.Config(false, 100, 100);
t.Property("Country :", MyObject.ComplexProperty.Country);
t.Property("Address", MyObject.ComplexProperty.Address);
});
}, MyObject != null);
pdf.AddTable("MyHorizontalTable", t =>
{
t.Config(true, 100, 100, 100);
t.Property("Id", "FirstName", "LastName");
for (int i = 0; i < 7; i++)
{
t.Property(MyObject.Id, MyObject.FirstName, MyObject.LastName);
}
});
});return pdf;
}
```How it looks like :
![image](https://github.com/jonaspetraska7/DokuDoku/assets/60759096/234ec13a-8f5c-4d8d-aabd-862cc7f693c1)