DynamicPDF by ceTe Software

com.cete.dynamicpdf.pageelements.barcoding
Class QrCode

java.lang.Object
  extended by com.cete.dynamicpdf.PageElement
      extended by com.cete.dynamicpdf.pageelements.TaggablePageElement
          extended by com.cete.dynamicpdf.pageelements.barcoding.Dim2Barcode
              extended by com.cete.dynamicpdf.pageelements.barcoding.QrCode
All Implemented Interfaces:
ICoordinate

public class QrCode
extends Dim2Barcode

This class can be used to place a QR code on a page.

Licensing:
This class is a DynamicPDF Merger Standard Edition feature. One of the following licenses is required for non-evaluation usage:

View Example


Constructor Summary
QrCode(byte[] value, float x, float y)
          Initializes a new instance of the QrCode class.
QrCode(byte[] value, float x, float y, float xDimension)
          Initializes a new instance of the QrCode class.
QrCode(byte[] value, float x, float y, float xDimension, QrCodeErrorCorrectionLevel errorCorrectionLevel)
          Initializes a new instance of the QrCode class.
QrCode(byte[] value, float x, float y, float xDimension, QrCodeErrorCorrectionLevel errorCorrectionLevel, QrCodeVersion version)
          Initializes a new instance of the QrCode class.
QrCode(byte[] value, float x, float y, QrCodeErrorCorrectionLevel errorCorrectionLevel)
          Initializes a new instance of the QrCode class.
QrCode(byte[] value, float x, float y, QrCodeErrorCorrectionLevel errorCorrectionLevel, QrCodeVersion version)
          Initializes a new instance of the QrCode class.
QrCode(java.lang.String text, float x, float y)
          Initializes a new instance of the QrCode class.
QrCode(java.lang.String text, float x, float y, float xDimension)
          Initializes a new instance of the QrCode class.
QrCode(java.lang.String text, float x, float y, float xDimension, QrCodeEncoding encoding)
          Initializes a new instance of the QrCode class.
QrCode(java.lang.String text, float x, float y, float xDimension, QrCodeEncoding encoding, QrCodeErrorCorrectionLevel errorCorrectionLevel)
          Initializes a new instance of the QrCode class.
QrCode(java.lang.String text, float x, float y, float xDimension, QrCodeEncoding encoding, QrCodeErrorCorrectionLevel errorCorrectionLevel, QrCodeVersion version)
          Initializes a new instance of the QrCode class.
QrCode(java.lang.String text, float x, float y, QrCodeEncoding encoding)
          Initializes a new instance of the QrCode class.
QrCode(java.lang.String text, float x, float y, QrCodeEncoding encoding, QrCodeErrorCorrectionLevel errorCorrectionLevel)
          Initializes a new instance of the QrCode class.
QrCode(java.lang.String text, float x, float y, QrCodeEncoding encoding, QrCodeErrorCorrectionLevel errorCorrectionLevel, QrCodeVersion version)
          Initializes a new instance of the QrCode class.
 
Method Summary
 void draw(PageWriter writer)
          Draws QR code to the given ceTe.DynamicPDF.IO.PageWriter object.
 QrCodeFnc1 getFnc1()
          Gets The FNC1 mode.
 float getSymbolHeight()
          Gets the height required to display the QR code.
 float getSymbolWidth()
          Gets the width required to display the QR code.
 int getVersion()
          Gets the QR code version.
 void setFnc1(QrCodeFnc1 value)
          Sets The FNC1 mode.
 
Methods inherited from class com.cete.dynamicpdf.pageelements.barcoding.Dim2Barcode
getAngle, getColor, getPixelsPerXDimension, getX, getXDimension, getXDimensionMilliMeters, getXDimensionMils, getXDimensionsPerCentiMeter, getXDimensionsPerInch, getY, setAngle, setColor, setPixelsPerXDimension, setX, setXDimension, setXDimensionMilliMeters, setXDimensionMils, setXDimensionsPerCentiMeter, setXDimensionsPerInch, setY
 
