Print from postscript file
Is it possible to print FROM postscript file with Qt ?
In Qt4.8 there was
QPrinter printer(QPrinter::HighResolution); printer.setOutputFormat(QPrinter::PostScriptFormat); printer.setOutputFileName(m_currentTopic+".ps"); qreal xmargin = contentRect.width()*0.01; qreal ymargin = contentRect.height()*0.01; printer.setPaperSize(10*contentRect.size()*1.02,QPrinter::DevicePixel); printer.setPageMargins(xmargin,ymargin,xmargin,ymargin,QPrinter::DevicePixel); QPainter painter; painter.begin(&printer); render(&painter,QRectF(QPointF(0,0),10*contentRect.size()),contentRect); painter.end();
But it have since been removed it seems. Also this was for creation only, i think.
But a truely free version , i would look at
Also im not sure with you use case.
If you have PS files AND a PS printer (with ps driver) you can actually send it directly to it
as file/text stream and it will print it.
copy filename \machinename\printersharename