Skip to content

Commit

Permalink
misc improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Jan 20, 2024
1 parent 0324787 commit a584927
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,8 @@ Nonetheless, the following guide may be helpful to get started with the raw API,
height = math.ceil(pdfium_c.FPDF_GetPageHeightF(page))
# Create a bitmap
use_alpha = False # We don't render with transparent background
# (Note, pdfium is faster at rendering transparency if we use BGRA rather than BGRx)
use_alpha = pdfium_c.FPDFPage_HasTransparency(page)
bitmap = pdfium_c.FPDFBitmap_Create(width, height, int(use_alpha))
# Fill the whole bitmap with a white background
# The color is given as a 32-bit integer in ARGB format (8 bits per channel)
Expand Down
3 changes: 1 addition & 2 deletions setupsrc/pypdfium2_setup/packaging_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,8 @@ def run_ctypesgen(target_dir, headers_dir, flags=[], guard_symbols=False, compil
assert getattr(ctypesgen, "PYPDFIUM2_SPECIFIC", False), "pypdfium2 requires fork of ctypesgen"
import ctypesgen.__main__

args = ["-l", "pdfium"]

# library loading
args = ["-l", "pdfium"]
if run_lds:
args += ["--runtime-libdirs", *run_lds]
if not allow_system_despite_libdirs:
Expand Down

0 comments on commit a584927

Please sign in to comment.