Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing DPI Parameter #2051

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion fitz/utils.py
Expand Up @@ -854,6 +854,7 @@ def get_pixmap(page: Page, *args, **kw) -> Pixmap:
def get_page_pixmap(
doc: Document,
pno: int,
dpi: int,
matrix: matrix_like = Identity,
colorspace: Colorspace = csRGB,
clip: rect_like = None,
Expand All @@ -866,14 +867,15 @@ def get_page_pixmap(
Convenience function calling page.get_pixmap.
Args:
pno: (int) page number
dpi: (int) dpi
matrix: Matrix for transformation (default: Identity).
colorspace: (str,Colorspace) rgb, rgb, gray - case ignored, default csRGB.
clip: (irect-like) restrict rendering to this area.
alpha: (bool) include alpha channel
annots: (bool) also render annotations
"""
return doc[pno].get_pixmap(
matrix=matrix, colorspace=colorspace, clip=clip, alpha=alpha, annots=annots
matrix=matrix, colorspace=colorspace, clip=clip, alpha=alpha, annots=annots, dpi=dpi
)


Expand Down