Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Compresses large PDF files by rasterizing pages to optimized JPEG images and rebuilding the PDF.
Use this skill ↓43% 96%+52 ptsof test cases passed
Passed 22 of 23 test cases with the skill, and 10 of 23 without it.
If I want to change the initial PDF page conversion resolution to 200 DPI on source_file.pdf, which command flag should be passed?
Specifies using the --dpi flag with value 200
3 of 3 safety checks passed
Compress PDF files by converting pages to optimized images and rebuilding the PDF.
python scripts/compress.py "{pdf_path}" --width {width} --quality {quality} --output "{output_path}"
| Parameter | Required | Default | Description |
|---|---|---|---|
| pdf_path | Yes | - | Path to PDF file to compress |
| --width | No | 1920 | Page width in pixels |
| --quality | No | 85 | JPEG quality (1-100) |
| --dpi | No | 150 | DPI for PDF to image conversion |
| --output, -o | No | auto | Output path (default: {filename}_compressed.pdf) |
| Use Case | Width | Quality | Expected Reduction |
|---|---|---|---|
| Web/Email | 1280 | 75 | ~95% |
| Standard | 1920 | 85 | ~90% |
| High Quality | 2560 | 90 | ~80% |
| 3840 | 95 | ~60% |
# Basic compression (default settings)
Next to this one in the catalogue, plus more from the same author.