Skip to content

[Feature]: PDF size optimization / compression for large XLSX conversions #81

Description

@NaveenChandraAdhikari

Problem or use case

Large .xlsx files (~100 MB) convert successfully with MiniPdf, but the PDF output is ~1.1 GB (~174k pages), which is too large to download/preview. We need better output size control for large Excel → PDF conversions in a background worker pipeline.

Proposed solution

• Built-in PDF stream compression / optimization after conversion
• Layout options: fit-to-page, landscape, scale-to-fit, more rows per page
• CLI flags: --compress, max rows/columns, preview mode (first N rows)
• Optional post-processing hook (qpdf / similar)

Affected area

XLSX to PDF

MiniPdf version or baseline

0.34.1

Example usage

minipdf convert test_100mb.xlsx -o test_100mb.pdf

• Input: ~100 MB .xlsx, ~27,000 rows
• Output: ~1.1 GB PDF, ~174,000 pages
• Time: ~60 seconds

Sample files or references

No response

Alternatives considered

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions