Skip to content

The web content printed on paper is too small #45080

@giangtran99

Description

Preflight Checklist

Problem Description

Problem : The web content printed on physical paper is too small
This issue ( ref to #39179 ) is closed but it seems wasn't resolved and many develpers complain about it so i want to reopen this issue

Proposed Solution

As my investigation , chromium changes in https://chromium-review.googlesource.com/c/chromium/src/+/5349263?tab=comments indicate that kCenterShrinkToFitPaper doesn't scale up when web content is small relative to paper size .
@codebytere Please review this changes and consider set kFitToPrintableArea for default option when silent mode is enable.

Alternatives Considered

Other solution is add "printScaleOption" to electron webContent.print() settings and pass it to settings.print_scaling_option's printer module in chromium

Additional Information

No response

Metadata

Assignees

Type

Projects

  • Status

    👀 Unsorted Items
  • Status

    👀 Unsorted Items

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions