Aspose.TeX Converters for .NET – FAQ
Q: What source and output formats does Aspose.TeX for .NET support?
A: Aspose.TeX can read LaTeX source files (*.tex), plain‑text LaTeX snippets, and inline math ($$…$$, \(...\), \[…\]). It can output to PDF, XPS, SVG, PNG, JPEG, BMP, TIFF, DOCX, ODT, HTML‑5 (with CSS), and EPUB (via PDF→EPUB).
Q: How do I convert a .tex file to PDF in C#?
A:
1using Aspose.TeX;
2
3// Load LaTeX source
4var tex = new TexDocument(@"C:\Input\sample.tex");
5
6// Convert to PDF
7using (var pdf = tex.ToPdf())
8{
9 pdf.Save(@"C:\Output\sample.pdf");
10}Q: Can I directly convert LaTeX to Word (DOC/DOCX) or HTML?
A: Yes. Use TexDocument.ToWord() for DOC/DOCX and TexDocument.ToHtml() for clean HTML‑5 output (styles are inlined by default).
Q: Are mathematical equations rendered accurately?
A: The built‑in LaTeX math parser renders equations as high‑quality vector graphics in PDF/SVG or as anti‑aliased bitmaps in PNG/JPEG. Full support is provided for complex environments such as align, eqnarray, amsmath, and tikz.
Q: Do I need a LaTeX installation (e.g., MiKTeX) on the server?
A: No. Aspose.TeX is a completely standalone .NET library and does not require any external TeX distribution.
Q: What are the runtime requirements?
A:
• .NET Framework 4.6 or later or .NET Core 2.1 +/ .NET 5+.
• Windows x64/x86, Linux (glibc 2.12+), macOS (Catalyst).
• No additional native binaries are needed.
Q: How do I control image output resolution and quality?
A:
1var opts = new ImageSaveOptions
2{
3 Resolution = 300, // DPI
4 Quality = 95 // JPEG quality (0‑100)
5};
6var img = tex.ToPng(opts);
7img.Save(@"C:\Output\sample.png");Q: Is there a free trial or evaluation version?
A: A 30‑day evaluation DLL is available from the Aspose website. It includes the full feature set but limits each conversion to 500 KB of input. No license key is required for the trial build.
Q: How is licensing handled in code?
A:
1Aspose.TeX.License license = new Aspose.TeX.License();
2license.SetLicense(@"C:\License\Aspose.TeX.lic");Q: Can I perform batch conversions (multiple .tex files) efficiently?
A: Yes. Create a TexDocument per file or reuse a single instance for multiple fragments. The library is thread‑safe for read‑only operations, so you can parallelise work with Parallel.ForEach.
Q: Do I get any support for custom packages or user‑defined macros?
A: Core support includes common packages such as amsmath, amssymb, graphicx, hyperref, tikz, etc. For unsupported packages you can pre‑process LaTeX yourself or use the ExternalPackageResolver API to load custom .sty files at runtime.
Q: How do I add watermarks or page numbers to the generated PDF?
A: After conversion you can treat the result as an Aspose.Pdf.PdfDocument. Example:
1var pdf = tex.ToPdf();
2pdf.AddWatermarkText("Confidential");
3pdf.AddPageNumbers();
4pdf.Save(@"C:\Output\sample.pdf");The two Aspose libraries share the same namespace hierarchy, making interoperability seamless.
Q: What is the pricing model?
A:
• Developer Small Business: $999 / year (up to 5 developers).
• Developer OEM: perpetual license starting at $3 499 / year (includes source code).
Volume discounts and site licenses are available on request.
Q: Where can I find detailed API documentation and examples?
A: