![]() |
wxPdfDocument 1.3.1
|
Class representing Zint barcode objects. More...
#include <pdfbarcodezint.h>
Public Member Functions | |
| wxPdfBarcodeZint () | |
| Constructor. | |
| ~wxPdfBarcodeZint () | |
| Destructor. | |
| wxPdfBarcode::Symbology | GetSymbology () const |
| Get symbology in use. | |
| void | SetSymbology (wxPdfBarcode::Symbology symbol) |
| Set symbology to use. | |
| int | GetInputMode () const |
| Get the input data encoding. Default UNICODE_MODE. | |
| void | SetInputMode (int inputMode) |
| Set the input data encoding. Default UNICODE_MODE. | |
| wxString | GetText () const |
| Get the input data. | |
| void | SetText (const wxString &text) |
| Set the input data. | |
| std::vector< wxPdfZintSeg > | GetSegments () const |
| Get the segments. | |
| void | SetSegments (const std::vector< wxPdfZintSeg > &segs) |
| Set the segments. | |
| wxString | GetPrimaryMessage () const |
| Get the primary message (Maxicode, Composite) | |
| void | SetPrimaryMessage (const wxString &primaryMessage) |
| Set the primary message (Maxicode, Composite) | |
| double | GetHeight () const |
| Get the symbol height in X-dimensions. | |
| void | SetHeight (double height) |
| Set the symbol height in X-dimensions. | |
| int | GetOption1 () const |
| Get symbol-specific option 1. | |
| void | SetOption1 (int option) |
| Set symbol-specific option 1. | |
| int | GetOption2 () const |
| Get symbol-specific option 2. | |
| void | SetOption2 (int option) |
| Set symbol-specific option 2. | |
| int | GetOption3 () const |
| Get symbol-specific option 3. | |
| void | SetOption3 (int option) |
| Set symbol-specific option 3. | |
| double | GetScale () const |
| Get scale factor when printing barcode, i.e. adjusts X-dimension. | |
| void | SetScale (double scale) |
| Set scale factor when printing barcode, i.e. adjusts X-dimension. | |
| double | GetDpmm () const |
| Get the resolution of output in dots per mm (BMP/EMF/PCX/PNG/TIF only) | |
| void | SetDpmm (double dpmm) |
| Set the resolution of output in dots per mm (BMP/EMF/PCX/PNG/TIF only) | |
| bool | GetDotty () const |
| Get dotty mode. | |
| void | SetDotty (bool dotty) |
| Set dotty mode. | |
| double | GetDotSize () const |
| Get size of dots used in dotty mode. | |
| void | SetDotSize (double dotSize) |
| Set size of dots used in dotty mode. | |
| double | GetGuardDescent () const |
| Get the height in X-dimensions that EAN/UPC guard bars descend. | |
| void | SetGuardDescent (double guardDescent) |
| Set the height in X-dimensions that EAN/UPC guard bars descend. | |
| int | GetStructAppCount () const |
| int | GetStructAppIndex () const |
| wxString | GetStructAppID () const |
| void | SetStructApp (const int count, const int index, const wxString &id) |
| void | ClearStructApp () |
| wxString | GetFgColourStr () const |
| Get the foreground colour (may be RGB(A) hex string or CMYK decimal "C,M,Y,K" percentage string) | |
| bool | SetFgColourStr (const wxString &fgStr) |
| Set the foreground colour (may be RGB(A) hex string or CMYK decimal "C,M,Y,K" percentage string) | |
| wxColour | GetFgColour () const |
| Get the foreground colour as wxColour. | |
| void | SetFgColour (const wxColour &fgColor) |
| Set the foreground colour as wxColour. | |
| wxString | GetBgColourStr () const |
| Get the background colour (may be RGB(A) hex string or CMYK decimal "C,M,Y,K" percentage string) | |
| bool | SetBgColourStr (const wxString &bgStr) |
| Set the background colour (may be RGB(A) hex string or CMYK decimal "C,M,Y,K" percentage string) | |
| wxColour | GetBgColour () const |
| Get the background colour as wxColour. | |
| void | SetBgColour (const wxColour &bgColor) |
| Set the background colour as wxColour. | |
| bool | GetCMYK () const |
| Get flag whether CMYK colour space is used (Encapsulated PostScript and TIF) | |
| void | SetCMYK (bool cmyk) |
| Enable or disable the use of CMYK colour space (Encapsulated PostScript and TIF) | |
| int | GetBorderType () const |
| Get the type of border above/below/around barcode. | |
| void | SetBorderType (int borderTypeIndex) |
| Set the type of border above/below/around barcode. | |
| int | GetBorderWidth () const |
| Get the border width in X-dimensions. | |
| void | SetBorderWidth (int borderWidth) |
| Set the border width in X-dimensions. | |
| int | GetWhitespace () const |
| Get the width in X-dimensions of whitespace to left & right of barcode. | |
| void | SetWhitespace (int whitespace) |
| Set the width in X-dimensions of whitespace to left & right of barcode. | |
| int | GetVerticalWhitespace () const |
| Get the height in X-dimensions of whitespace above & below the barcode. | |
| void | SetVerticalWhitespace (int vWhitespace) |
| Get the height in X-dimensions of whitespace above & below the barcode. | |
| int | GetFontSetting () const |
| Type of font to use i.e. normal, small, bold or (vector only) small bold. | |
| void | SetFontSetting (int fontSetting) |
| Set the type of font to use i.e. normal, small, bold or (vector only) small bold. | |
| double | GetTextGap () const |
| Get the text gap. | |
| void | SetTextGap (double textGap) |
| Set the text gap. | |
| bool | ShowText () const |
| Show (true) or hide (false) Human Readable Text. | |
| void | SetShowText (bool showText) |
| Enable (true) or disable (false) Human Readable Text. | |
| bool | HasSeparatorGS () const |
| Check whether GS (Group Separator) is used instead of FNC1 as GS1 separator (Data Matrix) | |
| void | SetSeparatorGS (bool gsSep) |
| Use GS (Group Separator) instead of FNC1 as GS1 separator (Data Matrix) | |
| bool | HasQuietZones () const |
| Add compliant quiet zones (additional to any specified whitespace) | |
| void | SetQuietZones (bool quietZones) |
| Enable or disable compliant quiet zones (additional to any specified whitespace) | |
| bool | HasNoQuietZones () const |
| Disable quiet zones, notably those with defaults. | |
| void | SetNoQuietZones (bool noQuietZones) |
| Enable or disable quiet zones, notably those with defaults. | |
| bool | GetCompliantHeight () const |
| Get compliant height flag. | |
| void | SetCompliantHeight (bool compliantHeight) |
| Set compliant height. | |
| int | GetRotateAngle () const |
| Rotate barcode by angle (degrees 0, 90, 180 and 270) | |
| void | SetRotateAngle (int rotateAngle) |
| Rotate barcode by angle (degrees 0, 90, 180 and 270) | |
| int | GetECI () const |
| Get Extended Channel Interpretation (segment 0 eci) | |
| void | SetECIFromIndex (int ECIIndex) |
| Set Extended Channel Interpretation (segment 0 eci) | |
| void | SetECI (int eci) |
| Set Extended Channel Interpretation (segment 0 eci) | |
| bool | HasGS1ParensMode () const |
| Get flag whether parentheses are processed as GS1 AI delimiters (instead of square brackets) | |
| void | SetGS1ParensMode (bool gs1Parens) |
| Set flag whether parentheses are processed as GS1 AI delimiters (instead of square brackets) | |
| bool | GetGS1NoCheckMode () const |
| Get flag whether validity of GS1 data is not checked (except that printable ASCII only) | |
| void | SetGS1NoCheckMode (bool gs1NoCheck) |
| Set flag whether validity of GS1 data is not checked (except that printable ASCII only) | |
| bool | HasReaderInit () const |
| Check whether Reader Initialisation (Programming) is used. | |
| void | SetReaderInit (bool readerInit) |
| Set Reader Initialisation (Programming) | |
| bool | HasGuardWhitespace () const |
| Check whether quiet zone indicators will be added. | |
| void | SetGuardWhitespace (bool guardWhitespace) |
| Set flag whether to add quiet zone indicators ("<", ">") to HRT (EAN/UPC) | |
| bool | HasEmbedVectorFont () const |
| Check whether the font will be embedded in vector output - currently only for SVG output of EAN/UPC. | |
| void | SetEmbedVectorFont (bool embedVectorFont) |
| Set flag whether to embed the font in vector output - currently only for SVG output of EAN/UPC. | |
| int | GetWarnLevel () const |
| Get the warning level. | |
| void | SetWarnLevel (int warnLevel) |
| Set the warning level. | |
| bool | HasDebugFlag () const |
| Check the debugging flag. | |
| void | SetDebugFlag (bool debug) |
| Debugging flags. | |
| int | GetEncodedWidth () const |
| Get the encoded width after successful rendering. | |
| int | GetEncodedRows () const |
| Get the number of encoded rows after successful rendering. | |
| double | GetEncodedHeight () const |
| Get the encoded height after successful rendering. | |
| double | GetVectorWidth () const |
| Get the vector width after successful rendering. | |
| double | GetVectorHeight () const |
| Get the vector height after successful rendering. | |
| void | SetWidth (int width) |
| Set barcode width (option 1) | |
| int | GetWidth () const |
| Get barcode width (option 1) | |
| void | SetSecurityLevel (int securityLevel) |
| Set the security level (option 2) | |
| int | GetSecurityLevel () const |
| Get the security level (option 2) | |
| int | GetError () const |
Get the error or warning code returned by Zint on render() or save_to_file() | |
| const wxString & | GetLastError () const |
Get the error message returned by Zint on render() or save_to_file() | |
| bool | HasErrors () const |
| Check whether errors occurred. | |
| bool | SaveToFile (const wxString &filename) |
| Encode and print barcode to file. | |
| void | Render (wxPdfDocument &pdfDoc, double x, double y) |
| Encode and render barcode to a PDF document. | |
| double | GetDefaultXdim () const |
| Get the default X-dimension of current barcode symbology. | |
Static Public Member Functions | |
| static bool | HasHRT (wxPdfBarcode::Symbology symbology) |
| Check whether the symbology has human readable text. | |
| static bool | IsStackable (wxPdfBarcode::Symbology symbology) |
| Check whether symbology is stackable. | |
| static bool | IsExtendable (wxPdfBarcode::Symbology symbology) |
| Check whether symbology is extendable. | |
| static bool | IsComposite (wxPdfBarcode::Symbology symbology) |
| Check whether symbology is composite. | |
| static bool | SupportsECI (wxPdfBarcode::Symbology symbology) |
| Check whether symbology supports ECI. | |
| static bool | SupportsGS1 (wxPdfBarcode::Symbology symbology) |
| Check whether symbology supports GS1. | |
| static bool | IsDotty (wxPdfBarcode::Symbology symbology) |
| Check whether symbology is dotty. | |
| static bool | HasDefaultQuietZones (wxPdfBarcode::Symbology symbology) |
| Check whether symbology has default quiet zones. | |
| static bool | HasFixedRatio (wxPdfBarcode::Symbology symbology) |
| Check whether symbology has a fixed ratio. | |
| static bool | SupportsReaderInit (wxPdfBarcode::Symbology symbology) |
| Check whether symbology supports reader init. | |
| static bool | SupportsFullMultibyte (wxPdfBarcode::Symbology symbology) |
| Check whether symbology supports full multibyte. | |
| static bool | HasMask (wxPdfBarcode::Symbology symbology) |
| Check whether symbology has a mask. | |
| static bool | SupportsStructApp (wxPdfBarcode::Symbology symbology) |
| Check whether symbology supports structured apps. | |
| static bool | HasCompliantHeight (wxPdfBarcode::Symbology symbology) |
| Check whether symbology has a compliant height. | |
| static bool | TakesGS1AIData (wxPdfBarcode::Symbology symbology) |
| Check whether symbology takes GS1 AI-delimited data. | |
| static double | GetDefaultXdim (wxPdfBarcode::Symbology symbology) |
| Get the default X-dimension. | |
| static wxString | GetBarcodeName (const wxPdfBarcode::Symbology symbology) |
| Return the name of a symbology. | |
| static bool | NoPNG () |
| Check whether PNG support is available. | |
| static bool | IsValidSymbology (int symbolId) |
| Check validity of symbology. | |
| static int | GetVersion () |
| Version of Zint library "libzint" linked to. | |
Class representing Zint barcode objects.
All supported barcodes are drawn directly in PDF.
| wxPdfBarcodeZint::wxPdfBarcodeZint | ( | ) |
Constructor.
| wxPdfBarcodeZint::~wxPdfBarcodeZint | ( | ) |
Destructor.
| void wxPdfBarcodeZint::ClearStructApp | ( | ) |
|
static |
Return the name of a symbology.
| symbology | symbology for which the name should be returned |
| wxColour wxPdfBarcodeZint::GetBgColour | ( | ) | const |
Get the background colour as wxColour.
|
inline |
Get the background colour (may be RGB(A) hex string or CMYK decimal "C,M,Y,K" percentage string)
|
inline |
Get the type of border above/below/around barcode.
|
inline |
Get the border width in X-dimensions.
|
inline |
Get flag whether CMYK colour space is used (Encapsulated PostScript and TIF)
|
inline |
Get compliant height flag.
| double wxPdfBarcodeZint::GetDefaultXdim | ( | ) | const |
Get the default X-dimension of current barcode symbology.
|
static |
Get the default X-dimension.
| symbology | symbology for which the X-dimension should be determined |
|
inline |
Get size of dots used in dotty mode.
|
inline |
Get dotty mode.
|
inline |
Get the resolution of output in dots per mm (BMP/EMF/PCX/PNG/TIF only)
|
inline |
Get Extended Channel Interpretation (segment 0 eci)
| double wxPdfBarcodeZint::GetEncodedHeight | ( | ) | const |
Get the encoded height after successful rendering.
|
inline |
Get the number of encoded rows after successful rendering.
|
inline |
Get the encoded width after successful rendering.
|
inline |
Get the error or warning code returned by Zint on render() or save_to_file()
| wxColour wxPdfBarcodeZint::GetFgColour | ( | ) | const |
Get the foreground colour as wxColour.
|
inline |
Get the foreground colour (may be RGB(A) hex string or CMYK decimal "C,M,Y,K" percentage string)
|
inline |
Type of font to use i.e. normal, small, bold or (vector only) small bold.
|
inline |
Get flag whether validity of GS1 data is not checked (except that printable ASCII only)
|
inline |
Get the height in X-dimensions that EAN/UPC guard bars descend.
|
inline |
Get the symbol height in X-dimensions.
|
inline |
Get the input data encoding. Default UNICODE_MODE.
|
inline |
Get the error message returned by Zint on render() or save_to_file()
|
inline |
Get symbol-specific option 1.
|
inline |
Get symbol-specific option 2.
|
inline |
Get symbol-specific option 3.
|
inline |
Get the primary message (Maxicode, Composite)
|
inline |
Rotate barcode by angle (degrees 0, 90, 180 and 270)
|
inline |
Get scale factor when printing barcode, i.e. adjusts X-dimension.
| int wxPdfBarcodeZint::GetSecurityLevel | ( | ) | const |
Get the security level (option 2)
|
inline |
Get the segments.
| int wxPdfBarcodeZint::GetStructAppCount | ( | ) | const |
| wxString wxPdfBarcodeZint::GetStructAppID | ( | ) | const |
| int wxPdfBarcodeZint::GetStructAppIndex | ( | ) | const |
|
inline |
Get symbology in use.
|
inline |
Get the input data.
|
inline |
Get the text gap.
|
inline |
Get the vector height after successful rendering.
|
inline |
Get the vector width after successful rendering.
|
static |
Version of Zint library "libzint" linked to.
|
inline |
Get the height in X-dimensions of whitespace above & below the barcode.
|
inline |
Get the warning level.
|
inline |
Get the width in X-dimensions of whitespace to left & right of barcode.
| int wxPdfBarcodeZint::GetWidth | ( | ) | const |
Get barcode width (option 1)
|
static |
Check whether symbology has a compliant height.
|
inline |
Check the debugging flag.
|
static |
Check whether symbology has default quiet zones.
|
inline |
Check whether the font will be embedded in vector output - currently only for SVG output of EAN/UPC.
| bool wxPdfBarcodeZint::HasErrors | ( | ) | const |
Check whether errors occurred.
|
static |
Check whether symbology has a fixed ratio.
|
inline |
Get flag whether parentheses are processed as GS1 AI delimiters (instead of square brackets)
|
inline |
Check whether quiet zone indicators will be added.
|
static |
Check whether the symbology has human readable text.
|
static |
Check whether symbology has a mask.
|
inline |
Disable quiet zones, notably those with defaults.
|
inline |
Add compliant quiet zones (additional to any specified whitespace)
|
inline |
Check whether Reader Initialisation (Programming) is used.
|
inline |
Check whether GS (Group Separator) is used instead of FNC1 as GS1 separator (Data Matrix)
|
static |
Check whether symbology is composite.
|
static |
Check whether symbology is dotty.
|
static |
Check whether symbology is extendable.
|
static |
Check whether symbology is stackable.
|
static |
Check validity of symbology.
|
static |
Check whether PNG support is available.
| void wxPdfBarcodeZint::Render | ( | wxPdfDocument & | pdfDoc, |
| double | x, | ||
| double | y ) |
Encode and render barcode to a PDF document.
| pdfDoc | PDF document instance to which the barcode should be rendered |
| x | horizontal position on the current page of the PDF document |
| y | vertical position on the current page of the PDF document |
| bool wxPdfBarcodeZint::SaveToFile | ( | const wxString & | filename | ) |
Encode and print barcode to file.
| filename | name of file to which the barcode should be saved |
| void wxPdfBarcodeZint::SetBgColour | ( | const wxColour & | bgColor | ) |
Set the background colour as wxColour.
| bgColor | the background colour |
| bool wxPdfBarcodeZint::SetBgColourStr | ( | const wxString & | bgStr | ) |
Set the background colour (may be RGB(A) hex string or CMYK decimal "C,M,Y,K" percentage string)
| bgStr | the background colour as a string |
| void wxPdfBarcodeZint::SetBorderType | ( | int | borderTypeIndex | ) |
Set the type of border above/below/around barcode.
| borderTypeIndex | the border type |
| void wxPdfBarcodeZint::SetBorderWidth | ( | int | borderWidth | ) |
Set the border width in X-dimensions.
| borderWidth | the border width |
|
inline |
Enable or disable the use of CMYK colour space (Encapsulated PostScript and TIF)
| cmyk | TRUE to enable CMYK colour space, FALSE to disable it |
|
inline |
Set compliant height.
| compliantHeight | TRUE enables compliant height, FALSE disables it |
|
inline |
Debugging flags.
| debug | TRUE if debugging should be enabled, FALSE otherwise |
|
inline |
Set size of dots used in dotty mode.
| dotSize | the size of a dot in dotty mode |
|
inline |
Set dotty mode.
| dotty | TRUE enables dotty mode, FALSE disables it |
|
inline |
Set the resolution of output in dots per mm (BMP/EMF/PCX/PNG/TIF only)
| dpmm | the resoulution in dots per mm |
| void wxPdfBarcodeZint::SetECI | ( | int | eci | ) |
Set Extended Channel Interpretation (segment 0 eci)
| eci | Extended Channel Interpretation |
| void wxPdfBarcodeZint::SetECIFromIndex | ( | int | ECIIndex | ) |
Set Extended Channel Interpretation (segment 0 eci)
| ECIIndex | index of Extended Channel Interpretation |
|
inline |
Set flag whether to embed the font in vector output - currently only for SVG output of EAN/UPC.
| embedVectorFont | TRUE if the font will be embedded, FALSE otherwise |
| void wxPdfBarcodeZint::SetFgColour | ( | const wxColour & | fgColor | ) |
Set the foreground colour as wxColour.
| fgColor | the foreground colour |
| bool wxPdfBarcodeZint::SetFgColourStr | ( | const wxString & | fgStr | ) |
Set the foreground colour (may be RGB(A) hex string or CMYK decimal "C,M,Y,K" percentage string)
| fgStr | the foreground colour as a string |
| void wxPdfBarcodeZint::SetFontSetting | ( | int | fontSetting | ) |
Set the type of font to use i.e. normal, small, bold or (vector only) small bold.
| fontSetting | the type of font to use |
|
inline |
Set flag whether validity of GS1 data is not checked (except that printable ASCII only)
| gs1NoCheck | TRUE if validity of GS1 data is not checked, FALSE otherwise |
|
inline |
Set flag whether parentheses are processed as GS1 AI delimiters (instead of square brackets)
| gs1Parens | TRUE if parentheses are processed as GS1 AI delimiters, FALSE otherwise |
|
inline |
Set the height in X-dimensions that EAN/UPC guard bars descend.
| guardDescent | the height of the guard bar descend |
|
inline |
Set flag whether to add quiet zone indicators ("<", ">") to HRT (EAN/UPC)
| guardWhitespace | TRUE if quiet zone indicators will be added, FALSE otherwise |
|
inline |
Set the symbol height in X-dimensions.
| height | the height in X-dimensions |
|
inline |
Set the input data encoding. Default UNICODE_MODE.
| inputMode | the input mode |
|
inline |
Enable or disable quiet zones, notably those with defaults.
| noQuietZones | TRUE disables quiet zones, FALSE enables them |
|
inline |
Set symbol-specific option 1.
| option | the value for option 1 |
|
inline |
Set symbol-specific option 2.
| option | the value for option 2 |
|
inline |
Set symbol-specific option 3.
| option | the value for option 3 |
|
inline |
Set the primary message (Maxicode, Composite)
| primaryMessage | the primary text |
|
inline |
Enable or disable compliant quiet zones (additional to any specified whitespace)
| quietZones | TRUE enables compliant quiet zones, FALSE disables them |
|
inline |
Set Reader Initialisation (Programming)
| readerInit | TRUE if Reader Initialisation is enabled, FALSE otherwise |
| void wxPdfBarcodeZint::SetRotateAngle | ( | int | rotateAngle | ) |
Rotate barcode by angle (degrees 0, 90, 180 and 270)
| rotateAngle | angle by which the barcode should be rotated |
|
inline |
Set scale factor when printing barcode, i.e. adjusts X-dimension.
| scale | the scale factor |
| void wxPdfBarcodeZint::SetSecurityLevel | ( | int | securityLevel | ) |
Set the security level (option 2)
| securityLevel | the requested security level |
| void wxPdfBarcodeZint::SetSegments | ( | const std::vector< wxPdfZintSeg > & | segs | ) |
Set the segments.
| segs | the array of segments |
|
inline |
Use GS (Group Separator) instead of FNC1 as GS1 separator (Data Matrix)
| gsSep | TRUE enables the group separator, FALSE disables it |
|
inline |
Enable (true) or disable (false) Human Readable Text.
| showText | TRUE enables human readable text, FALSE disables it |
| void wxPdfBarcodeZint::SetStructApp | ( | const int | count, |
| const int | index, | ||
| const wxString & | id ) |
|
inline |
Set symbology to use.
| symbol | the barcode symbology to use |
| void wxPdfBarcodeZint::SetText | ( | const wxString & | text | ) |
Set the input data.
| text | the barcode text |
|
inline |
Set the text gap.
| textGap | the text gap to use |
|
inline |
Get the height in X-dimensions of whitespace above & below the barcode.
| vWhitespace | the height of whitespace |
|
inline |
Set the warning level.
| warnLevel | the requested warning level |
|
inline |
Set the width in X-dimensions of whitespace to left & right of barcode.
| whitespace | the width of whitespace |
| void wxPdfBarcodeZint::SetWidth | ( | int | width | ) |
Set barcode width (option 1)
| width | the barcode width |
|
inline |
Show (true) or hide (false) Human Readable Text.
|
static |
Check whether symbology supports ECI.
|
static |
Check whether symbology supports full multibyte.
|
static |
Check whether symbology supports GS1.
|
static |
Check whether symbology supports reader init.
|
static |
Check whether symbology supports structured apps.
|
static |
Check whether symbology takes GS1 AI-delimited data.