I think you will need to use Poppler.
I think you will need to use Poppler.
No, you don't. Poppler would only be necessary if some sort of preview is required. If you want to send a pdf directly to a printer, you can do so via a normal QPrinter. BUT, and this is the problem, your print system must be able to handle pdf files. Under Linux with CUPS and some distribution magic I can lpr pdf files directly to the printer and probably ghostscript is implicitly used to automatically convert the pdf file into something my printer understands. If and how this works under other systems....no idea.
opra (28th August 2009)
Thats right, i should be able to paint data and than print with QPrinter (Poppler-way).
But, there must be another solution.
for example:
QProcess pro;
QStringList arg;
arg<<file.fileName();
pro.execute("explorer", arg).
Works fine, with explorer can i view the pdf file. Logically, there must be a programm wich i can call //Win or Linux.
But wich one?
Hi i was having the same problem if you using windows and have adobe reader use this.
QProcess process;
process.start(" \"C:/Program Files (x86)/Adobe/Reader 10.0/Reader/AcroRd32.exe\" /t C:/path/to/your.pdf \"The name of the printer\"");
Bookmarks