Skip to content

Commit

Permalink
Revert weasy
Browse files Browse the repository at this point in the history
  • Loading branch information
Frooodle committed Mar 28, 2024
1 parent f10b3ff commit a9679da
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
@RequestMapping("/api/v1/convert")
public class ConvertWebsiteToPDF {

@Autowired
@Qualifier("bookAndHtmlFormatsInstalled")
private boolean bookAndHtmlFormatsInstalled;

@PostMapping(consumes = "multipart/form-data", value = "/url/pdf")
@Operation(
summary = "Convert a URL to a PDF",
Expand All @@ -53,11 +49,7 @@ public ResponseEntity<byte[]> urlToPdf(@ModelAttribute UrlToPdfRequest request)

// Prepare the OCRmyPDF command
List<String> command = new ArrayList<>();
if (!bookAndHtmlFormatsInstalled) {
command.add("weasyprint");
} else {
command.add("wkhtmltopdf");
}
command.add("weasyprint");
command.add(URL);
command.add(tempOutputFile.toString());

Expand Down

0 comments on commit a9679da

Please sign in to comment.