In my XData-Server I want to generate a pdf that includes a QRCode.
how can create and receive a qrcode image from a on runtime created TTMSFNCWXQRCode object
for example
qr := TTMSFNCWXQRCode.Create(self);
qr.Visible := False;
qr.ErrorCorrectionLevel := eclH;
qr.Text := '12345';
qr.CreateQRCode(qr.text);
// How can i get the qrCode as Picture here
// qrbmp := qr.OnGetQRCode?
pdf := TTMSFNCPDFLib.Create;
try
pdf.BeginDocument('sample.pdf');
pdf.PageSize := psA4;
pdf.Header := '';
pdf.Footer := '';
pdf.NewPage;
pdf.Graphics.Font.Name :='Roboto';
//pdf.Graphics.Font.Color := ;
pdf.Graphics.Font.Style := [];
pdf.Graphics.Font.SizeNoScale := 22;
pdf.Graphics.DrawText('ANAMNESE', PointF(20,20));
pdf.Graphics.DrawImage( ---- The QRCode-Bitmap ----, RectF(10,10,50,50));
pdf.EndDocument(true);
finally
pdf.Free;
end;