DOCXPDF 0.3.0 - Toolmints download
================================
Convert .docx to PDF locally using a .NET library or command-line tool.
This is not a graphical desktop app or browser converter. Microsoft Word
and LibreOffice are not required. No fonts or .NET runtime are bundled.

QUICK START (Windows, macOS, Linux)
1. Install the .NET 8 runtime for your operating system and architecture.
2. Extract the ZIP. Open a terminal inside the extracted Docxpdf-0.3.0 folder.
3. Run:
   dotnet cli/Docxpdf.Cli.dll --version
   dotnet cli/Docxpdf.Cli.dll examples/headings.docx -o output/headings.pdf
4. Open output/headings.pdf and review the result and terminal warnings.
   Reference PDFs in examples were generated on the packaging Windows host;
   your installed fonts can change line breaks and pagination.

COMMANDS (run from the extracted folder)
   dotnet cli/Docxpdf.Cli.dll "path/to/report.docx"
   dotnet cli/Docxpdf.Cli.dll "path/to/report.docx" -o "output/report.pdf"
   dotnet cli/Docxpdf.Cli.dll "path/to/documents" -o "output" -j 4
   dotnet cli/Docxpdf.Cli.dll "path/to/report.docx" --fonts "path/to/fonts"
   dotnet cli/Docxpdf.Cli.dll --help

Default output: same base name with .pdf, next to the input.
EXISTING OUTPUT FILES ARE OVERWRITTEN WITHOUT CONFIRMATION.
Never use the input DOCX path as -o: that would overwrite the original.
For one input, -o is a filename unless the destination is an existing folder.
For folder/multiple inputs, -o is a folder. Missing parent folders are created.
Folder mode scans immediate *.docx files, skips ~$ temporary files, and does
not recurse. Extension matching follows the platform. Use lowercase .docx.
Avoid files with identical base names going to one destination, especially
with -j: they target the same PDF. Keep separate output folders for each batch.

OPTIONS
-o, --output PATH : output file or folder as described above
-j, --jobs N      : concurrent conversions, integer >= 1; default 1
-q, --quiet       : suppress normal output, warnings and font notices; errors remain
--fonts DIRS      : extra font folders searched first; quote the argument;
                    separate folders by ; on Windows or : on macOS/Linux
--version         : print version and exit
-h, --help        : show help and exit
Exit codes: 0 = success; 1 = conversion failure(s); 2 = usage error/no DOCX files.
Some directory/access failures can terminate before the normal summary.

FONTS AND FIDELITY
Install the original document fonts where licensed. Windows does not always
have Calibri or Cambria installed. Missing fonts are substituted and can
change wrapping, spacing and page counts. On Debian/Ubuntu, optional packages:
  sudo apt install fonts-crosextra-carlito fonts-crosextra-caladea fonts-liberation fonts-dejavu fonts-noto-cjk
Alternatively use --fonts, DOCXPDF_FONT_DIRS (same path separator rules), or a
fonts folder beside Docxpdf.dll. Prefer TTF/TTC fonts. No Microsoft fonts are
included. Review the font licenses before bundling fonts in your own app.

C# INTEGRATION (SDK required to build your application)
The nuget folder includes Docxpdf.0.3.0.nupkg. Register it as a local source,
keeping your usual NuGet source enabled for the .NET Standard dependency:
  dotnet nuget add source "ABSOLUTE/PATH/Docxpdf-0.3.0/nuget" --name DocxpdfLocal
From your application project:
  dotnet add package Docxpdf --version 0.3.0

  using Docxpdf;
  var result = DocxConverter.Convert("report.docx", "output/report.pdf");
  Console.WriteLine($"{result.Pages} pages -> {result.OutputPath}");
  foreach (var warning in result.Warnings) Console.WriteLine(warning);
  foreach (var font in result.FontSubstitutions)
      Console.WriteLine($"{font.Key} -> {font.Value}");

Streams: DocxConverter.Convert(inputStream, outputStream); caller owns streams.
Bytes: byte[] pdf = DocxConverter.Convert(docxBytes, out var result);
Catch ConversionException for document/conversion errors. Also handle normal
I/O exceptions in your integration (e.g. creating output folders or streams).
SetFontDirectories(new[] { "path/to/fonts" }) configures process-wide fonts;
call it once before starting parallel conversions. Substitution diagnostics
are shared by the font library and can include earlier conversions.
Conversion buffers documents and PDF output in memory, including stream APIs;
choose concurrency and input limits appropriate to your available memory.

The lib folder has net8.0 and netstandard2.0 DLLs, XML docs and debug symbols.
The net8.0 DLL has no NuGet package dependency. The netstandard2.0 DLL needs
System.Text.Encoding.CodePages 8.0.0 and its dependencies; these are NOT bundled
in lib. Prefer the NuGet package so restore resolves them automatically.
.NET Standard compatibility depends on the host; the CLI specifically uses
.NET 8. No self-contained executable is included.

CONTENTS
cli/      Published framework-dependent .NET 8 command-line application
lib/      Library DLLs for net8.0 and netstandard2.0
nuget/    Local NuGet package
source/   Original .NET source, tests and upstream README (no Git or build cache)
examples/ Generated headings and tables DOCX inputs, plus converted PDF outputs

Build source: dotnet build source/Docxpdf.sln -c Release
Run tests:    dotnet test source/Docxpdf.sln -c Release
The upstream README includes historical corpus/benchmark claims; these are
not a guarantee of Microsoft Word fidelity or performance on your machine.
Source inclusion does not establish an open-source redistribution license.
No license grant has been added by this packaging step.

HOW IT WORKS AND LIMITS
Validates the DOCX ZIP, parses OOXML into a document model, discovers fonts,
lays out text/tables/objects into pages, then writes PDF with embedded/subset
TrueType fonts and image/vector content. Conversion code uses local files.
Documents are not uploaded by this tool. Installing .NET/restoring packages
can require an internet connection; the download page uses site analytics.

Supports formatting, lists, tables, images, sections/columns, headers/footers,
notes, links/bookmarks, charts, shapes, cached SmartArt, equations and RTL text.
This is an independent renderer, not Microsoft's Word rendering engine.
Comment balloons and tracked-change markup are not rendered (final text is
shown). OLE objects use preview images only; forms are not interactive; picture
outlines are unsupported. Review complex layouts before distributing PDFs.
Legacy .doc, encrypted documents, and non-DOCX formats must be saved as an
unprotected .docx in a suitable editor first. Renaming an extension is not enough.
