Skip to content

Merged epub from multiple epubs show 1st page as blank? #791

Discussion options

You must be logged in to vote

Confirming this behaviour - weird indeed.
Page rect is (0, 0, 450, 600) when opened without parameter. But if you do this:

>>> import fitz
>>> doc=fitz.open("test-merge.epub", rect=(0,0,400,600))
>>> page=doc[0]
>>> page.rect
Rect(0.0, 0.0, 400.0, 600.0)
>>> pix=page.get_pixmap()
>>> pix.writeImage("t.png")
>>> 

the page picture is shown correctly. It also works if choosing an A4 rectangle on open.
One can also do a doc.layout() with an appropriate rectangle before loading the first page, and it will work ...

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@JorjMcKie
Comment options

@JorjMcKie
Comment options

Answer selected by JorjMcKie
Comment options

You must be logged in to vote
1 reply
@JorjMcKie
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants