Convert TeX and LaTeX

TeX converter API Solution for Java.

Aspose.TeX is an API to the Object TeX system. For details on TeX, refer to Introduction to TeX . Developers can easily convert TeX and LaTeX to PDF, XPS, PNG, JPG, BMP and TIFF formats by integrating the API for Java. Below is a code example that programmers can enhance and integrate into LaTeX solutions.

The API solution for Java here lets you convert TeX and LaTeX files programmatically, but you may find it useful to see and try cross-platform Converters developed using the .NET version of the API. Here you can also find applications to create and edit TeX files, tables, graphics, to merge multiple TeX files into one PDF file, etc.

Convert LaTeX to Images, XPS, PDF, SVG in Java.

The API supports BMP, JPEG, PDF, SVG, TIFF, XPS, and PNG as output formats. To convert TeX files to Images, PDF, XPS, or SVG, follow next steps:

  1. Instantiate the TeXOptions class.
  2. Specify the file system working directory for the output/input using the setOutputWorkingDirectory() / setInputWorkingDirectory() methods.
  3. Initialize save options using the BmpSaveOptions , PngSaveOptions , TiffSaveOptions JpegSaveOptions or PdfSaveOptions , SvgSaveOptions , or XpsSaveOptions class. The last class is the default.
  4. Instantiate the TeXJob() class, passing the appropriate output device ImageDevice , PdfDevice , SvgDevice , or XpsDevice as an argument, and run the conversion using the run() method.

Aspose.TeX for Java works well in any development environment that supports Java, but the following requirements are strongly recommended:

  • Microsoft Windows desktop (7, 8, 10).
  • Linux systems (Ubuntu-16.04 or later).
  • Mac OS X.
  • J2SE 8.0 (1.8) or above (for example Java 10) Java Version.
Java code example: TeX(LaTeX) to Images, XPS, PDF or SVG conversion
Input file
Output format
Select the target format

        
 



FAQ

1. Can I convert TeX with this API solution?

Aspose.TeX has functionality that allows you to convert TeX and LaTeX files to other formats online or programmatically. If you need to transform your files instantly online, you may like to use the cross-platform TeX Converter application.

2. What Conversions are supported?

This conversion functionality supports JPEG, BMP, PNG, TIFF, SVG, PDF, and XPS as output formats.

3. Is the functionality free?

The cross-platform converters are free, while for the API solution you can get a free trial and then buy the product if needed.

  

Support and Learning Resources