Print Page | Close Window

Barcode numbers text size

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=3826
Printed Date: 29 Mar 24 at 11:53AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Barcode numbers text size
Posted By: sebC
Subject: Barcode numbers text size
Date Posted: 17 Jul 20 at 11:38AM
Hi,

Is it possible to change the text size of numbers in barcode ? 

I successfully changed the font of the number using SelectFont before calling DrawBarcode.
But it seems SetTextSize is not working on barcodes. 

curPdfLib->SetFillColor(0, 0, 0);
curPdfLib->SelectFont(fontBarCode);
curPdfLib->SetTextSize(10);   //not working
curPdfLib->DrawBarcode(curXPos, curYPos + ImgSize + EspaceImgBarCode, WBarCode, HBarCode, L"7613035336162", 2, 2);



Replies:
Posted By: Ingo
Date Posted: 17 Jul 20 at 12:51PM
Hi Sebastian,

you should have a look into the developer guide.
Search for "Draw​ ​text​ ​under​ ​a​ ​barcode" ... that will feed your needs.

Cheers and welcome here,
Ingo



-------------
Cheers,
Ingo



Posted By: sebC
Date Posted: 17 Jul 20 at 1:12PM
Hello,

Yes i can draw the text separately, but DrawBarCode has functions to integrate text into the barcode. 

OptionsCode39:
0 = Default drawing
EAN-13 or UPC:
0 = Only draw the barcode
1 = Extend the guard bars
2 = Draw the human-readable numbers
So i guess i cannot change the text size of numbers in barcode, i must draw it manually.



Posted By: Ingo
Date Posted: 17 Jul 20 at 8:51PM
yes... you're right.
Take it like it is or do it manually like you like it more.



-------------
Cheers,
Ingo



Posted By: sebC
Date Posted: 22 Jul 20 at 12:37PM
Ok i just wanted to be sure i wasnt missing somehting. 

Thanks Ingo.



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