com.spire.pdf.barcode
Class PdfUnidimensionalBarcode

java.lang.Object
  extended by com.spire.pdf.barcode.PdfBarcode
      extended by com.spire.pdf.barcode.PdfUnidimensionalBarcode
Direct Known Subclasses:
PdfCodabarBarcode, PdfCode11Barcode, PdfCode128ABarcode, PdfCode128BBarcode, PdfCode128CBarcode, PdfCode39Barcode, PdfCode93Barcode

public abstract class PdfUnidimensionalBarcode
extends PdfBarcode

Represents the Base class for all the Single dimensional barcodes


Constructor Summary
PdfUnidimensionalBarcode()
          Initializes the new instance of
 
Method Summary
 void draw(PdfPageBase page, java.awt.Point location)
           
 void draw(PdfPageBase page, java.awt.geom.Point2D location)
          Draws the barcode on the at the specified location.
 void draw(PdfPageBase page, java.awt.geom.Rectangle2D rect)
          Draws the barcode on the at the specified region.
 boolean getEnableCheckDigit()
          Gets a value indicating whether to enable to check digit calculation in the generated barcode or not.
 boolean getEncodeStartStopSymbols()
          Gets a value indicating whether [encode start stop symbols].
 boolean getShowCheckDigit()
          Get show check digit
 void setBarcodeToTextGapHeight(float value)
          Sets the gap between the barcode and the displayed text.
 void setEnableCheckDigit(boolean value)
          Sets a value indicating whether to enable to check digit calculation in the generated barcode or not.
 void setShowCheckDigit(boolean value)
          Set show check digit
 void setTextAlignment(PdfBarcodeTextAlignment value)
          Sets the alignment of the text displayed on the barcode.
 void setTextDisplayLocation(TextLocation value)
          Sets the text display location.
 java.awt.image.BufferedImage toImage()
          Exports the barcode as image.
 
Methods inherited from class com.spire.pdf.barcode.PdfBarcode
getBackColor, getBarColor, getBarHeight, getBounds, getExtendedText, getLocation, getNarrowBarWidth, getQuietZone, getSize, getText, getTextColor, setBackColor, setBarColor, setBarHeight, setBounds, setExtendedText, setLocation, setNarrowBarWidth, setText, setTextColor
 

Constructor Detail

PdfUnidimensionalBarcode

public PdfUnidimensionalBarcode()
Initializes the new instance of

Method Detail

setTextDisplayLocation

public void setTextDisplayLocation(TextLocation value)
Sets the text display location.


getShowCheckDigit

public boolean getShowCheckDigit()
Get show check digit

See Also:
The Default value is false.

setShowCheckDigit

public void setShowCheckDigit(boolean value)
Set show check digit

See Also:
The Default value is false.

getEnableCheckDigit

public boolean getEnableCheckDigit()
Gets a value indicating whether to enable to check digit calculation in the generated barcode or not.

See Also:
The Default value is True.

setEnableCheckDigit

public void setEnableCheckDigit(boolean value)
Sets a value indicating whether to enable to check digit calculation in the generated barcode or not.

See Also:
The Default value is True.

setBarcodeToTextGapHeight

public void setBarcodeToTextGapHeight(float value)
Sets the gap between the barcode and the displayed text.


setTextAlignment

public void setTextAlignment(PdfBarcodeTextAlignment value)
Sets the alignment of the text displayed on the barcode.

See Also:
Default value is Center.

getEncodeStartStopSymbols

public boolean getEncodeStartStopSymbols()
Gets a value indicating whether [encode start stop symbols]. true if [encode start stop symbols]; otherwise, false.


draw

public void draw(PdfPageBase page,
                 java.awt.geom.Rectangle2D rect)
Draws the barcode on the at the specified region.

Parameters:
page - The pdf page.
rect - The barcode region.

draw

public void draw(PdfPageBase page,
                 java.awt.geom.Point2D location)
Draws the barcode on the at the specified location.

Parameters:
page - The pdf page.
location - The barcode location.

draw

public void draw(PdfPageBase page,
                 java.awt.Point location)

toImage

public java.awt.image.BufferedImage toImage()
Exports the barcode as image.

Returns:
The barcode image.