Scribus
Open source desktop publishing at your fingertips
objpdffile.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef OBJPDFFILE_H
8 #define OBJPDFFILE_H
9 
10 // Pulls in <Python.h> first
11 #include "cmdvar.h"
12 
13 extern PyTypeObject PDFfile_Type;
14 
15 // Nest items are not needed but are here for me to exercise
16 // writing complete python objects
17 
18 #define PDFfile_Check(op) ((op)->ob_type == &PDFfile_Type)
19 
20 PyDoc_STRVAR(pdffile__doc__,"Exporting PDF\n\
21 \n\
22 Class PDFfile() provides the PDF exporting\n\
23 for Python scripting as you know it from Save as PDF\n\
24 menu. \n\
25 Example:\n\
26 pdf = PDFfile()\n\
27 pdf.thumbnails = 1 # generate thumbnails too\n\
28 pdf.file = 'mypdf.pdf' \n\
29 pdf.save()");
30 
31 #endif /* OBJPDFFILE_H */