Class LatexCompiler

java.lang.Object
backend.export.LatexCompiler

public class LatexCompiler extends Object
Kompiliert .tex-Code zu .pdf Dateien
Author:
Philipp Landmann
  • Constructor Details

    • LatexCompiler

      public LatexCompiler()
  • Method Details

    • compile

      public static Path compile(String texCode) throws IOException
      Kompiliert .tex-Code zu einer .pdf Datei
      Parameters:
      texCode - .tex-Code
      Returns:
      Pfad zur kompilierten .pdf Datei (in tmp-Ordner)
      Throws:
      IOException
    • compileToByteArray

      public static byte[] compileToByteArray(String texCode) throws IOException
      Parameters:
      texCode - .tex-Code
      Returns:
      Kompilierte .pdf-Datei als byte-Array
      Throws:
      IOException - wenn die PDF-Datei nicht eingelesen werden kann.