![]() |
VOOZH | about |
dotnet add package MigraDocXML-ZXing-WPF --version 3.0.0
NuGet\Install-Package MigraDocXML-ZXing-WPF -Version 3.0.0
<PackageReference Include="MigraDocXML-ZXing-WPF" Version="3.0.0" />
<PackageVersion Include="MigraDocXML-ZXing-WPF" Version="3.0.0" />Directory.Packages.props
<PackageReference Include="MigraDocXML-ZXing-WPF" />Project file
paket add MigraDocXML-ZXing-WPF --version 3.0.0
#r "nuget: MigraDocXML-ZXing-WPF, 3.0.0"
#:package MigraDocXML-ZXing-WPF@3.0.0
#addin nuget:?package=MigraDocXML-ZXing-WPF&version=3.0.0Install as a Cake Addin
#tool nuget:?package=MigraDocXML-ZXing-WPF&version=3.0.0Install as a Cake Tool
From having to do a fair amount of work producing PDFs, I found MigraDoc is currently the only really viable open source .NET option available. It includes some excellent features that give a lot of control over creating PDFs, while still staying high level enough to be easy to understand.
However, the way document designs are written does also present some major drawbacks:
MigraDocXML aims to solve these problems, while still keeping as much flexibility as possible. Below are some of its features:
Below is a demonstration of a layout file which takes in a json file to produce .
json:
{
"Name": "MigraDocXML",
"Positives": [
"Simple to learn",
"Easily readable design layouts",
"Full cascading style system",
"Support for PDFSharp graphics",
"Includes a powerful lightweight expression evaluator",
"Regular updates"
],
"Negatives": [
]
}
xml:
<?xml version="1.0"?>
<Document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://gitlab.com/jamescoyle/MigraDocXML/raw/master/MigraDocXML/schema.xsd">
<Style Target="p">
<Setters Format.Font.Name="Calibri" Format.SpaceBefore="2mm" Format.SpaceAfter="2mm"/>
</Style>
<Style Target="p" Name="Heading">
<Setters Format.Font.Bold="true" Format.Font.Underline="Single"/>
</Style>
<Section>
<p Style="Heading" Format.Font.Size="15" Format.Alignment="Center">Reasons you should use {Model.Name}</p>
<p Style="Heading">Positives:</p>
<ForEach Var="positive" In="Model.Positives.OrderByDesc(x => x.Length)">
<p>{positive}</p>
</ForEach>
<p Style="Heading">Negatives:</p>
<ForEach Var="negative" In="Model.Negatives">
<p>{negative}</p>
</ForEach>
</Section>
</Document>
MigraDocXML also includes a small WPF app for easily previewing the effect of changes to the layout or data on your output PDF. You can use the incredibly basic text editors included in the app, or, use whichever one you normally do. Either way, each time you save changes to your documents, the PDF will automatically get regenerated.
Part of the development of MigraDocXML is kindly sponsored by:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0-windows7.0 net6.0-windows7.0 is compatible. net7.0-windows net7.0-windows was computed. net8.0-windows net8.0-windows was computed. net9.0-windows net9.0-windows was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 440 | 9/2/2024 |
| 2.9.3 | 618 | 3/3/2023 |
| 2.9.2 | 755 | 2/28/2023 |
| 2.9.1 | 459 | 2/20/2023 |
| 2.9.0 | 791 | 2/6/2022 |
| 2.8.0 | 532 | 12/11/2021 |
| 2.7.2 | 581 | 10/21/2021 |
| 2.7.1 | 589 | 9/29/2021 |
| 2.7.0 | 560 | 9/7/2021 |
| 2.6.11 | 808 | 10/11/2020 |
| 2.6.10 | 711 | 8/29/2020 |
| 2.6.9 | 751 | 5/9/2020 |
| 2.6.8 | 761 | 3/31/2020 |
| 2.6.6 | 743 | 3/30/2020 |
| 2.6.3 | 904 | 7/14/2019 |
| 2.6.2 | 1,921 | 7/8/2019 |
| 2.6.1 | 889 | 7/5/2019 |
| 2.6.0 | 892 | 7/5/2019 |
| 2.5.0 | 892 | 6/5/2019 |
Added support for annotations