feat(conversion): switch PDF input engine to pdftohtml for improved performance and reduced dependencies (#5820)

This commit is contained in:
Balázs Szücs
2026-03-02 13:55:42 +00:00
committed by GitHub
parent cfe040485b
commit 48dd4154e9
4 changed files with 173 additions and 30 deletions
@@ -54,6 +54,12 @@ public class ConvertPDFToEpubController {
command.add(inputPath.toString());
command.add(outputPath.toString());
// Use pdftohtml engine (poppler) for PDF input instead of calibre's Qt-based engine.
// This avoids the Qt WebEngine dependency for PDF parsing and uses the lighter
// poppler-utils pdftohtml binary which is already available in the container.
command.add("--pdf-engine");
command.add("pdftohtml");
// Golden defaults
command.add("--enable-heuristics");
command.add("--insert-blank-line");