Warning: annot type has no fill color #1034
-
| 
         Hi, Thanks for this amazing library. I am trying to loop through various sentences and want to highlight sentences based on a category: when I run this it gives me an warning: warning: annot type has no fill color for some reason only yellow works!  | 
  
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
| 
         Text marker annotations have no fill color by PDF specification. This is not a (Py-) MuPDF restriction or whatever.  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Do this: annot=page.addHihlightAmmot(...)
annot.set_colors(stroke=(0,0,1))
annot.update() | 
  
Beta Was this translation helpful? Give feedback.

Do this: