MCPcopy Create free account
hub / github.com/KDE/okular / exportAsPostScript

Method exportAsPostScript

generators/djvu/kdjvu.cpp:962–977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

960}
961
962bool KDjVu::exportAsPostScript(const QString &fileName, const QList<int> &pageList) const
963{
964 if (!d->m_djvu_document || fileName.trimmed().isEmpty() || pageList.isEmpty()) {
965 return false;
966 }
967
968 QFile f(fileName);
969 if (!f.open(QIODevice::ReadWrite)) {
970 return false;
971 }
972 bool ret = exportAsPostScript(&f, pageList);
973 if (ret) {
974 f.close();
975 }
976 return ret;
977}
978
979bool KDjVu::exportAsPostScript(QFile *file, const QList<int> &pageList) const
980{

Callers 1

printMethod · 0.80

Calls 4

handle_ddjvu_messagesFunction · 0.85
isEmptyMethod · 0.80
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected