pipeline: don’t use qpdf to check page count again

We already know the number of pages at this stage.
This commit is contained in:
James R. Barlow
2016-12-12 15:09:11 -08:00
parent b8767e5ba9
commit 620745c812
+2 -1
View File
@@ -282,7 +282,8 @@ def split_pages(
options.input_file))
raise InputFileError()
npages = qpdf.get_npages(input_file, log)
pdfinfo = context.get_pdfinfo()
npages = len(pdfinfo)
qpdf.split_pages(input_file, work_folder, npages)
from glob import glob