|
|
@@ -9,14 +9,56 @@
|
|
|
[](https://github.com/QuestPDF/QuestPDF/stargazers)
|
|
|
[](https://www.nuget.org/packages/QuestPDF/)
|
|
|
[](https://www.nuget.org/packages/QuestPDF/)
|
|
|
-[](https://www.questpdf.com/pricing.html)
|
|
|
+[](https://www.questpdf.com/license/)
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
### QuestPDF is a modern open-source .NET library for PDF document generation. Offering comprehensive layout engine powered by concise and discoverable C# Fluent API.
|
|
|
|
|
|
-<img src="https://github.com/QuestPDF/QuestPDF-Documentation/blob/main/docs/public/previewer/animation.gif?raw=true" width="100%">
|
|
|
+```csharp
|
|
|
+Document
|
|
|
+ .Create(document =>
|
|
|
+ {
|
|
|
+ document.Page(page =>
|
|
|
+ {
|
|
|
+ page.Size(PageSizes.Postcard);
|
|
|
+ page.Margin(0.3f, Unit.Inch);
|
|
|
+
|
|
|
+ page.Header()
|
|
|
+ .Text("Hello PDF!")
|
|
|
+ .FontSize(28)
|
|
|
+ .Bold()
|
|
|
+ .FontColor(Colors.Blue.Darken2);
|
|
|
+
|
|
|
+ page.Content()
|
|
|
+ .PaddingVertical(8)
|
|
|
+ .Column(column =>
|
|
|
+ {
|
|
|
+ column.Spacing(8);
|
|
|
+
|
|
|
+ column.Item()
|
|
|
+ .Text(Placeholders.LoremIpsum())
|
|
|
+ .Justify();
|
|
|
+
|
|
|
+ column.Item()
|
|
|
+ .AspectRatio(16 / 9f)
|
|
|
+ .Image(Placeholders.Image);
|
|
|
+ });
|
|
|
+
|
|
|
+ page.Footer()
|
|
|
+ .AlignCenter()
|
|
|
+ .Text(text =>
|
|
|
+ {
|
|
|
+ text.Span("Page ");
|
|
|
+ text.CurrentPageNumber();
|
|
|
+ });
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .GeneratePdfAndShow();
|
|
|
+```
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
<br />
|
|
|
@@ -24,9 +66,7 @@
|
|
|
|
|
|
## Please help by giving a star
|
|
|
|
|
|
-Choosing a project dependency could be difficult. We need to ensure stability and maintainability of our projects. Surveys show that GitHub stars count play an important factor when assessing library quality.
|
|
|
-
|
|
|
-⭐ Please give this repository a star. It takes seconds and help thousands of developers! ⭐
|
|
|
+GitHub stars guide developers toward great tools. If you find this project valuable, please give it a star – it helps the community and takes just a second! ⭐
|
|
|
|
|
|
<img src="https://github.com/user-attachments/assets/bbc7cdc6-ac09-4bb3-bb9d-8abfa81e79fb" width="700" />
|
|
|
|
|
|
@@ -49,21 +89,12 @@ Accelerate your development with live document preview powered by the hot-reload
|
|
|
|
|
|
<br />
|
|
|
|
|
|
-
|
|
|
-
|
|
|
## What you need is here
|
|
|
|
|
|
-### Comprehensive Layout Engine
|
|
|
-A layout engine tailored for document generation, offering advanced paging and precise content control.
|
|
|
-
|
|
|
-### Rich Toolkit
|
|
|
-Craft documents with intuitive, reusable components and over 50 layout elements for complex designs.
|
|
|
-
|
|
|
-### High Performance
|
|
|
-Generate thousands of pages per second with minimal CPU and memory usage.
|
|
|
-
|
|
|
-### Advanced Language Support
|
|
|
-Seamlessly create multilingual documents with support for RTL, text shaping, and bi-directional content.
|
|
|
+- `Comprehensive Layout Engine` - A layout engine tailored for document generation, offering advanced paging and precise content control.
|
|
|
+- `Rich Toolkit` - Craft documents with intuitive, reusable components and over 50 layout elements for complex designs.
|
|
|
+- `High Performance` - Generate thousands of pages per second with minimal CPU and memory usage.
|
|
|
+- `Advanced Language Support` - Seamlessly create multilingual documents with support for RTL, text shaping, and bi-directional content.
|
|
|
|
|
|
<br />
|
|
|
|
|
|
@@ -97,6 +128,17 @@ void CreateItem(IContainer container, Item item)
|
|
|
|
|
|
<br />
|
|
|
|
|
|
+## Multiplatform
|
|
|
+
|
|
|
+The library supports all major operating systems, integrates seamlessly with leading IDEs as well as popular cloud platforms and technologies to ensure maximum flexibility.
|
|
|
+
|
|
|
+- `Technologies`: modern dotnet, legacy .NET Framework, Docker
|
|
|
+- `Operating systems`: Windows, Linux, MacOS
|
|
|
+- `Cloud providers`: Azure, AWS, Google Cloud
|
|
|
+- `IDE`: Visual Studio, Visual Code, JetBrains Rider, others
|
|
|
+
|
|
|
+<br />
|
|
|
+
|
|
|
## Perform common PDF operations
|
|
|
|
|
|
- Merge documents
|