Skip to content

Commit

Permalink
fix bad whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Jan 13, 2025
1 parent f28acdd commit 79e289d
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/pypdfium2/_helpers/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 79e289d

Please sign in to comment.