Methods inherited from class com.cete.dynamicpdf.pageelements.TaggablePageElement
getTag, getTagOrder, setTag, setTagOrder
 
Methods inherited from class com.cete.dynamicpdf.PageElement
getRequiredLicenseLevel, getStrID, setRequiredLicenseLevel, setStrID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QrCode

public QrCode(java.lang.String text,
              float x,
              float y)
Initializes a new instance of the QrCode class.

Parameters:
text - The text of the QR code.
x - The X coordinate of the QR code.
y - The Y coordinate of the QR code.

QrCode

public QrCode(java.lang.String text,
              float x,
              float y,
              float xDimension)
Initializes a new instance of the QrCode class.

Parameters:
text - The text of the QR code.
x - The X coordinate of the QR code.
y - The Y coordinate of the QR code.
xDimension - The XDimension of the QR code.

QrCode

public QrCode(java.lang.String text,
              float x,
              float y,
              float xDimension,
              QrCodeEncoding encoding)
Initializes a new instance of the QrCode class.

Parameters:
text - The text of the QR code.
x - The X coordinate of the QR code.
y - The Y coordinate of the QR code.
xDimension - The XDimension of the QR code.
encoding - The encoding of the QR code.
See Also:
QrCodeEncoding

QrCode

public QrCode(java.lang.String text,
              float x,
              float y,
              float xDimension,
              QrCodeEncoding encoding,
              QrCodeErrorCorrectionLevel errorCorrectionLevel)
Initializes a new instance of the QrCode class.

Parameters:
text - The text of the QR code.
x - The X coordinate of the QR code.
y - The Y coordinate of the QR code.
xDimension - The XDimension of the QR code.
encoding - The encoding of the QR code.
errorCorrectionLevel - The error correction level of QR code.
See Also:
QrCodeEncoding, QrCodeErrorCorrectionLevel

QrCode

public QrCode(java.lang.String text,
              float x,
              float y,
              QrCodeEncoding encoding)
Initializes a new instance of the QrCode class.

Parameters:
text - The text of the QR code.
x - The X coordinate of the QR code.
y - The Y coordinate of the QR code.
encoding - The encoding of the QR code.
See Also:
QrCodeEncoding

QrCode

public QrCode(java.lang.String text,
              float x,
              float y,
              QrCodeEncoding encoding,
              QrCodeErrorCorrectionLevel errorCorrectionLevel)
Initializes a new instance of the QrCode class.

Parameters:
text - The text of the QR code.
x - The X coordinate of the QR code.
y - The Y coordinate of the QR code.
encoding - The encoding of the QR code.
errorCorrectionLevel - The error correction level of QR code.
See Also:
QrCodeEncoding, QrCodeErrorCorrectionLevel

QrCode

public QrCode(java.lang.String text,
              float x,
              float y,
              QrCodeEncoding encoding,
              QrCodeErrorCorrectionLevel errorCorrectionLevel,
              QrCodeVersion version)
Initializes a new instance of the QrCode class.

Parameters:
text - The text of the QR code.
x - The X coordinate of the QR code.
y - The Y coordinate of the QR code.
encoding - The encoding of the QR code.
errorCorrectionLevel - The error correction level of QR code.
version - The version of the QR code.
See Also:
QrCodeEncoding, QrCodeErrorCorrectionLevel, QrCodeVersion

QrCode

public QrCode(java.lang.String text,
              float x,
              float y,
              float xDimension,
              QrCodeEncoding encoding,
              QrCodeErrorCorrectionLevel errorCorrectionLevel,
              QrCodeVersion version)
Initializes a new instance of the QrCode class.

