Merge pull request #1382 from Stirling-Tools/tweaks

tweaks and fix for #1381
This commit is contained in:
Anthony Stirling
2024-06-05 22:35:22 +01:00
committed by GitHub
8 changed files with 10 additions and 11 deletions

View File

@@ -117,7 +117,6 @@ public class PDFTableStripper extends PDFTextStripper {
/**
* Instantiate a new PDFTableStripper object.
*
* @param document
* @throws IOException If there is an error loading the properties.
*/
public PDFTableStripper() throws IOException {

View File

@@ -53,7 +53,7 @@ public class FileToPdf {
command.add("--paper-size");
command.add("a4");
if (request.getZoom() != 1.0) {
if (request != null && request.getZoom() != 1.0) {
// Create a temporary CSS file
File tempCssFile = Files.createTempFile("customStyle", ".css").toFile();
try (FileWriter writer = new FileWriter(tempCssFile)) {