summaryrefslogtreecommitdiffstats
path: root/scribus/plugins/scriptplugin/objpdffile.h
diff options
context:
space:
mode:
Diffstat (limited to 'scribus/plugins/scriptplugin/objpdffile.h')
-rw-r--r--scribus/plugins/scriptplugin/objpdffile.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/scribus/plugins/scriptplugin/objpdffile.h b/scribus/plugins/scriptplugin/objpdffile.h
new file mode 100644
index 0000000..d840798
--- /dev/null
+++ b/scribus/plugins/scriptplugin/objpdffile.h
@@ -0,0 +1,31 @@
+/*
+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 OBJPDFFILE_H
+#define OBJPDFFILE_H
+
+// Pulls in <Python.h> first
+#include "cmdvar.h"
+
+extern PyTypeObject PDFfile_Type;
+
+// Nest items are not needed but are here for me to exercise
+// writing complete python objects
+
+#define PDFfile_Check(op) ((op)->ob_type == &PDFfile_Type)
+
+PyDoc_STRVAR(pdffile__doc__,"Exporting PDF\n\
+\n\
+Class PDFfile() provides the PDF exporting\n\
+for Python scripting as you know it from Save as PDF\n\
+menu. \n\
+Example:\n\
+pdf = PDFfile()\n\
+pdf.thumbnails = 1 # generate thumbnails too\n\
+pdf.file = 'mypdf.pdf' \n\
+pdf.save()");
+
+#endif /* OBJPDFFILE_H */