QRCodeGenerator.GenerateToPDF Method
Generates a QRCode into a EinhugurPDFWriter.Page object.

GenerateToPDF(
pdfPage
as Object,
x
as Single,
y
as Single,
data
as String,
errorCorrection
as ErrorCorrectionType,
borderSize
as UInt8,
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)
- x
- The x coordinate where to place the QRCode.
- y
- The y coordinate where to place the QRCode. (This is location of the bottom edge of the QR code)
- data
- The data to put in the QRCode.
- errorCorrection
- Error correction level to use for the QRCode. (More error correction means bigger QRCode). This can be any value that is defined in the ErrorCorrectionType enum.
- borderSize
- Size of the white border to put around the QRCode in pixels.
- scale
- Scaling for the QRCode, 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
QRCodeGenerator Class