[]
        
(Showing Draft Content)

IPDF417

Interface IPDF417

All Superinterfaces:
IBarcode

public interface IPDF417 extends IBarcode
Represents a PDF417 barcode.

PDF417 is a popular high-density, two-dimensional barcode symbology that can encode up to 1108 bytes of information. This barcode comprises a stacked set of small barcodes and can encode up to 35 alphanumeric characters and 2,710 numeric characters.

This interface exposes the PDF417-specific barcode settings and generated properties, such as the error correction level, row count, column count, and whether the barcode uses the compact PDF417 format.


 worksheet.getRange("A1").setValue("1234567890");
 worksheet.getRange("B1").setFormula("=BC_PDF417(A1,\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",\"auto\",4,6,TRUE,2,2,2,2)");
 IPDF417 pdf417 = (IPDF417) worksheet.getRange("B1").getValue();
 int rows = pdf417.getRows();
 
  • Method Details

    • getErrorCorrectionLevel

      int getErrorCorrectionLevel()
      Gets the error correction level for the barcode.

      This value corresponds to the error correction level specified for the PDF417 barcode.

      
       worksheet.getRange("A1").setValue("1234567890");
       worksheet.getRange("B1").setFormula("=BC_PDF417(A1, , , 4)");
       IPDF417 pdf417 = (IPDF417) worksheet.getRange("B1").getValue();
       int errorCorrectionLevel = pdf417.getErrorCorrectionLevel();
       
      Returns:
      The error correction level for the barcode.
    • getRows

      int getRows()
      Gets the row count for the barcode.

      Returns the number of rows in the PDF417 barcode generated from the cell value or formula result.

      
       worksheet.getRange("A1").setValue("1234567890");
       worksheet.getRange("B1").setFormula("=BC_PDF417(A1,\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",\"auto\",4,\"auto\",FALSE,2,2,2,2)");
       IPDF417 pdf417 = (IPDF417) worksheet.getRange("B1").getValue();
       int rows = pdf417.getRows();
       
      Returns:
      The number of rows in the barcode. Returns -1 if the row count is configured automatically.
    • getColumns

      int getColumns()
      Gets the number of columns in the barcode.

      Use this method to retrieve the column count of a PDF417 barcode.

      
       worksheet.getRange("A1").setValue("1234567890");
       worksheet.getRange("B1").setFormula("=BC_PDF417(A1,\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",\"auto\",\"auto\",6,FALSE,2,2,2,2)");
       IPDF417 pdf417 = (IPDF417) worksheet.getRange("B1").getValue();
       int columns = pdf417.getColumns();
       
      Returns:
      The number of columns in the barcode. Returns -1 if the column count is configured automatically.
    • getCompact

      boolean getCompact()
      Gets whether the barcode uses the compact PDF417 format.

      The default value is false.

      
       worksheet.getRange("A1").setValue("1234567890");
       worksheet.getRange("B1").setFormula("=BC_PDF417(A1,\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",\"auto\",\"auto\",\"auto\",TRUE,2,2,2,2)");
       IPDF417 pdf417 = (IPDF417) worksheet.getRange("B1").getValue();
       boolean compact = pdf417.getCompact();
       
      Returns:
      true if the barcode uses the compact PDF417 format; otherwise, false.