Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: How to create PDF417 barcode using java language

How to create PDF417 barcode using java language 4 years 3 months ago #3902

Please download PDF417 encoder SDK/J2SE and inport it into your project.

here is the sample code:

import com.aipsys.barcode.encoder.PDF417;


public final class CommandLineRunner {

private CommandLineRunner()
{
}

public static void main(String[] args) throws Exception {

PDF417 pdf = new PDF417();
pdf.setTextData("PDF417 test");
pdf.setBarWidth(2);
pdf.setBarHeight( 7);
pdf.setResolution( 1);
pdf.setHorzMargin(10);
pdf.setVertMargin(10);
pdf.setColumns(4);
pdf.Encode2JPEGFile("c:\\12.jpg");

}

}
The administrator has disabled public write access.

  • Posts:59
  • developer's Avatar
  • developer
  • Moderator
  • OFFLINE
  • Karma: 1
  • Page:
  • 1
Time to create page: 0.961 seconds
Powered by Kunena Forum :: Wibi