From 79e289d5ab46fd85f93a0178800896e0cd13c9e8 Mon Sep 17 00:00:00 2001 From: geisserml Date: Mon, 13 Jan 2025 22:01:26 +0100 Subject: [PATCH] fix bad whitespace --- src/pypdfium2/_helpers/page.py | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/pypdfium2/_helpers/page.py b/src/pypdfium2/_helpers/page.py index e0797d286..84c4d4816 100644 --- a/src/pypdfium2/_helpers/page.py +++ b/src/pypdfium2/_helpers/page.py @@ -357,60 +357,60 @@ def render( scale (float): A factor scaling the number of pixels per PDF canvas unit. This defines the resolution of the image. To convert a DPI value to a scale factor, multiply it by the size of 1 canvas unit in inches (usually 1/72in). [#user_unit]_ - + rotation (int): Additional rotation in degrees (0, 90, 180, or 270). - + crop (tuple[float, float, float, float]): Amount in PDF canvas units to cut off from page borders (left, bottom, right, top). Crop is applied after rotation. - + may_draw_forms (bool): If True, render form fields (provided the document has forms and :meth:`~.PdfDocument.init_forms` was called). bitmap_maker (typing.Callable): Callback function used to create the :class:`.PdfBitmap`. - + fill_to_stroke (bool): If True and rendering with custom color scheme, fill paths will be stroked. - + fill_color (tuple[int, int, int, int]): Color the bitmap will be filled with before rendering (RGBA values from 0 to 255). - + grayscale (bool): If True, render in grayscale mode. - + optimize_mode (None | str): Page rendering optimization mode (None, "lcd", "print"). - + draw_annots (bool): If True, render page annotations. - + no_smoothtext (bool): If True, disable text anti-aliasing. Overrides ``optimize_mode="lcd"``. - + no_smoothimage (bool): If True, disable image anti-aliasing. - + no_smoothpath (bool): If True, disable path anti-aliasing. - + force_halftone (bool): If True, always use halftone for image stretching. - + limit_image_cache (bool): If True, limit image cache size. - + rev_byteorder (bool): If True, render with reverse byte order, leading to ``RGB(A/X)`` output instead of ``BGR(A/X)``. Other pixel formats are not affected. - + prefer_bgrx (bool): If True, prefer four-channel over three-channel pixel formats, even if the alpha byte is unused. Other pixel formats are not affected. - + force_bitmap_format (int | None): If given, override automatic pixel format selection and enforce use of the given format (one of the :attr:`FPDFBitmap_*` constants). - + extra_flags (int): Additional PDFium rendering flags. May be combined with bitwise OR (``|`` operator).