BarcodeGenerator.GenerateToPDF Method
Generates Barcode from String value into EinhugurPDFWriter.Page object.

GenerateToPDF(
pdfPage
as Object,
pdfFont
as Object,
x
as Single,
y
as Single,
type
as BarcodeType,
value
as String,
printTextBellow
as Boolean,
scale
as Single)
Parameters
- pdfPage
- EinhugurPDFWriter.Page object. (The signature of this is Object to not create firm dependency but the object will be internally type checked and a error code returned if wrong type is passed to it)
- pdfFont
- The font to use. Usually you will want PDF Courier with WINDOWS_ANSI encoding for the numbers of the barcode like:
Dim pdfFont as Font = pdf.GetFont("Courier", Font.FontEncodingEnum.WINDOWS_ANSI) - x
- The x coordinate where to place the Barcode.
- y
- The y coordinate where to place the Barcode. The coordinate relates to bottom edge of the barcode.
- type
- The type of Barcode to generate.
- value
- The value to generate the barcode from.
- printTextBellow
- True if wanting barcode text label included, else false.
- scale
- Scaling for the Barcode, where 1.0 is base size, 0.5 is half size, 2.0 double size, etc. You can use the GetPDFBaseSize function to get how much space a base size will occupy on the PDF and then scale that up or down to get the desired size you want.
Remarks
See Also
BarcodeGenerator Class