Skip to content

Commit

Permalink
Reduce some RST indents from 4 to 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Mar 2, 2024
1 parent cd770e6 commit 02cd006
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pypdfium2/_helpers/bitmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def from_pil(cls, pil_image, recopy=False):
PdfBitmap: PDFium bitmap (with a copy of the PIL image's data).
.. deprecated:: 4.25
The *recopy* parameter has been deprecated.
The *recopy* parameter has been deprecated.
"""

if pil_image.mode in pdfium_i.BitmapStrToConst:
Expand Down
6 changes: 3 additions & 3 deletions src/pypdfium2/_helpers/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,11 +577,11 @@ def render(
):
"""
.. deprecated:: 4.19
This method will be removed with the next major release due to serious issues rooted in the original API design. Use :meth:`.PdfPage.render()` instead.
*Note that the CLI provides parallel rendering using a proper caller-side process pool with inline saving in rendering jobs.*
This method will be removed with the next major release due to serious issues rooted in the original API design. Use :meth:`.PdfPage.render()` instead.
*Note that the CLI provides parallel rendering using a proper caller-side process pool with inline saving in rendering jobs.*
.. versionchanged:: 4.25
Removed the original process pool implementation and turned this into a wrapper for linear rendering, due to the serious conceptual issues and possible memory load escalation, especially with expensive receiving code (e.g. PNG encoding) or long documents. See the changelog for more info
Removed the original process pool implementation and turned this into a wrapper for linear rendering, due to the serious conceptual issues and possible memory load escalation, especially with expensive receiving code (e.g. PNG encoding) or long documents. See the changelog for more info
"""

warnings.warn("The document-level pdf.render() API is deprecated and uncored due to serious issues in the original concept. Use page.render() and a caller-side loop or process pool instead.", category=DeprecationWarning)
Expand Down

0 comments on commit 02cd006

Please sign in to comment.