repair pdf
This commit is contained in:
parent
ba25c5ed3b
commit
2b9ff08296
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue