diff options
| author | Balazs Varga <balazs.varga@collabora.com> | 2026-03-25 20:43:50 +0100 |
|---|---|---|
| committer | Balazs Varga <balazs.varga@collabora.com> | 2026-04-07 10:19:27 +0200 |
| commit | d448f923e365ea051bfd2270c6ea928e6acba0bd (patch) | |
| tree | cdc46c7fd7de09c4204e4914d3e7c00c2a542de2 /icon-themes/colibre/cmd/lc_combine.png | |
| parent | 2d20c7f496a663c696dd9aade017e291c2d4acc6 (diff) | |
When a document uses a custom page size (e.g. ID cards, labels),
the print dialog now handles it in three ways depending on printer
capabilities:
1. If the printer has a paper matching the document size by
dimensions, auto-select it (regardless of Paper enum).
2. If no match exists but the driver accepts DMPAPER_USER,
add a "User Defined WxH" entry and send the exact size.
3. If the driver rejects the custom size (e.g. below its
minimum), fall back to the driver's closest paper and
preserve orientation.
Also fixes PixelToLogic reliability issues by using
GetSizeOfPaper() (stable 1/100th mm from job setup) instead
of GetPaperSize() (MapMode-dependent) throughout the print
controller and dialog.
Change-Id: I26b41728603a62677ab1b3dc441fe41e5229824d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202693
Reviewed-by: Balazs Varga <balazs.varga@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'icon-themes/colibre/cmd/lc_combine.png')
0 files changed, 0 insertions, 0 deletions
