Print Page | Close Window

PDF417 Barcode and DrawText Question

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=2645
Printed Date: 20 May 25 at 6:21AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: PDF417 Barcode and DrawText Question
Posted By: hrdware
Subject: PDF417 Barcode and DrawText Question
Date Posted: 16 May 13 at 7:03PM
I am currently evaluating QuickPDF for a project and so far it looks good.  I do have a couple of questions though.

I have a single page PDF that I will use as a source document and the target document will have several copies of the source document with different data on each page.  What is the best way to do this?

Draw the data on the source then merge it with the target, close and reopen the source?  Is there a way to draw text on a particular page?

Next question is about the PDF417 barcode.  Is there a way I can specify the then number of columns the barcode uses?  Can I specify the number of error correction words to use?  Can I specify the height of each encoded item?

Thanks.



Replies:
Posted By: hrdware
Date Posted: 24 Jun 13 at 1:45PM
Since I will know how many pages I will need in total, I found a way to clone pages in the PDF.  What I will end up doing is copying the source document to a temporary file, cloning the pages then using SelectPage to change pages and write the data to the appropriate page.


Posted By: AndrewC
Date Posted: 26 Jun 13 at 6:08AM
The required PDF417 barcode changes have been added to a new function called DrawPDF417SymbolEx which is part of 9.13 beta 3 and can be downloaded from

http://www.debenu.com/blog/debenu-quick-pdf-library-9-15-beta-3-released.html

Andrew.


Posted By: joim
Date Posted: 28 Mar 14 at 3:06PM
Hello,

I have an additional question to PDF417 barcode generation:

For object positioning reasons I need to specify the exact size of a PDF417 symbol (width and height) or if this is not possible I at least need to know the size of resulting generated barcode symbol.

I did not figure out how I can specify size even with the function DrawPDF417SymbolEx.
I guess that there is no combination of parameters "FixedColumns", "FixedRows", "ModuleSize"
and "HeightWidthRatio" that guarantees a defined size of resulting barcode symbol, is that correct?
If it is so, is there any possiblity to retrieve resulting symbol size after barcode generation?

Thank you for any ideas or more detailed information about sizing parameters of PDF417 barcodes.

Johannes


Posted By: hrdware
Date Posted: 28 Mar 14 at 4:39PM
Johannes,

If I remember correctly, the width of a module is the ModuleSize, there are 7 modules per Column.  The height of the module is the ModuleSize multiplied by the HeightWidthRatio.  If you know the number of columns and rows you need, or the overall dimensions you should be able to figure out the other.  Modulesize is whatever you have the current measurement set to.

If ModuleSize =1, HeightWidthRation = 3, FixedColumns = 4, FixedRows = 3, and using the default measurements, then

width = 1 x 7 = 7; 7 x 4=28
height = 1 x 3 = 3; 3 x 3 = 9

If I did everything correct, this should give a 28 x 9 point symbol.

If you know the height has to be 40 points and the width has to be 60, with FixedCols = 5 and Fixed Rows = 3 then

modulesize = 60 / 5 = 12; 12 / 7 = 1.7143 (rounded)
heightwidthratio = 40 / 3 = 13.3333; 13.3333 / 1.7143 = 7.7778 (rounded)

Hope that helps




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