Skip to content

Porting from old version (1.21) to pymupdf to 1.24.14 #4171

Answered by PCarle
PCarle asked this question in Q&A
Discussion options

You must be logged in to vote

if i change get_pannots defintion to :

def get_pannots(p):
    res= []
    for a in page.annots():
        tmp=a.info
        if 'subject' in tmp:
            if "toto"==tmp['subject']:
                if (a.type[0]==mupdf.PDF_ANNOT_POLYGON ):
                    #print("findPolyAnnotationsInPage",tmp['id'])
                    res.insert(-1,a)
        
    return res

No errors ! !

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by PCarle
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants