Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > Barcodes

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 15th, 2022, 06:46 AM
bb60 bb60 is offline
Forum n00b
 
Join Date: Nov 2013
Location: Milan, Italy
Posts: 4
Default Poste Italiane Rectangural Datamatrix

I have to build by FP Creator a DM for Poste Italiane that requires the following:
Error Correction: ECC 200 (Reed-Solomon)
Format: Rectangular, 16 x 48 cells
X Dimension: 0,508 mm
Dimensions (no quiet-zone):2 cells per side (H x L): 8,128 mm x 24,384 mm;
Dimensions (with quiet-zone): 2 celle per lato (H x L): 10,160 mm x 26,416 mm;
Pixel/Cell: 4 (200 dpi)
This has to be built by using 72 alphanumeric chars. I still do not have the input file, so I created a 72 chars txt...

I simply created a rule like this (see also zip attached):
var FieldOrRuleToEncode = "barcode";
var EncodingMode = "C40";
var PreferredFormat = "29";
var PointSize = StringToNumber("10 pt");
var Font = "IDAutomationDMatrix";
var NoFontTag = false;
var ProcessTilde = false;

var DataToEncode = FieldOrRule(FieldOrRuleToEncode);
return MakeDataMatrixBarcode(DataToEncode, ProcessTilde,
EncodingMode, PreferredFormat,
PointSize, NoFontTag, Font);

And I got a readable SQUARE DM. I guess the PreferredFormat 29 is correct for the rectangular DM, but I got it square: no clue about ECC 200...
Any Help? Thank you Maurizio
Attached Files
File Type: zip DM.zip (59.6 KB, 3 views)
Reply With Quote
  #2  
Old June 16th, 2022, 03:04 PM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,640
Default Re: Poste Italiane Rectangural Datamatrix

The issue is that there's too much data (and the wrong kind of data) for a 16x48 barcode.

Your sample data is a mix of digits, upper-case letters, and lower-case letters. The IDAutomation spec says that the C40 encoding mode is "used to encode data that primarily consists of numeric and upper case characters", and that TEXT mode is for numbers and lower-case letters.

It also says that the capacity for format 29 (16x48) is 72 alphanumeric characters, but the letters have to all be upper- or lower-case, depending on the encoding mode.

And, in fact, if I convert the rule to JavaScript and add this line:
Code:
DataToEncode = ToUpper(DataToEncode);
Then the barcode does appear as 16 x 48.

With the original data, it's too much to encode as 16x48, so it uses another mode, something like 32x32, instead.

Keep in mind that the format you're specifying is a preferred format, i.e. a minimum size, and that the barcode can get larger than that preferred size as necessary to encode the data.

Regarding the ECC200 error correction, that's always used by DataMatrix barcodes, at least with our encoder.
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});
Reply With Quote
  #3  
Old June 17th, 2022, 01:19 AM
bb60 bb60 is offline
Forum n00b
 
Join Date: Nov 2013
Location: Milan, Italy
Posts: 4
Default Re: Poste Italiane Rectangural Datamatrix

Thank you Dan.
I verified that customer will use numbers and uppercase letters so I will be able to obtain 16x48 DM's . I guess that I will have to play with pointsize to obtain the DM dimensions I specified above... Do you agree?
Thank you Ciao Maurizio
Reply With Quote
  #4  
Old June 22nd, 2022, 10:00 AM
Dan Korn's Avatar
Dan Korn Dan Korn is offline
FusionPro Senior Engineer / Forum Moderator
 
Join Date: Aug 2008
Location: Chicago, IL
Posts: 4,640
Default Re: Poste Italiane Rectangural Datamatrix

Quote:
Originally Posted by bb60 View Post
Thank you Dan.
I verified that customer will use numbers and uppercase letters so I will be able to obtain 16x48 DM's . I guess that I will have to play with pointsize to obtain the DM dimensions I specified above... Do you agree?
Thank you Ciao Maurizio
Yes, though you can calculate it. The way the text-based barcodes work, you specify the point size, and each "letter" of the encoded barcode is output as a glyph (character) in the barcode font, in this case the IDAutomationDMatrix font. Each glyph in the font represents four dots (pixels) in the barcode, so each dot will be one-fourth of the point size. So if you want the total height of 16 pixels, which is four lines of characters in the font, to be 8.128 mm, which is 0.32 inches, or 23 points, then we can just divide that 23 points by the four lines of text, to give us a point size of 5.75 points.
__________________
Dan Korn
FusionPro Developer / JavaScript Guru / Forum Moderator
PTI Marketing Technologies | Printable | MarcomCentral
LinkedIn

I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com.

Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs.

This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data.

Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages.

Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance.

Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support.

How To Ask Questions The Smart Way

The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript.

Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5.

return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)});

Last edited by Dan Korn; June 22nd, 2022 at 03:58 PM.. Reason: Fixed height calculcation
Reply With Quote
Reply

Tags
datamatrix, rectangular

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.