Do you own a Debenu Quick PDF Library 12/11/10/9/8/7? Upgrade to Debenu Quick PDF Library 13!

Foxit Quick PDF Library

Frequently Asked Question:

Return to FAQ Index

Add a barcode to a PDF

Question

Can Quick PDF Library add a barcode to a PDF?

Answer

Yes, Quick PDF Library includes support for drawing a variety of different barcodes. The support barcodes are:

  • Code39 (or Code 3 of 9)
  • EAN-13
  • Code128
  • PostNet
  • Interleaved 2 of 5

Here is some sample code in JScript that demonstrates how to add a few different barcodes to your PDF:

// Set the origin for the co-ordinates to be
// the top left corner of the page.

QP.SetOrigin(1);

// Draw three different barcodes

QP.DrawBarcode(25, 25, 150, 100, "MyBarcode256", 1, 0);
QP.DrawBarcode(225, 50, 100, 600, "MyBarcode257/RC", 1, 0);
QP.DrawBarcode(350, 50, 200, 150, "MyBarcode258", 3, 0);

// Save the new file to the output folder

QP.SaveToFile("Barcodes.pdf");

© 2015 Debenu & Foxit. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum