com.aspose.barcode.generation

Class Pdf417Properties

  • java.lang.Object
    • com.aspose.barcode.generation.Pdf417Properties


  • public final class Pdf417Properties
    extends java.lang.Object

    Contains specific configuration properties for Pdf417 barcodes.


      This sample shows how to create and save a BarCode image.
      
             BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.PDF_417);
             generator.getPdf417().setErrorLevel(Pdf417ErrorLevel.Level1);
             generator.save("test.png");
            

    • Constructor Summary

      Constructors 
      Constructor and Description
      Pdf417Properties() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int getCompactionMode()
      Pdf417 symbology type of BarCode's compaction mode.
      int getErrorLevel()
      Gets or sets Pdf417 symbology type of BarCode's error correction level ranging from level0 to level8, level0 means no error correction info, level8 means best error correction which means a larger picture.
      int getMacroFileID()
      Gets or sets macro Pdf417 barcode's file ID.
      int getMacroSegmentID()
      Gets or sets macro Pdf417 barcode's segment ID, which starts from 0, to MacroSegmentsCount - 1.
      int getMacroSegmentsCount()
      Gets or sets macro Pdf417 barcode segments count.
      boolean getTruncate()
      Whether Pdf417 symbology type of BarCode is truncated (to reduce space).
      void setCompactionMode(int value)
      Pdf417 symbology type of BarCode's compaction mode.
      void setErrorLevel(int value)
      Gets or sets Pdf417 symbology type of BarCode's error correction level ranging from level0 to level8, level0 means no error correction info, level8 means best error correction which means a larger picture.
      void setMacroFileID(int value)
      Gets or sets macro Pdf417 barcode's file ID.
      void setMacroSegmentID(int value)
      Gets or sets macro Pdf417 barcode's segment ID, which starts from 0, to MacroSegmentsCount - 1.
      void setMacroSegmentsCount(int value)
      Gets or sets macro Pdf417 barcode segments count.
      void setTruncate(boolean value)
      Whether Pdf417 symbology type of BarCode is truncated (to reduce space).
      java.lang.String toString()
      Returns a human-readable string representation of this Pdf417Properties
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Pdf417Properties

        public Pdf417Properties()
    • Method Detail

      • getCompactionMode

        public int getCompactionMode()

        Pdf417 symbology type of BarCode's compaction mode. Default compaction mode is Auto.

      • setCompactionMode

        public void setCompactionMode(int value)

        Pdf417 symbology type of BarCode's compaction mode. Default compaction mode is Auto.

      • getErrorLevel

        public int getErrorLevel()

        Gets or sets Pdf417 symbology type of BarCode's error correction level ranging from level0 to level8, level0 means no error correction info, level8 means best error correction which means a larger picture.

      • setErrorLevel

        public void setErrorLevel(int value)

        Gets or sets Pdf417 symbology type of BarCode's error correction level ranging from level0 to level8, level0 means no error correction info, level8 means best error correction which means a larger picture.

      • getTruncate

        public boolean getTruncate()

        Whether Pdf417 symbology type of BarCode is truncated (to reduce space).

      • setTruncate

        public void setTruncate(boolean value)

        Whether Pdf417 symbology type of BarCode is truncated (to reduce space).

      • getMacroFileID

        public int getMacroFileID()

        Gets or sets macro Pdf417 barcode's file ID.

      • setMacroFileID

        public void setMacroFileID(int value)

        Gets or sets macro Pdf417 barcode's file ID.

      • getMacroSegmentID

        public int getMacroSegmentID()

        Gets or sets macro Pdf417 barcode's segment ID, which starts from 0, to MacroSegmentsCount - 1.

      • setMacroSegmentID

        public void setMacroSegmentID(int value)

        Gets or sets macro Pdf417 barcode's segment ID, which starts from 0, to MacroSegmentsCount - 1.

      • getMacroSegmentsCount

        public int getMacroSegmentsCount()

        Gets or sets macro Pdf417 barcode segments count.

      • setMacroSegmentsCount

        public void setMacroSegmentsCount(int value)

        Gets or sets macro Pdf417 barcode segments count.

      • toString

        public java.lang.String toString()
        Returns a human-readable string representation of this Pdf417Properties
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string that represents this Pdf417Properties