repair pdf

This commit is contained in:
Jörg Prante 2023-09-26 16:32:47 +02:00
parent ba25c5ed3b
commit 2b9ff08296

View file

@ -1,5 +1,6 @@
package org.xbib.graphics.ghostscript.test;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.xbib.graphics.ghostscript.PDFRasterizer;
@ -103,6 +104,15 @@ public class PDFRasterizerTest {
}
}
@Disabled
@Test
void testPng2Pdf() throws IOException {
Path sourceDir = Paths.get("/home/joerg/projects/pdfreparatur/png");
Path targetFile = Paths.get("/home/joerg/projects/pdfreparatur/20230143280.pdf");
PDFRasterizer rasterizer = new PDFRasterizer();
rasterizer.mergeImagesToPDF(sourceDir, targetFile);
}
private static void delete(Path path) throws IOException {
if (path == null) {
return;