i think it would be rather easy to implemement.
a "simple" way to implement it:
- in the preferences let the user choose
- between directly printing or one of the supported pdf printers
- to show the scribus dialog or show the pdf viewer's dialog
- the choice can be changed in the preferences (probably not in the document settings)
- add a dialog for configuring the "print as pdf"
- which pages
- scaling
- colors
- ...
anybody in this forum can help out by finding out which are the pdf "printers" (mostly, they will be viewers that support an API (the command line) for printing.
and find out if and how they can be controlled through an API / the command line.
as an example:
- mupdf: you cannot print with it
- envince:
- you cannot directly print from the command line
- there is "--print-settings %s %f" but i could not find out how to use it
- lpr
- with cups-pdf, you can print to file with ‘lpr -P PDF’
- "lpstat -p -d" lists the avalaible printers
- adobe reader:
- i don't have it installed it here
- according to the internet printing from the command line should be supported (
https://forums.adobe.com/thread/1839765)
- but it might be against the EULA you have not signed nor read...