You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/page.rst
+6-2
Original file line number
Diff line number
Diff line change
@@ -722,9 +722,11 @@ In a nutshell, this is what you can do with PyMuPDF:
722
722
723
723
Changed in version 1.14.11 By default, the image keeps its aspect ratio.
724
724
725
-
:arg rect_like rect: where to put the image on the page. Only the rectangle part which is inside the page is used. This intersection must be finite and not empty.
725
+
:arg rect_like rect: where to put the image. Must be finite and not empty.
726
+
727
+
*(Changed in v1.17.6)* Needs no longer have a non-empty intersection with the page's :attr:`Page.CropBox` [#f5]_.
726
728
727
-
Changed in version 1.14.13 The image is now always placed **centered** in the rectangle, i.e. the center of the image and the rectangle coincide.
729
+
*(Changed in version 1.14.13)* The image is now always placed **centered** in the rectangle, i.e. the centers of image and rectangle are equal.
728
730
729
731
:arg str filename: name of an image file (all formats supported by MuPDF -- see :ref:`ImageFiles`). If the same image is to be inserted multiple times, choose one of the other two options to avoid some overhead.
730
732
@@ -1241,3 +1243,5 @@ The page number "pno" is a 0-based integer *-inf < pno < pageCount*.
1241
1243
.. [#f3] Not all PDF readers display these fonts at all. Some others do, but use a wrong character spacing, etc.
1242
1244
1243
1245
.. [#f4] You are generally free to choose any of the :ref:`mupdficons` you consider adequate.
1246
+
1247
+
.. [#f5] The previous algorithm caused images to be **shrunk** to this intersection. Now the image can be anywhere on :attr:`Page.MediaBox`, potentially being invisible or only partially visible if the cropbox (representing the visible page part) is smaller.
0 commit comments