Android PDF-417 Generator generate, create 2d barcode PDF-417 images in Android application

PDF-417 Generator for Android to Generate PDF417 Barcodes in Android Application using Android Barcode Generator Library

  • Android PDF417 generation api is provided with the Android barcode generator
  • Easily add the PDF417 SDK into Android apps
  • Developed from Java PDF417 barcode generator
  • Support Android 1.5 SDK and later versions
  • Generate high quality PDF417 barcode with the Android PDF417 SDK
  • GIF, JPEG, and PNG are supported by the Android PDF417 Barcode Generator
  • Reliable and mature Android barcode library for PDF417 generation
  • Compatible with the latest PDF417 barcode symbology standard
  • Android PDF417 source code is available for the purchase of the Source Code license


Index
 

Android PDF417 Barcode Generator Introduction

Android PDF417 barcode API is a PDF417 generator for Android apps, designed for creating PDF417 barcode in on Android platform.

  • Android PDF417 SDK is entirely developed for Android platform
  • Android PDF417 generator is completely built in Android 1.5 SDK
  • Developer Licenses for this Android PDF417 library are royalty-free and perpetual

PDF417 is a stacked linear bar code symbol used in a variety of applications, primarily transport, identification cards, and inventory management. PDF stands for Portable Data File. The PDF417 symbology was invented by Dr. Ynjiun P. Wang at Symbol Technologies in 1991.

OnBarcode provides several PDF-417 Generator components and software, including C# PDF-417, .NET PDF-417, Java PDF-417, VB.NET PDF-417, ASP.NET PDF-417, Android PDF-417, PDF-417 Generator.

 

PDF-417 Valid Data Scope

Android PDF417 supports:

  • all 128 characters of ASCII
  • values 128-255 in accordance with ISO 8859-1. There are referred to as extended ASCII.

 

How to generate PDF-417 barcodes in your Android application?

Generating barcode PDF 417 in Java Class example

	PDF417 barcode = new PDF417();
	
	/*
	   PDF-417 Valid data char set:
	       1. Text Compaction mode permits all printable ASCII characters to be encoded,
	        i.e. values 32 - 126 inclusive in accordance with ISO/IEC 646 (IRV),
	        as well as selected control characters.
	       2. Byte Compaction mode permits all 256 possible 8-bit byte values to be encoded.
	        This includes all ASCII characters value 0 to 127 inclusive and provides for international character set support.
	       3. Numeric Compaction mode permits efficient encoding of numeric data strings.
	       4. Up to 811 800 different character sets or data interpretations.
	       5. Various function codewords for control purposes.
	*/
	barcode.setData("112233445566");
	
	// PDF 417 Error Correction Level
	barcode.setEcl(PDF417.ECL_2);
	barcode.setRowCount(30);
	barcode.setColumnCount(5);
	barcode.setDataMode(PDF417.M_AUTO);
	
	barcode.setTruncated(false);
	
	//  Set the processTilde property to true, if you want use the tilde character "~" to
	//  specify special characters in the input data. Default is false.
	//  1-byte character: ~ddd (character value from 0 ~ 255)
	//  ASCII (with EXT): from ~000 to ~255
	//  2-byte character: ~6ddddd (character value from 0 ~ 65535)
	//  Unicode: from ~600000 to ~665535
	//  ECI: from ~7000000 to ~7999999
	barcode.setProcessTilde(true);
	
	/*
	// for macro PDF 417
	barcode.setMacro(false);
	barcode.setMacroSegmentIndex(0);
	barcode.setMacroSegmentCount(0);
	barcode.setMacroFileIndex(0);
	*/
	
	// unit of measure for X, Y, LeftMargin, RightMargin, TopMargin, BottomMargin
	barcode.setUom(IBarcode.UOM_PIXEL);
	// barcode module width in pixel
	barcode.setX(1f);
	barcode.setXtoYRatio(0.3f);
	
	barcode.setLeftMargin(10f);
	barcode.setRightMargin(10f);
	barcode.setTopMargin(10f);
	barcode.setBottomMargin(10f);
	// barcode image resolution in dpi
	barcode.setResolution(72);
	
	// barcode bar color and background color in Android device
	barcode.setForeColor(AndroidColor.black);
	barcode.setBackColor(AndroidColor.white);
	
	/*
	specify your barcode drawing area
	    */
	    RectF bounds = new RectF(30, 30, 0, 0);
	barcode.drawBarcode(canvas, bounds);
 

Android PDF-417 Barcode Properties

Barcode Java Class: com.onbarcode.barcode.android.PDF417.

Category Properties Value Comments
Basic Property: data Type: String
Default: ""
Barcode value to encode

