Skip to content

Missing segment if subpath has h operator in the middle #1864

Answered by JorjMcKie
mahardhikapraja asked this question in Q&A
Discussion options

You must be logged in to vote

I don't understand your argument:
In page.get_drawings() I am not reading the page /Contents, but I am accessing general MuPDF interface, which also works for all document types supported. MuPDF does all the abstractions from how whatever document type is doing its rendering.
So cannot derive the contents line number from the "seqno" key in a drawing.

But independently from this, I am counting like that:
There are only the following 4 points:
p1 = (0,0)
p2 = (-1228, 0)
p3 = (0, -43)
p4 = (-1271, -43)

your p6 equals your p3, and your p5 equals your p2.

And the lines being drawn are (p1, p2), (p2, p3), (p2, p3) (again!), (p3, p4). So 4 lines should be drawn, where 2 of them are identical.

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by JorjMcKie
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
6 replies
@JorjMcKie
Comment options

@mahardhikapraja
Comment options

@mahardhikapraja
Comment options

@JorjMcKie
Comment options

@mahardhikapraja
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
not a bug not a bug / user error / unable to reproduce
2 participants
Converted from issue

This discussion was converted from issue #1863 on August 08, 2022 11:59.