![]() |
wxPdfDocument
1.4.0
Library for generating PDF documents from wxWidgets applications
|
Class for holding print configuration data. More...
#include <pdfprint.h>
Public Member Functions | |
| wxPdfPrintData () | |
| Default constructor. | |
| wxPdfPrintData (wxPdfPrintData *pdfPrintData) | |
| Copy constructor. | |
| wxPdfPrintData (wxPrintData *printData) | |
| Constructor from wxPrintData. | |
| wxPdfPrintData (wxPrintDialogData *printDialogData) | |
| Constructor from wxPrintDialogData. | |
| wxPdfPrintData (wxPageSetupDialogData *pageSetupDialogData) | |
| Constructor from wxPageSetupDialogData. | |
| bool | Ok () const |
| Check whether the print data is valid. | |
| bool | IsOk () const |
| Check whether the print data is valid. | |
| wxPrintOrientation | GetOrientation () const |
| Get page orientation. | |
| void | SetOrientation (wxPrintOrientation orient) |
| Set page orientation. | |
| wxPaperSize | GetPaperId () const |
| Get paper size ID. | |
| void | SetPaperId (wxPaperSize sizeId) |
| Set paper size ID. | |
| wxPrintQuality | GetQuality () const |
| Get print quality. | |
| void | SetQuality (wxPrintQuality quality) |
| Set print quality. | |
| wxString | GetFilename () const |
| Get output filename. | |
| void | SetFilename (const wxString &filename) |
| Set output filename. | |
| int | GetFromPage () const |
| Get first page to print. | |
| int | GetToPage () const |
| Get last page to print. | |
| int | GetMinPage () const |
| Get minimum page number. | |
| int | GetMaxPage () const |
| Get maximum page number. | |
| void | SetFromPage (int v) |
| Set first page to print. | |
| void | SetToPage (int v) |
| Set last page to print. | |
| void | SetMinPage (int v) |
| Set minimum page number. | |
| void | SetMaxPage (int v) |
| Set maximum page number. | |
| int | GetPrintDialogFlags () const |
| Get print dialog flags. | |
| void | SetPrintDialogFlags (int flags) |
| Set print dialog flags. | |
| void | SetTemplate (wxPdfDocument *pdfDocument, double templateWidth, double templateHeight) |
| Set template document. | |
| wxPdfDocument * | GetTemplateDocument () const |
| Get template document. | |
| double | GetTemplateWidth () const |
| Get template width. | |
| double | GetTemplateHeight () const |
| Get template height. | |
| bool | GetTemplateMode () const |
| Get template mode. | |
| int | GetPrintResolution () const |
| Get print resolution. | |
| void | SetPrintResolution (int resolution) |
| Set print resolution. | |
| bool | GetLaunchDocumentViewer () const |
| Get document viewer launch flag. | |
| void | SetLaunchDocumentViewer (bool enable) |
| Set document viewer launch flag. | |
| const wxString & | GetDocumentTitle () const |
| Get document title. | |
| const wxString & | GetDocumentSubject () const |
| Get document subject. | |
| const wxString & | GetDocumentAuthor () const |
| Get document author. | |
| const wxString & | GetDocumentKeywords () const |
| Get document keywords. | |
| const wxString & | GetDocumentCreator () const |
| Get document creator. | |
| void | SetDocumentTitle (const wxString &title) |
| Set document title. | |
| void | SetDocumentSubject (const wxString &subject) |
| Set document subject. | |
| void | SetDocumentAuthor (const wxString &author) |
| Set document author. | |
| void | SetDocumentKeywords (const wxString &keywords) |
| Set document keywords. | |
| void | SetDocumentCreator (const wxString &creator) |
| Set document creator. | |
| bool | IsProtectionEnabled () const |
| Check whether document protection is enabled. | |
| void | SetDocumentProtection (int permissions, const wxString &userPassword=wxEmptyString, const wxString &ownerPassword=wxEmptyString, wxPdfEncryptionMethod encryptionMethod=wxPDF_ENCRYPTION_AESV3R6, int keyLength=0) |
| Set document protection. | |
| const wxString & | GetUserPassword () const |
| Get user password. | |
| const wxString & | GetOwnerPassword () const |
| Get owner password. | |
| int | GetPermissions () const |
| Get permissions. | |
| wxPdfEncryptionMethod | GetEncryptionMethod () const |
| Get encryption method. | |
| int | GetKeyLength () const |
| Get key length. | |
| void | ClearDocumentProtection () |
| Clear document protection settings. | |
| void | UpdateDocument (wxPdfDocument *pdfDoc) |
| Update document metadata and protection settings. | |
| wxPrintData * | CreatePrintData () const |
| Create wxPrintData from this instance. | |
Class for holding print configuration data.
| wxPdfPrintData::wxPdfPrintData | ( | ) |
Default constructor.
| wxPdfPrintData::wxPdfPrintData | ( | wxPdfPrintData * | pdfPrintData | ) |
Copy constructor.
| pdfPrintData | The data to copy from |
| wxPdfPrintData::wxPdfPrintData | ( | wxPrintData * | printData | ) |
Constructor from wxPrintData.
| printData | The print data to initialize from |
| wxPdfPrintData::wxPdfPrintData | ( | wxPrintDialogData * | printDialogData | ) |
Constructor from wxPrintDialogData.
| printDialogData | The print dialog data to initialize from |
| wxPdfPrintData::wxPdfPrintData | ( | wxPageSetupDialogData * | pageSetupDialogData | ) |
Constructor from wxPageSetupDialogData.
| pageSetupDialogData | The page setup dialog data to initialize from |
| void wxPdfPrintData::ClearDocumentProtection | ( | ) |
Clear document protection settings.
| wxPrintData * wxPdfPrintData::CreatePrintData | ( | ) | const |
Create wxPrintData from this instance.
|
inline |
Get document author.
|
inline |
Get document creator.
|
inline |
Get document keywords.
|
inline |
Get document subject.
|
inline |
Get document title.
|
inline |
Get encryption method.
|
inline |
Get output filename.
|
inline |
Get first page to print.
|
inline |
Get key length.
|
inline |
Get document viewer launch flag.
true if document viewer should be launched, false otherwise
|
inline |
Get maximum page number.
|
inline |
Get minimum page number.
|
inline |
Get page orientation.
|
inline |
Get owner password.
|
inline |
Get paper size ID.
|
inline |
Get permissions.
|
inline |
Get print dialog flags.
| int wxPdfPrintData::GetPrintResolution | ( | ) | const |
Get print resolution.
|
inline |
Get print quality.
|
inline |
Get template document.
|
inline |
Get template height.
|
inline |
Get template mode.
true if in template mode, false otherwise
|
inline |
Get template width.
|
inline |
Get last page to print.
|
inline |
Get user password.
|
inline |
Check whether the print data is valid.
true if valid, false otherwise
|
inline |
Check whether document protection is enabled.
true if protection is enabled, false otherwise
|
inline |
Check whether the print data is valid.
true if valid, false otherwise
|
inline |
Set document author.
| author | The document author |
|
inline |
Set document creator.
| creator | The document creator |
|
inline |
Set document keywords.
| keywords | The document keywords |
| void wxPdfPrintData::SetDocumentProtection | ( | int | permissions, |
| const wxString & | userPassword = wxEmptyString, | ||
| const wxString & | ownerPassword = wxEmptyString, | ||
| wxPdfEncryptionMethod | encryptionMethod = wxPDF_ENCRYPTION_AESV3R6, | ||
| int | keyLength = 0 ) |
Set document protection.
| permissions | The permissions bitmask |
| userPassword | The user password |
| ownerPassword | The owner password |
| encryptionMethod | The encryption method |
| keyLength | The encryption key length |
|
inline |
Set document subject.
| subject | The document subject |
|
inline |
Set document title.
| title | The document title |
|
inline |
Set output filename.
| filename | The output filename |
|
inline |
Set first page to print.
| v | The first page number |
|
inline |
Set document viewer launch flag.
| enable | true if document viewer should be launched, false otherwise |
|
inline |
Set maximum page number.
| v | The maximum page number |
|
inline |
Set minimum page number.
| v | The minimum page number |
|
inline |
Set page orientation.
| orient | The print orientation |
|
inline |
Set paper size ID.
| sizeId | The paper size ID |
|
inline |
Set print dialog flags.
| flags | The print dialog flags |
|
inline |
Set print resolution.
| resolution | The print resolution in DPI |
|
inline |
Set print quality.
| quality | The print quality |
| void wxPdfPrintData::SetTemplate | ( | wxPdfDocument * | pdfDocument, |
| double | templateWidth, | ||
| double | templateHeight ) |
Set template document.
| pdfDocument | The template document |
| templateWidth | The template width |
| templateHeight | The template height |
|
inline |
Set last page to print.
| v | The last page number |
| void wxPdfPrintData::UpdateDocument | ( | wxPdfDocument * | pdfDoc | ) |
Update document metadata and protection settings.
| pdfDoc | The document to update |