Skip to content

Commit

Permalink
docs/page.rst:insert_image(): mention that rotation is anti-clockwise.
Browse files Browse the repository at this point in the history
For #2275.
  • Loading branch information
julian-smith-artifex-com committed Mar 14, 2023
1 parent 0909a3f commit 7231dcb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/page.rst
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,13 @@ In a nutshell, this is what you can do with PyMuPDF:

:arg int alpha: *(Changed in v1.19.3)* deprecated. No longer needed -- ignored when given.

:arg int rotate: *(new in version v1.14.11)* rotate the image. Must be an integer multiple of 90 degrees. If you need a rotation by an arbitrary angle, consider converting the image to a PDF (:meth:`Document.convert_to_pdf`) first and then use :meth:`Page.show_pdf_page` instead.
:arg int rotate: *(new in version v1.14.11)* rotate the image.
Must be an integer multiple of 90 degrees.
Positive values rotate anti-clockwise.
If you need a rotation by an arbitrary angle,
consider converting the image to a PDF
(:meth:`Document.convert_to_pdf`)
first and then use :meth:`Page.show_pdf_page` instead.

:arg int oc: *(new in v1.18.3)* (:data:`xref`) make image visibility dependent on this :data:`OCG` or :data:`OCMD`. Ignored after the first of multiple insertions. The property is stored with the generated PDF image object and therefore controls the image's visibility throughout the PDF.
:arg bool keep_proportion: *(new in version v1.14.11)* maintain the aspect ratio of the image.
Expand Down

0 comments on commit 7231dcb

Please sign in to comment.