| 960 | } |
| 961 | |
| 962 | bool 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 | |
| 979 | bool KDjVu::exportAsPostScript(QFile *file, const QList<int> &pageList) const |
| 980 | { |
no test coverage detected