PDF-417 Valid Data Char Set:
  • Text Compaction mode permits all printable ASCII characters to be encoded, i.e. values 32 - 126 inclusive in accordance with ISO/IEC 646 (IRV), as well as selected control characters.
  • Byte Compaction mode permits all 256 possible 8-bit byte values to be encoded. This includes all ASCII characters value 0 to 127 inclusive and provides for international character set support.
  • Numeric Compaction mode permits efficient encoding of numeric data strings.
  • Up to 811,800 different character sets or data interpretations.
  • Various function codewords for control purposes.

 
PDF 417
Special
Property: processTilde Type: boolean
Default: true
Set the processTilde property to true, if you want use the tilde character "~" to specify special characters in the input data. Default is true.
  • 1-byte character: ~0dd/~1dd/~2dd (character value from 000 ~ 255); ASCII character '~' is presented by ~126
    Strings from "~256" to "~299" are unused
  • 2-byte character (Unicode): ~6ddddd (character value from 00000 ~ 65535)
    Strings from "~665536" to "~699999" are unused
  • Programming for reader initialisation: ~rp.
    This should be located at the beginning of the encoding data, e.g. data = "~rpABCD1234".
  • ECI: ~7dddddd (valid value of dddddd from 000000 to 999999)
Property: dataMode Type: int
Default: 1 (PDF417.M_TEXT)
Valid values:
  • PDF417.M_AUTO (0)
  • PDF417.M_TEXT (1)
  • PDF417.M_BYTE (2)
  • PDF417.M_NUMERIC (3)
Property: ECL Type: int
Default: 2 (PDF417.ECL_2)
Error correction level, values are from PDF417.ECL_0 to PDF417.ECL_8.
Property: rowCount Type: int
Default: 3
The number of rows for PDF417. The value range is from 3 to 90. The default is 3.
Property: columnCount Type: int
Default: 5
Number of columns. The value range is from 1 to 30. The default is 5. Increase this value, if your data size is large.
Property: truncated Type: boolean
Default: false
truncated PDF417 may be used where space considerations are a primary concern and symbol damage is unlikely.
Property: isMacro Type: boolean
Default: false
Set isMacro property to true, then Macro PDF417 is enabled.
Property: macroSegmentIndex Type: int
Default: 0
the position of current symbol in the secuence (Start with 0).
Property: macroSegmentCount Type: int
Default: 0
the number of total symbols which make the sequence.
Property: macroFileIndex Type: int
Default: 0
be identified to the same file
 
Barcode
Size
Related
Property: autoResize Type: boolean
Default: false
Auto resize the generated barcode image
Property: barAlignment Type: int
Default: 1 (center)
Barcode horizontal alignment inside the image. 0: left, 1: center, 2: right.
Property: uom Type: int
Default: 0 (pixel)
Unit of meature for all size related settings in the library.
Valid values: 0: pixel; 1: inch; 2: cm.
Property: X Type: float
Default: 3
Barcode bar module width, default is 3 pixel
Property: XtoYRatio Type: float
Default: 0.3333333f
Bar width vs bar height ratio
Property: barcodeWidth Type: float
Default: 0
Barcode image width.

If barcodeWidth setting is smaller than the barcode required minimum width, the library will automatically reset to barcode minimum width.
Property: barcodeHeight Type: float
Default: 0
Barcode image height.

If barcodeHeight setting is smaller than the barcode required minimum height, the library will automatically reset to barcode minimum height.
Property: leftMargin Type: float
Default: 0
Barcode image left margin size.
Property: rightMargin Type: float
Default: 0
Barcode image right margin size.
Property: topMargin Type: float
Default: 0
Barcode image top margin size.
Property: bottomMargin Type: float
Default: 0
Barcode image bottom margin size.
Property: resolution Type: int
Default: 72
Barcode image resolution in DPI (Dots per inch).
Property: rotate Type: int
Default: 0 (IBarcode.ROTATE_0)
Valid values:

  • 0 (IBarcode.ROTATE_0)
  • 1 (IBarcode.ROTATE_90)
  • 2 (IBarcode.ROTATE_180)
  • 3 (IBarcode.ROTATE_270)
 
Barcode
Colors
Property: backColor Type: AndroidColor
Default: AndroidColor.white
Barcode image background color
Property: foreColor Type: AndroidColor
Default: AndroidColor.black
Barcode image foreground color









OnBarcode is a market-leading provider of barcode generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides high quality tutorials and guides for various linear, 2d barcode information, such as C# Barcode, QR Code C#, QR Code VB.NET, QR Code ASP.NET, QR Code .NET, ASP.NET Barcode. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.