Skip to content
Discussion options

You must be logged in to vote

Located the problem a bit better:

  • using the new page method page.get_bboxlog() I found that there is one operation which creates an infinite bbox: namely the instruction that creates the yellow shaded area near the top.
  • Why this causes a problem in Linux, but not in Windows: no idea:
bboxes = page.get_bboxlog()
for i, item in enumerate(bboxes):
    print(i, item)
38 ('fill-shade', (-2147483648.0, -2147483648.0, 2147483520.0, 2147483520.0))

What you see in the bbox tuple, is the new definition of an infinite rectangle. If then looking at the page definition:

In [11]: print(doc.xref_object(page.xref))
<<
  /Contents 28 0 R
  /MediaBox [ 0 0 612 792 ]
  /Parent 27 0 R
  /Resources <<
    /F…

Replies: 8 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@victor-ab
Comment options

@victor-ab
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@victor-ab
Comment options

@JorjMcKie
Comment options

Answer selected by victor-ab
Comment options

You must be logged in to vote
0 replies
Comment options

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

@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