Scribus
Open source desktop publishing at your fingertips
pdfoptions.h
Go to the documentation of this file.
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 PDFOPTIONS_H
8 #define PDFOPTIONS_H
9 
17 #include "qstring.h"
18 #include "qmap.h"
19 #include "QList"
20 #include "scribusapi.h"
21 #include "scribusstructs.h"
22 
23 struct PDFPresentationData;
24 struct LPIData;
25 class MarginStruct;
26 
37 class SCRIBUS_API PDFOptions
38 {
39 public:
40 
41  enum VerifyResults
42  {
43  Verify_NoError = 0,
44  Verify_OptionConflict,
45  Verify_OptionOutOfRange,
46  Verify_OtherError
47  };
48 
49  enum PDFVersion
50  {
51  PDFVersion_13 = 13,
52  PDFVersion_14 = 14,
53  PDFVersion_15 = 15,
54  PDFVersion_X1a = 11,
55  PDFVersion_X3 = 12,
56  PDFVersion_X4 = 10,
57  PDFVersion_Min = 10,
58  PDFVersion_Max = 15,
59  };
60 
61  enum PDFPageLayout
62  {
63  SinglePage = 0,
64  OneColumn,
65  TwoColumnLeft,
66  TwoColumnRight
67  };
68 
69  enum PDFCompression
70  {
71  Compression_Auto = 0,
72  Compression_JPEG = 1,
73  Compression_ZIP = 2,
74  Compression_None = 3
75  };
76 
77  enum PDFFontEmbedding
78  {
79  EmbedFonts = 0,
80  OutlineFonts = 1,
81  DontEmbed = 2
82  };
83 
104  PDFOptions::VerifyResults verify(QString* problemDescription);
105  PDFOptions::VerifyResults verify();
106 
107  bool firstUse;
108  bool Thumbnails;
109  bool Articles;
110  bool useLayers;
111  bool Compress;
112  PDFCompression CompressMethod;
113  int Quality;
114  bool RecalcPic;
115  bool Bookmarks;
116  int PicRes;
117  bool embedPDF;
118  PDFVersion Version;
119  int Resolution;
120  int Binding;
121  PDFFontEmbedding FontEmbedding;
122  QList<QString> EmbedList;
123  QList<QString> SubsetList;
124  QList<QString> OutlineList;
125  bool MirrorH;
126  bool MirrorV;
127  bool doClip;
128  int RotateDeg;
129  bool PresentMode;
130  QString fileName;
131  bool isGrayscale;
132  bool UseRGB;
133  bool UseProfiles;
134  bool UseProfiles2;
135  bool UseLPI;
136  bool UseSpotColors;
137  bool doMultiFile;
138  bool openAfterExport;
139  QMap<QString,LPIData> LPISettings;
140  QString SolidProf;
141  int SComp;
142  QString ImageProf;
143  bool EmbeddedI;
144  int Intent2;
145  QString PrintProf;
146  QString Info;
147  int Intent;
148  MarginStruct bleeds;
149  bool Encrypt;
150  QString PassOwner;
151  QString PassUser;
152  int Permissions;
153  int PageLayout;
154  bool displayBookmarks;
155  bool displayThumbs;
156  bool displayLayers;
157  bool displayFullscreen;
158  bool hideToolBar;
159  bool hideMenuBar;
160  bool fitWindow;
161  bool cropMarks;
162  bool bleedMarks;
163  bool registrationMarks;
164  bool colorMarks;
165  bool docInfoMarks;
166  bool useDocBleeds;
167  double markLength;
168  double markOffset;
169  QString openAction;
170  int pageRangeSelection;
171  QString pageRangeString;
172 };
173 
174 #endif
Definition: scribusstructs.h:171
Pagemargins and bleeds.
Definition: margins.h:25
PDF Options struture. Capable of verifying its self, but otherwise largely a dumb struct...
Definition: pdfoptions.h:37
Definition: scribusstructs.h:187