Unsolved Print from postscript file
-
Hi,
Is it possible to print FROM postscript file with Qt ?
regards,
thanks. -
In Qt4.8 there was
printer.setOutputFormat(QPrinter::PostScriptFormat);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.
There is
http://soft.proindependent.com/eps/But a truely free version , i would look at
https://www.ghostscript.com/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