Parameters:
text - The text of the QR code.
x - The X coordinate of the QR code.
y - The Y coordinate of the QR code.
xDimension - The XDimension of the QR code.
encoding - The encoding of the QR code.
errorCorrectionLevel - The error correction level of QR code.
version - The version of the QR code.
See Also:
QrCodeEncoding, QrCodeErrorCorrectionLevel, QrCodeVersion

QrCode

public QrCode(byte[] value,
              float x,
              float y)
Initializes a new instance of the QrCode class.

Parameters:
value - The value of the QR code.
x - The X coordinate of the QR code.
y - The Y coordinate of the QR code.

QrCode

public QrCode(byte[] value,
              float x,
              float y,
              float xDimension)
Initializes a new instance of the QrCode class.

Parameters:
value - The value of the QR code.
x - The X coordinate of the QR code.
y - The Y coordinate of the QR code.
xDimension - The XDimension of the QR code.

QrCode

public QrCode(byte[] value,
              float x,
              float y,
              float xDimension,
              QrCodeErrorCorrectionLevel errorCorrectionLevel)
Initializes a new instance of the QrCode class.

Parameters:
value - The value of the QR code.
x - The X coordinate of the QR code.
y - The Y coordinate of the QR code.
xDimension - The XDimension of the QR code.
errorCorrectionLevel - The error Correction Level of the QR code.
See Also:
QrCodeErrorCorrectionLevel

QrCode

public QrCode(byte[] value,
              float x,
              float y,
              QrCodeErrorCorrectionLevel errorCorrectionLevel)
Initializes a new instance of the QrCode class.

Parameters:
value - The value of the QR code.
x - The X coordinate of the QR code.
y - The Y coordinate of the QR code.
errorCorrectionLevel - The error Correction Level of the QR code.
See Also:
QrCodeErrorCorrectionLevel

QrCode

public QrCode(byte[] value,
              float x,
              float y,
              QrCodeErrorCorrectionLevel errorCorrectionLevel,
              QrCodeVersion version)
Initializes a new instance of the QrCode class.

Parameters:
value - The value of the QR code.
x - The X coordinate of the QR code.
y - The Y coordinate of the QR code.
errorCorrectionLevel - The error correction level of QR code.
version - The version of the QR code.
See Also:
QrCodeErrorCorrectionLevel, QrCodeVersion

QrCode

public QrCode(byte[] value,
              float x,
              float y,
              float xDimension,
              QrCodeErrorCorrectionLevel errorCorrectionLevel,
              QrCodeVersion version)
Initializes a new instance of the QrCode class.

Parameters:
value - The value of the QR code.
x - The X coordinate of the QR code.
y - The Y coordinate of the QR code.
xDimension - The XDimension of the QR code.
errorCorrectionLevel - The error correction level of QR code.
version - The version of the QR code.
See Also:
QrCodeErrorCorrectionLevel, QrCodeVersion
Method Detail

draw

public void draw(PageWriter writer)
Draws QR code to the given ceTe.DynamicPDF.IO.PageWriter object.

Specified by:
draw in class Dim2Barcode
Parameters:
writer - object to receive the QR code output.
See Also:
PageWriter

getSymbolWidth

public float getSymbolWidth()
Gets the width required to display the QR code.

Specified by:
getSymbolWidth in class Dim2Barcode
Returns:
the width required to display the QR code.

getSymbolHeight

public float getSymbolHeight()
Gets the height required to display the QR code.

Specified by:
getSymbolHeight in class Dim2Barcode
Returns:
A value representing the required height.

getVersion

public int getVersion()
Gets the QR code version.

Returns:
The QR code version.

setFnc1

public void setFnc1(QrCodeFnc1 value)
Sets The FNC1 mode.

Parameters:
value -
See Also:
QrCodeFnc1

getFnc1

public QrCodeFnc1 getFnc1()
Gets The FNC1 mode.

Returns:
The FNC1 mode.
See Also:
QrCodeFnc1

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.07 for Java generated on Aug 12, 2020
© Copyright 2020, ceTe Software