print: add auto-scale api - #1940
Conversation
9da4654 to
8a3b682
Compare
|
ping? @Sodivad @matthiasclasen |
|
Cc: @tillkamppeter |
|
Updated with latest repository structure, still up for review :) |
|
|
||
| The scale in percent. | ||
|
|
||
| * ``auto-scale`` (``s``) |
There was a problem hiding this comment.
Best is to allow here the settings possible for the IPP attribute print-scaling: auto, auto-fit, fill, fit, none. Or what is actually reported back from the printer (can be sub-set).
|
I do not know exactly what is needed to add a parameter to a porta API, but it makes all sense to add this parameter so that the print dialog displays the option on how to scale a document for being printed into the output page frame, and displays the option only if the print job can actually get scaled, cropped, and padded. |
|
Thanks @tillkamppeter. Do you think that scaling should only be done by the printer then? Or should it be done by the app in case the printer does not support it? (I guess the answer is that it should be done by the app if the printer does not support it, but I have no idea whether it happens in practice.) |
I would argue that scaling should be performed by the App, because:
|
Add an auto-scale api so as apps can scale to the printable area. This is commonly used when printing, either for images, or for documents that have different paper size (such as printing slides to A4 paper).
See papers#564 for instance.
Related to https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/merge_requests/256