Back to index

scribus-ng  1.3.4.dfsg+svn20071115
objpdffile.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef OBJPDFFILE_H
00008 #define OBJPDFFILE_H
00009 
00010 // Pulls in <Python.h> first
00011 #include "cmdvar.h"
00012 
00013 extern PyTypeObject PDFfile_Type;
00014 
00015 // Nest items are not needed but are here for me to exercise
00016 // writing complete python objects
00017 
00018 #define PDFfile_Check(op) ((op)->ob_type == &PDFfile_Type)
00019 
00020 PyDoc_STRVAR(pdffile__doc__,"Exporting PDF\n\
00021 \n\
00022 Class PDFfile() provides the PDF exporting\n\
00023 for Python scripting as you know it from Save as PDF\n\
00024 menu. \n\
00025 Example:\n\
00026 pdf = PDFfile()\n\
00027 pdf.thumbnails = 1 # generate thumbnails too\n\
00028 pdf.file = 'mypdf.pdf' \n\
00029 pdf.save()");
00030 
00031 #endif /* OBJPDFFILE_H */