/usr/include/scribus/pdflib.h is in scribus-dev 1.4.6+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | /*
For general Scribus (>=1.3.2) copyright and licensing information please refer
to the COPYING file provided with the program. Following this notice may exist
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
#ifndef PDFLIB_H
#define PDFLIB_H
#include "scconfig.h"
#include "scribusapi.h"
#include <QObject>
#include <QMap>
#include <QPixmap>
#include <vector>
class ScribusDoc;
/**
* PDFLib provides an interface to the core PDF export functionality of scribus.
* This class does not directly implement export; it's purpose is to isolate
* implementation details from the rest of the codebase.
*
* The real implementation is in pdflib_core.cpp .
*/
class SCRIBUS_API PDFlib : public QObject
{
Q_OBJECT
public:
/**
* Instantiate a new PDFLib that will operate on `docu'.
*
* \warning current PDFLib implementations may not function correctly if re-used for
* multiple exports. Create a new object for each job.
*
* \param docu Document to use in export process
*/
explicit PDFlib(ScribusDoc & docu);
~PDFlib();
/**
* Perform an export.
*
* \param fn Output file name
* \param nam ??
* \param Components ??
* \param pageNs List of pages from document to be exported as sequential PDF pages
* \param thumbs A mapping of input (document) page numbers to pre-rendered thumbnails.
*/
bool doExport(const QString& fn, const QString& nam, int Components,
const std::vector<int> & pageNs, const QMap<int,QPixmap> & thumbs);
/**
* Return an error message in case export has failed.
*/
const QString& errorMessage(void);
/**
* Return if export has been aborted
*/
bool exportAborted(void);
private:
/// A pointer to the real implementation of pdflib .
void* impl;
};
#endif
|