LaTeX to PDF Converter using local process

Last modified by Vincent Massol on 2024/10/18 15:25

cogConvert LaTeX files to PDF, using a local process
TypeJAR
CategoryAPI
Developed by

Vincent Massol, Thomas Mortagne

Active Installs1
Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

Installable with the Extension Manager

Description

It is recommended to use the LaTeX to PDF Converter using Docker (which is the default), as it provides a more generic and secure solution. It's also simpler to setup. This extension can be used when it's not possible to install Docker.

For this PDF converter to work you'll need to have a pdflatex executable available on the server where XWiki is running. This can be configured using:

## Several commands can be executed, by defining them one per line as shown below.
## Note that we need the pdflatex command to be executed twice to generate the TOC on the second pass.
latex.pdf.process.commands=pdflatex -shell-escape index.tex
latex.pdf.process.commands=pdflatex -shell-escape index.tex

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager).

You can also use the manual method which involves dropping the JAR file and all its dependencies into the WEB-INF/lib folder and restarting XWiki.


This extension is not installed by default by the LaTeX Exporter (which draws the PDF export using Docker) and thus you'll need to install it explicitly.

Dependencies

Dependencies for this extension (org.xwiki.contrib.latex:latex-pdf-process 1.26):

  • org.xwiki.contrib.latex:latex-pdf-api 1.26
  • org.apache.commons:commons-exec 1.3

Get Connected