Skip to content

Commit

Permalink
[PAY-1829] openhtmltopdf lib is red on master
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-coqueblin committed Feb 4, 2025
1 parent 16f5ca5 commit 7c39433
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
package com.openhtmltopdf.nonvisualregressiontests.support;

import com.openhtmltopdf.nonvisualregressiontests.NonVisualRegressionTest;
import com.openhtmltopdf.pdfboxout.PdfRendererBuilder;
import com.openhtmltopdf.util.OpenUtil;
import com.openhtmltopdf.visualtest.VisualTester.BuilderConfig;
import org.apache.pdfbox.pdmodel.PDDocument;

import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.File;
Expand All @@ -8,13 +14,6 @@
import java.nio.file.Path;
import java.nio.file.Paths;

import org.apache.pdfbox.pdmodel.PDDocument;

import com.openhtmltopdf.nonvisualregressiontests.NonVisualRegressionTest;
import com.openhtmltopdf.pdfboxout.PdfRendererBuilder;
import com.openhtmltopdf.util.OpenUtil;
import com.openhtmltopdf.visualtest.VisualTester.BuilderConfig;

public class NonVisualTestSupport {
public static class TestDocument implements Closeable {
final Path filePath;
Expand Down Expand Up @@ -44,6 +43,11 @@ public void close() throws IOException {
public NonVisualTestSupport(String baseResourcePath, String outFilePath) {
this.baseResPath = baseResourcePath;
this.outPath = outFilePath;
try {
Files.createDirectories(Paths.get(outFilePath));
} catch (IOException e) {
throw new RuntimeException(e);
}
}

private void render(
Expand Down

0 comments on commit 7c39433

Please sign in to comment.