Print Page | Close Window

QRCODE with no text

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2848
Printed Date: 12 Dec 25 at 6:02PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: QRCODE with no text
Posted By: Michi
Subject: QRCODE with no text
Date Posted: 17 Mar 14 at 3:36PM
Hallo,

I try to insert a qrcode into a pdf file.

With 10.13 I get a visible code, which is recognized by QR Droid and ZXING Decoder online, but both show no text.

code:
            ok = qp.DrawText(100, 50, "100/50");
            Console.WriteLine("draw text: {0}", ok);

            ok = qp.DrawQRCode(100, 100, 25, "hallo", 1, 0);
            Console.WriteLine("draw code: {0}", ok);


Any ideas?

Michi




Replies:
Posted By: AndrewC
Date Posted: 19 Mar 14 at 10:52AM
The following code works well in 10.13 and 1014 Beta 1.

Can you try calling 

QP.NormalizePage(0); 
QP.AddStandardFont(4);

before writing to the PDF file.   I suspect this will fix all your problems.

Andrew.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk