More debug messages on repair; update notes

This commit is contained in:
James R. Barlow
2018-03-28 00:39:38 -07:00
parent 5becfcf8ea
commit d0271d5049
3 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -5,11 +5,15 @@ OCRmyPDF uses `semantic versioning <http://semver.org/>`_ for its command line i
The OCRmyPDF package itself does not contain a public API, although it is fairly stable and breaking changes are usually timed with a major release. A future release will clearly define the stable public API.
v6.0.1
v6.1.0
------
- PyMuPDF is now an optional but recommended dependency, to alleviate installation difficulties on platforms that have less access to PyMuPDF than the author anticipated. Install OCRmyPDF with ``pip install ocrmypdf[fitz]`` to use it to its full potential.
- Fix ``FileExistsError`` that could occur if OCR timed out while it was generating the output file. (#218)
- Fix table of contents/bookmarks all being redirected to page 1 when generating a PDF/A (with PyMuPDF). (Without PyMuPDF the table of contents is removed in PDF/A mode.)
v6.0.0
------
-1
View File
@@ -728,7 +728,6 @@ class PdfInfo:
else:
self._toc = []
@property
def pages(self):
return self._pages
+3
View File
@@ -212,7 +212,10 @@ def repair_pdf(
log,
context):
options = context.get_options()
log.debug("Beginning qpdf repair...")
qpdf.repair(input_file, output_file, log)
log.debug("Repair OK; beginning parse...")
pdfinfo = PdfInfo(output_file)
if pdfinfo.has_userunit and options.output_type == 'pdfa':