Search in sources :

Example 1 with PdfExporter

use of eu.transkribus.core.model.builder.pdf.PdfExporter in project TranskribusCore by Transkribus.

the class DocExporter method writePDF.

public void writePDF(final TrpDoc doc, final String path, Set<Integer> pageIndices, final boolean addTextPages, final boolean imagesOnly, final boolean highlightTags, final boolean wordBased, final boolean doBlackening, boolean createTitle, ExportCache cache) throws MalformedURLException, DocumentException, IOException, JAXBException, URISyntaxException, InterruptedException {
    PdfExporter pdfWriter = new PdfExporter();
    pdfWriter.export(doc, path, pageIndices, wordBased, addTextPages, imagesOnly, highlightTags, doBlackening, createTitle, cache);
}
Also used : PdfExporter(eu.transkribus.core.model.builder.pdf.PdfExporter)

Example 2 with PdfExporter

use of eu.transkribus.core.model.builder.pdf.PdfExporter in project TranskribusCore by Transkribus.

the class PdfExporterTest method main.

public static void main(String[] args) throws MalformedURLException, DocumentException, IOException, JAXBException, URISyntaxException, InterruptedException {
    // final String path = "/mnt/dea_scratch/TRP/Bentham_baselines";
    final String path = "/mnt/dea_scratch/TRP/Bentham_box_002_GT";
    // final String path = "/mnt/dea_scratch/TRP/Schauplatz_Small";
    TrpDoc doc = LocalDocReader.load(path);
    (new PdfExporter()).export(doc, "/tmp/test.pdf", null, false, false, false, false, false, false, null);
}
Also used : TrpDoc(eu.transkribus.core.model.beans.TrpDoc) PdfExporter(eu.transkribus.core.model.builder.pdf.PdfExporter)

Aggregations

PdfExporter (eu.transkribus.core.model.builder.pdf.PdfExporter)2 TrpDoc (eu.transkribus.core.model.beans.TrpDoc)1