TeX-engine

TeX Engine

TeXJob is het belangrijkste toegangspunt voor de Aspose.TeX FOSS-engine. Het accepteert een invoerbron, een uitvoerapparaat en optionele TeXOptions, en voert vervolgens de typesetting-pijplijn uit.


Constructor

TeXJob(source: InputSource, device: OutputDevice, options: TeXOptions | None = None)
ParameterTypeBeschrijving
sourceInputSourceFileInputSource of StringInputSource
deviceOutputDevicePdfDevice, DviDevice, of SvgDevice
optionsTeXOptionsEngine-opties; standaard op TeXOptions()

Engine uitvoeren

Roep run() aan om typesetting uit te voeren:

from aspose_tex import TeXJob, TeXOptions, PdfDevice, StringInputSource

job = TeXJob(StringInputSource("Hello!"), PdfDevice(), options=TeXOptions())
output_bytes = job.run()

De retourwaarde is bytes voor PdfDevice en DviDevice. Voor SvgDevice is de retourwaarde None; pagina’s worden opgehaald met SvgDevice.get_all_pages().


TeXOptions

TeXOptions() configureert de engine. Het construeren zonder argumenten gebruikt de standaard TeX defaults, die geschikt zijn voor de meeste documenten.


API Reference Samenvatting

Klasse / MethodeBeschrijving
TeXJobHoofdtoegangspunt van de engine
TeXJob.run()Voer typesetting uit; retourneer output bytes
TeXOptionsEngine-configuratie
PdfDevicePDF-uitvoerapparaat
DviDeviceDVI-uitvoerapparaat
SvgDeviceSVG-uitvoerapparaat
SvgDevice.get_all_pages()Retourneer per-pagina SVG-byte strings

Zie ook

 Nederlands