

Defaults to 2, meaning "wide" bars are twice as wide as "thin" bars.ĭrawText - Some barcode types (such as UPC) usually include printed human-readable text. Using this parameter may improve the scannability of these barcode AspPDF will shrink the font as necessary to make the textįit within the width of a particular barcode type.īarWeight - Certain barcode types do not prescribe a constant width ratio between "thin" and "wide" bars,īut allow this ratio to be specified. This is not used forĬertain barcode types like UPC which prescribe all font sizes. Note that very few scannersĬan scan barcodes in colors other than standard black and white.įontSize - Specifies the size of the font used. This can be useful to make the spaces in theīarcode white if the page background is non-white. These parameters were introduced by version 2.2.0.2.īgColor - Specifies the color of the spaces between the bars. If these parameters are specified, Color is ignored. Tc, tm, ty, tk - Specify the CMYK color components of the bars and text.

Text associated with barcodes may extend slightly outside theĬolor - Specifies the color of the bars and text. The X, Y, Width, and Height parameters only specify the size of the actual Width, Height - Width and height of the barcode. X, Y - X and Y coordinates of the lower-left corner of the barcode. Click the links below to run this sample: This code is not repeated here due to length. The DrawBarcode method will validate the data passed to it and throw an error exception if it is invalid for the specified type of barcode.ĪspPDF also includes a sample of an HTML form page into which a user can enter data for a barcode. Note that AspPDF automatically calculated and added the UPC-A check digit (the 6.) ( strData, strParam ) Ĭlick the links below to run this code sample: String strParams = "x=72 y=696 height=96 width=144 type=1" //Barcode type 1 is UPC-A IPdfPage objPage = (Missing.Value, Missing.Value, Missing.Value) IPdfDocument objDoc = objPDF.CreateDocument(Missing.Value) StrParam = "x=72 y=696 height=96 width=144 type=1" 'Barcode type 1 is UPC-A
Mergepdf tk pdf#
Set Pdf = Server.CreateObject("Persits.Pdf") The following code sample prints a UPC-A (Universal Product Code) barcode on a page. This method expects two parameters: a string indicating the data to encode as aīarcode, and a PdfParam object or parameter string providing parameters. Linear (one-dimensional) barcodes are provided by the DrawBarcode method of the PdfCanvas object. Various 1D (linear) and 2D barcodes are supported.
Mergepdf tk manual#
AspPDF - ASP PDF User Manual Chapter 12: Miscellaneous FeaturesĬhapter 12: Miscellaneous Features 12.1 BarcodesĪspPDF contains the ability to generate printable, scannable barcodes.
