Skip to content

Commit 8c4d9b5

Browse files
committed
Fix several typos in the documentation
1 parent 1726be5 commit 8c4d9b5

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/document.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ For details on **embedded files** refer to Appendix 3.
219219

220220
>>> for item in doc.layer_configs: print(item)
221221
{'number': 0, 'name': 'my-config', 'creator': ''}
222-
>>> # use 'number' as config identifyer in add_ocg
222+
>>> # use 'number' as config identifier in add_ocg
223223

224224
.. method:: add_layer_config(name, creator=None, on=None)
225225

docs/functions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,9 +521,9 @@ Yet others are handy, general-purpose utilities.
521521

522522
PDF only: Clean and concatenate all :data:`contents` objects associated with this page. "Cleaning" includes syntactical corrections, standardizations and "pretty printing" of the contents stream. Discrepancies between :data:`contents` and :data:`resources` objects will also be corrected if sanitize is true. See :meth:`Page.getContents` for more details.
523523

524-
Changed in version 1.16.0 Annotations are no longer implicitely cleaned by this method. Use :meth:`Annot.cleanContents` separately.
524+
Changed in version 1.16.0 Annotations are no longer implicitly cleaned by this method. Use :meth:`Annot.cleanContents` separately.
525525

526-
:arg bool sanitize: *(new in v1.17.6)* if true, synchronization between resources and their actual use in the contents object is snychronized. For example, if a font is not actually used for any text of the page, then it will be deleted from the ``/Resources/Font`` object.
526+
:arg bool sanitize: *(new in v1.17.6)* if true, synchronization between resources and their actual use in the contents object is synchronized. For example, if a font is not actually used for any text of the page, then it will be deleted from the ``/Resources/Font`` object.
527527

528528
.. warning:: This is a complex function which may generate large amounts of new data and render old data unused. It is **not recommended** using it together with the **incremental save** option. Also note that the resulting singleton new */Contents* object is **uncompressed**. So you should save to a **new file** using options *"deflate=True, garbage=3"*.
529529

docs/page.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ In a nutshell, this is what you can do with PyMuPDF:
472472

473473
*(New in version 1.16.18)*
474474

475-
PDF only: Write the text of one or more :ref:`TextWriter` ojects to the page.
475+
PDF only: Write the text of one or more :ref:`TextWriter` objects to the page.
476476

477477
:arg rect_like rect: where to place the text. If omitted, the rectangle union of the text writers is used.
478478
:arg sequence writers: a non-empty tuple / list of :ref:`TextWriter` objects or a single :ref:`TextWriter`.

docs/tools.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This class is a collection of utility methods and attributes, mainly around memo
88
====================================== =================================================
99
**Method / Attribute** **Description**
1010
====================================== =================================================
11-
:meth:`Tools.gen_id` generate a unique identifyer
11+
:meth:`Tools.gen_id` generate a unique identifier
1212
:meth:`Tools.image_profile` report basic image properties
1313
:meth:`Tools.store_shrink` shrink the storables cache [#f1]_
1414
:meth:`Tools.mupdf_warnings` return the accumulated MuPDF warnings

0 commit comments

Comments
 (0)