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

How to reduce the size of the PDF capture file? #10

Open
Sitien opened this issue Nov 11, 2022 · 1 comment
Open

How to reduce the size of the PDF capture file? #10

Sitien opened this issue Nov 11, 2022 · 1 comment

Comments

@Sitien
Copy link

Sitien commented Nov 11, 2022

The size of the PDF file seems to be based on the resolution of the monitor, which can cause PDF captures to be rather larger (50MB and greater). Is there a way to reduce the size of the files?

The picture quality is about the same but changing the resolution of the monitor seems to greatly impact the file size. I tried to reduce the scale below 1, which didn't work.

Any input is welcome.

capture_pdf(
selector = "#result-block",
filename = "results",
scale = 0.5,
icon("camera"), "Take screenshot of results (smaller scale)"
)

@pvictor
Copy link
Member

pvictor commented Sep 18, 2024

Sorry for later answer, you can now use floating number for scale argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants