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 decrease pdfscale execution time? #41

Closed
leandrocombr opened this issue Mar 29, 2023 · 1 comment
Closed

How to decrease pdfscale execution time? #41

leandrocombr opened this issue Mar 29, 2023 · 1 comment

Comments

@leandrocombr
Copy link

Hello,

How do I decrease the execution time of pdfscale

command: pdfscale -r A4 --vert-align center --hor-align center -s 0.92 --image-downsample Bicubic --image-resolution 144 --pdf-settings screen int.pdf out.pdf

Runtime: 0m58708s

Centos7
memory: 252gb
Processor: Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz

GPL Ghostscript 9.25
pdfscale v2.5.8

@tavinus
Copy link
Owner

tavinus commented Apr 7, 2023

You could export the command with the dry-run option and run ghostscript directly to see if it makes any difference. But the only thing we do prior to that is find out the paper sizes (which has several modes that you can try as well). If there is little to no difference in time, I suppose we can't do anything. It is just the time GS takes to convert it. Also, since you are resizing and scaling, there are 2 GS calls you will have to make (with an intermediate file).

Edit: How big was the file?

@tavinus tavinus closed this as completed Jul 16, 2024
This issue was closed.
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