THPDFPage.DrawQRCode Method
Provides draw qrcode behaviour for the page drawing workflow. Use it when the surrounding API family needs explicit control over PDF objects, page content, resources, conformance, or diagnostics
声明
function DrawQRCode(const Data: AnsiString; X, Y: Single; ModuleSize: Single= 2; ECLevel: THPDFQRECLevel= qrM; Color: TColor= clBlack): Integer;
单元
HPDFDoc
参数
| 名称 | 用途 |
|---|---|
Data | 由此 API 嵌入或验证的原始字节负载 |
X | 以当前 HotPDF 坐标空间表示的页面坐标或尺寸值 |
Y | 以当前 HotPDF 坐标空间表示的页面坐标或尺寸值 |
ModuleSize | DrawQRCode 使用的输入 |
ECLevel | Version, conformance, or nesting level used by the workflow |
Color | 颜色 |
返回值
返回 Integer 值
使用说明
- 在受影响的页面、资源、字段或目录对象完成之前,在页面绘制工作流中使用此 API
- 保持对象名、字段名、资源名和返回的句柄稳定,直到文档完成
- Page-level changes affect subsequent operators on the same page; save and restore graphics state when a temporary setting should not leak