Print on Linux and Windows in Qt/C++ -
i have pdf files , want print them on paper (i because 'print' refers pass content generated pdf file).
on linux, use system calls cups passing name of file argument, on windows, not possible. began read printing on windows c++, have use proprietary libraries, , don't want use (only last resource).
i read qprinter
, other classes, how can use class or other related print pdf files? thing print pdf files exist?
if aim able print on commandline in linux, can install cygwin lpr , ghostscript , allow print pdf files. windows has built-in lpr can install. isn't cups should allow command-line printing.
if want in c++ (which require recompiling each system), can use qt poppler. can make qt app runs on commandline, uses poppler load specified pdf qwidget, make qprinter print contents of widget. have used invisible widgets before printing know that's doable. i'd make sure i've exhausted other options before getting hands dirty making new tool.
Comments
Post a Comment