[fix] Better error handling when MuPDF document has no pages (#3710)

It happens in base so we don't have to worry about it in front.

References https://github.com/koreader/koreader/issues/3705
pull/3714/head
Frans de Jonge 6 years ago committed by GitHub
parent a8e71706b1
commit 8b3b2b0eb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1 +1 @@
Subproject commit c629cd88b729edfd13962bd664a0d64b4efc3cb0
Subproject commit aafc74835bfd1bc53d34d31b8f2efdc9be3d7bbe

@ -40,10 +40,6 @@ function PdfDocument:init()
else
self:_readMetadata()
end
-- TODO: handle this
-- if not (self.info.number_of_pages > 0) then
--error("No page found in PDF file")
-- end
end
function PdfDocument:preRenderPage()

Loading…
Cancel
Save