Click or drag to resize

QRcodeCreatePdfInUtf8 Method

Create a PDF file of a QR code, using UTF-8 encoding.

Namespace: diQRcodeNet
Assembly: diQRcodeNet (in diQRcodeNet.dll) Version: 4.0.0.26352 (4.0.0.1)
Syntax
public static int CreatePdfInUtf8(
	string outFile,
	string inputStr,
	int nPixelsPerModule = 0,
	Ecc level = Ecc.M,
	int nPageWidth = 0,
	int nPageHeight = 0,
	int nX = 0,
	int nY = 0,
	Options options = Options.Default
)

Parameters

outFile  String
Name of output PDF file to be created.
inputStr  String
Text input to be encoded.
nPixelsPerModule  Int32  (Optional)
Number of pixels per module (default = 2 ppm)
level  Ecc  (Optional)
Error correction code level (default = M)
nPageWidth  Int32  (Optional)
Width of PDF page in pixels (default = 0 => set width to fit QRcode image).
nPageHeight  Int32  (Optional)
Height of PDF page in pixels (default = 0 => set height to fit QRcode image).
nX  Int32  (Optional)
X-coordinate in pixels of bottom-left of QRcode image (default = 0 => at left side).
nY  Int32  (Optional)
Y-coordinate in pixels of bottom-left of QRcode image (default = 0 => at bottom).
options  Options  (Optional)
Option flags.

Return Value

Int32
Zero on success, or a nonzero error code.
Remarks
Any non-ASCII characters in inputStr will be encoded in UTF-8 before processing.
See Also