Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Bar code with text surrounded by code. |
Post Reply |
Author | |
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 453 |
Post Options
Thanks(0)
Posted: 17 May 14 at 10:12AM |
Below is example how to draw Bar code with text surrounded by code. (script in AutoIt) ; ---------------------------------------------------------------------------------------------------------------- $oQP.SetOrigin($__QPDF_SORIGIN_TopLeft); $oQP.SetMeasurementUnits($__QPDF_MUNITS_Milimeters) ; Get the width of the barcode With a bar width of 0,1 mm Local $iBarcodeWidth = $oQP.GetBarcodeWidth(0.1, $sText, 1); ; Draw the barcode $oQP.DrawBarcode($iBarcodeLeft, $iBarcodeTop, $iBarcodeWidth, $iBarcodeHeight, $sText, 1, 0); $oQP.SetTextSize(11); Local $iTextWidth = $oQP.GetTextWidth($sText) Local $iTextHeight = $oQP.GetTextHeight() $oQP.SetFillColor(1, 1, 1); ; Draw White Box $oQP.DrawBox($iBarcodeLeft + ($iBarcodeWidth - $iTextWidth) / 2, $iBarcodeTop + $iBarcodeHeight - $iTextHeight, $iTextWidth, $iTextHeight, 1) ; Center the text $oQP.SetTextAlign($__QPDF_TEXTALIGN_Center); ; Draw the text $oQP.SetTextSize(10); $oQP.DrawText($iBarcodeLeft + $iBarcodeWidth / 2, $iBarcodeTop + $iBarcodeHeight, $sText); ; ----------------------------------------------------------------------------------------------------------------
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store