dreimer Posted August 23, 2013 Share Posted August 23, 2013 Can I create a PDF417 barcode as a graphic rule? I have it as a text rule, but I can't get the length and height the customer is looking for. I know I was able to do this as a QR barcode and that worked great. TIA Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted August 23, 2013 Share Posted August 23, 2013 There's currently no functionality built into FusionPro to create any other flavor of barcode other than QR as a graphic. It's theoretically possible to do the same thing that we do for QR barcodes; that is, parse the encoded barcode string, convert it to pixels for a graphic, and call CreateImageFromData. You could try doing that yourself, but it would be a lot of work. You might want to inquire about custom template-building work; someone in our Graphics department might be able to help you get the text barcode to meet the requirements. Quote Link to comment Share on other sites More sharing options...
dreimer Posted August 23, 2013 Author Share Posted August 23, 2013 Shoot, I was hoping that wasn't the answer. I assume this custom work has a price??? Quote Link to comment Share on other sites More sharing options...
dreimer Posted August 23, 2013 Author Share Posted August 23, 2013 (edited) So can I edit anything in this rule to change the font, font size, or leading size? return MakePDF417Barcode(Field("Barcode"), null, null, null, 0, 12, null); When I validate it returns this which doesn't even look like the "0" or the "12" are used: <f name="IDAutomationPDF417n3"><z newsize="10"><leading newsize="100">777777770707070007676524351546440076360652007551000775742764153144507773021633516661076765242417554400777777707000707007<br>777777770707070007717167651154754073730345531444210722502067605553207742073377005667077370747731567740777777707000707007<br>777777770707070007773730744356674070200472225611510746111662705500207610623343177322075717236671767440777777707000707007<br> Just wondering if anything can be changed or if all that comes from the Building Blocks or Builtins files? The "n3" in the font name is how many rows of the data it makes I believe, if I could get that to be "2" I may be good for the height. Edited August 23, 2013 by dreimer Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted August 23, 2013 Share Posted August 23, 2013 So can I edit anything in this rule to change the font, font size, or leading size? return MakePDF417Barcode(Field("Barcode"), null, null, null, 0, 12, null);When I validate it returns this which doesn't even look like the "0" or the "12" are used: <f name="IDAutomationPDF417n3"><z newsize="10"><leading newsize="100">777777770707070007676524351546440076360652007551000775742764153144507773021633516661076765242417554400777777707000707007<br>777777770707070007717167651154754073730345531444210722502067605553207742073377005667077370747731567740777777707000707007<br>777777770707070007773730744356674070200472225611510746111662705500207610623343177322075717236671767440777777707000707007<br>Just wondering if anything can be changed or if all that comes from the Building Blocks or Builtins files? The "n3" in the font name is how many rows of the data it makes I believe, if I could get that to be "2" I may be good for the height. Of course, you can change all of those parameters. But you're not putting the "12" in the right place to specify the point size. It looks like you're trying to use the parameters for the MakeQRBarcode function, but all the Make***Barcode functions have their own unique signatures (parameters). If you go into the Building Blocks dialog, on the Functions tab, expand the Barcode node, and double-click on MakePDF417Barcode, it inserts this signature: MakePDF417Barcode(DataToEncode, EcLevel, TotalColumns, TotalRows, Truncate, TextMode, ApplyTilde, PointSize, NoFontTag, Font)And if you go into the Building Blocks dialog, on the Objects tab, expand the Barcode node, and expand the PDF417Barcode node, you can see all the properties and their valid and default values. If you single-click on the PDF417Barcode node, the description text at the bottom says: For details, see: http://www.idautomation.com/fonts/pdf417/ From there, you can click on "Font FAQ", which takes you here: http://www.idautomation.com/barcode-faq/2d/pdf417/ There you can read explanations about what the various parameters do. So, you could set the point size like so: return MakePDF417Barcode(Field("Barcode"), 2, 3, 0, false, false, false, 12);However, I wouldn't do it that way at all. Instead, what I would do is use the PDF417Barcode object, from the Objects tab. Then you can specify whichever properties you want to set, and leave the other properties with their default values, without having to get ten parameters right in the MakePDF417Barcode function. So I would do this: var myBarcode = new PDF417Barcode(); myBarcode.pointSize = 12; return myBarcode.Make(Field("Barcode"));Note that, in that case, the syntax is exactly the same if you change the first line to create a QRBarcode, IntelligentMailBarcode, DataMatrixBarcode, or any other 2-D barcode object. Quote Link to comment Share on other sites More sharing options...
dreimer Posted August 23, 2013 Author Share Posted August 23, 2013 I did find it in the builtin and tried some things. Think I got it to work. Will look into your suggestion. Thanks! Quote Link to comment Share on other sites More sharing options...
dreimer Posted August 23, 2013 Author Share Posted August 23, 2013 Dan as always you came through. Your way works much better! Thank You Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.