UniPRT SDK v2.0.0.0
 
Loading...
Searching...
No Matches
LabelMaker.Interfaces.IBcdPdf417.APdf417 Class Reference

Base class for PDF417 barcode. More...

Inheritance diagram for LabelMaker.Interfaces.IBcdPdf417.APdf417:
LabelMaker.Interfaces.IBarcode2D.ABarcode2D LabelMaker.Interfaces.IBarcode2D.IRectangleCell LabelMaker.Interfaces.IBarcode2D.IBarcode2D LabelMaker.Interfaces.IBarcode2D.IBarcodeItem2D LabelMaker.Interfaces.IBarcode2D.IPositionRuler LabelMaker.Interfaces.ISettings.IRotation LabelMaker.PGL.Pdf417Barcode.Pdf417Barcode LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode

Public Member Functions

 __init__ (self, IPoint start, str data)
 Initializes a PDF417 barcode with a start point and data.
 
int limit_range (self, int value, int minimum, int maximum)
 Limits the range of a value to a specified minimum and maximum.
 
- Public Member Functions inherited from LabelMaker.Interfaces.IBarcode2D.ABarcode2D
 __init__ (self, Optional[IPoint] start=None, str data="", Optional[IRuler] ruler=None, RotateEnum rotation=RotateEnum.NONE)
 
str __str__ (self)
 
- Public Member Functions inherited from LabelMaker.Interfaces.IBarcode2D.IBarcode2D
str __str__ (self)
 

Public Attributes

 cell_size = None
 
 error_correction = Pdf417ErrCorrectionEnum.LEVEL2
 
int rows = 0
 
int columns = 0
 
- Public Attributes inherited from LabelMaker.Interfaces.IBarcode2D.ABarcode2D
 start = start
 
 data = data
 
 ruler = ruler or Defaults.ruler()
 
 rotation = rotation
 

Detailed Description

Base class for PDF417 barcode.

This class provides the base structure and functionality for creating a PDF417 barcode, which includes properties such as the starting point, data, cell size, error correction level, and the number of rows and columns.

Constructor & Destructor Documentation

◆ __init__()

LabelMaker.Interfaces.IBcdPdf417.APdf417.__init__ ( self,
IPoint start,
str data )

Initializes a PDF417 barcode with a start point and data.

This constructor initializes the PDF417 barcode with a specified starting point and data content, and sets default values for cell size, error correction level, rows, and columns.

Parameters
startThe starting point or position of the barcode.
dataThe barcode data to be encoded.

Member Function Documentation

◆ limit_range()

int LabelMaker.Interfaces.IBcdPdf417.APdf417.limit_range ( self,
int value,
int minimum,
int maximum )

Limits the range of a value to a specified minimum and maximum.

This method ensures that the provided value stays within the defined range by returning the minimum if the value is below it, the maximum if above it, or the value itself if it is within range.

Parameters
valueThe value to be limited.
minimumThe minimum allowable value.
maximumThe maximum allowable value.
Returns
Returns the value limited within the minimum and maximum range.

Reimplemented in LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode.

Member Data Documentation

◆ cell_size

LabelMaker.Interfaces.IBcdPdf417.APdf417.cell_size = None

◆ columns

int LabelMaker.Interfaces.IBcdPdf417.APdf417.columns = 0

◆ error_correction

LabelMaker.Interfaces.IBcdPdf417.APdf417.error_correction = Pdf417ErrCorrectionEnum.LEVEL2

◆ rows

int LabelMaker.Interfaces.IBcdPdf417.APdf417.rows = 0

The documentation for this class was generated from the following file: