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);
}
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);
}
Aggregations