Using PyMuPDF
, is there any way to get the page margins? I mean the distance from the edge of the page to the nearest horizontal/vertical element, depending on whether it is left/right or top/bottom margin.
Looking at the documentation I don't see any native way to do it, but maybe by iterating through all the page elements and checking which one has higher/lower coordinates?