|
|
@ -317,7 +317,14 @@ bool Document::print(const TQString &fileName, TQValueList<int> pageList, double
|
|
|
|
|
|
|
|
|
|
|
|
bool Document::print(const TQString &file, TQValueList<int> pageList, double hDPI, double vDPI, int rotate, int paperWidth, int paperHeight)
|
|
|
|
bool Document::print(const TQString &file, TQValueList<int> pageList, double hDPI, double vDPI, int rotate, int paperWidth, int paperHeight)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#if defined(HAVE_POPPLER_020)
|
|
|
|
#if defined(HAVE_POPPLER_030)
|
|
|
|
|
|
|
|
std::vector<int> pages;
|
|
|
|
|
|
|
|
TQValueList<int>::iterator it;
|
|
|
|
|
|
|
|
for (it = pageList.begin(); it != pageList.end(); ++it ) {
|
|
|
|
|
|
|
|
pages.push_back(*it);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
PSOutputDev *psOut = new PSOutputDev(file.latin1(), &(data->doc), NULL, pages, psModePS, paperWidth, paperHeight);
|
|
|
|
|
|
|
|
#elif defined(HAVE_POPPLER_020)
|
|
|
|
PSOutputDev *psOut = new PSOutputDev(file.latin1(), &(data->doc), NULL, 1, data->doc.getNumPages(), psModePS, paperWidth, paperHeight);
|
|
|
|
PSOutputDev *psOut = new PSOutputDev(file.latin1(), &(data->doc), NULL, 1, data->doc.getNumPages(), psModePS, paperWidth, paperHeight);
|
|
|
|
#elif defined(HAVE_POPPLER_016)
|
|
|
|
#elif defined(HAVE_POPPLER_016)
|
|
|
|
PSOutputDev *psOut = new PSOutputDev(file.latin1(), &(data->doc), data->doc.getXRef(), data->doc.getCatalog(), NULL, 1, data->doc.getNumPages(), psModePS, paperWidth, paperHeight);
|
|
|
|
PSOutputDev *psOut = new PSOutputDev(file.latin1(), &(data->doc), data->doc.getXRef(), data->doc.getCatalog(), NULL, 1, data->doc.getNumPages(), psModePS, paperWidth, paperHeight);
|
|
|
|