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
* **Added** JavaScript support to PDF form fields, thereby fixing `#454 <https://github.com/pymupdf/PyMuPDF/issues/454>`_.
11
+
* **Added** a new annotation method :meth:`Annot.delete_responses`, which removes 'Popup' and response annotations referring to the current one. Mainly serves data protection purposes.
11
12
* **Added** a new form field method :meth:`Widget.reset`, which resets the field value to its default.
12
-
* **Changed** and extended handling of redactions: images and XObjects are removed if *contained* in a redaction rectangle. Any partial overlaps will just be covered by the redaction background color. Now a text can be specified to be inserted in the rectangle area to **replace the deleted original** text. This resolves `#434 <https://github.com/pymupdf/PyMuPDF/issues/434>`_.
13
+
* **Changed** and extended handling of redactions: images and XObjects are removed if *contained* in a redaction rectangle. Any partial only overlaps will just be covered by the redaction background color. Now an *overlay* text can be specified to be inserted in the rectangle area to **take the place the deleted original** text. This resolves `#434 <https://github.com/pymupdf/PyMuPDF/issues/434>`_.
Copy file name to clipboardExpand all lines: docs/page.rst
+3-3
Original file line number
Diff line number
Diff line change
@@ -984,13 +984,13 @@ This is available for PDF documents only. There are basically two groups of meth
984
984
985
985
.. attribute:: CropBoxPosition
986
986
987
-
Contains the displacement of the page's */CropBox* for a PDF, otherwise the top-left coordinates of :attr:`Page.rect`.
987
+
Contains the top-left point of the page's */CropBox* for a PDF, otherwise *Point(0, 0)*.
988
988
989
989
:type::ref:`Point`
990
990
991
991
.. attribute:: CropBox
992
992
993
-
The page's */CropBox* for a PDF, else :attr:`Page.rect`.
993
+
The page's */CropBox* for a PDF. Always the **unrotated** page rectangle is returned. For a non-PDF this will always equal the page rectangle.
994
994
995
995
:type::ref:`Rect`
996
996
@@ -1006,7 +1006,7 @@ This is available for PDF documents only. There are basically two groups of meth
1006
1006
1007
1007
:type::ref:`Rect`
1008
1008
1009
-
.. note:: For most PDF documents and for all other types, *page.rect == page.CropBox == page.MediaBox* is true. However, for some PDFs the visible page is a true subset of */MediaBox*. In this case the above attributes help to correctly locate page elements.
1009
+
.. note:: For most PDF documents and for all other types, *page.rect == page.CropBox == page.MediaBox* is true. However, for some PDFs the visible page is a true subset of */MediaBox*. Also, if the page is rotated, its ``Page.rect`` may not equal ``Page.CropBox``. In these cases the above attributes help to correctly locate page elements.
0 commit comments