Jump to content

sandigcustomprinters.com

Registered Users - Approved
  • Posts

    81
  • Joined

Everything posted by sandigcustomprinters.com

  1. I found this on the forum. var DM = new DataMatrixBarcode; DM.processTilde = false; DM.encodingMode = "ASCII"; DM.preferredFormat = 0; DM.pointSize = 6; return DM.Make(Field("2dtext")); adjusting the DM.pointSize reduces the font size. I think I'm all set. Thanks
  2. I have rule return MakeDataMatrixBarcode(Field("2dtext")); Using font IDAutomationDMatrix. The font size always validates as 10pt, regardless of the type size assigned to the variable field in FP Creator 9.2.31. I need to make it smaller size. How do I adjust the font size? 2D barcode 10pt.pdf
  3. From what I figured out, our indigo press cannot pull the stock drawers. And having it pull drawers based on data is more complicated. Fusion Pro has finishing options, under Manage Pages, that can give the direction for specific stock. I thought using an OnRecord Start rule to call the individual pages, and using Manage Pages to assign finishing option to those individual pages would work. But our indigo press cannot use the information even though Fusion Pro sends it, so I have no reason to continue trying to make this work. I am waiting for indigo to improve their functionality. Perhaps your device will do better. I have had past success on some of our copiers with static jobs. where page 1 is on Stock A and page 3 is always on Stock B. I do not have experience pulling the stock based on a data record, where pages could be on Stock A, B, C, or D - based on the data field. Good Luck! Sandi, Humble prepress person
  4. I do not know how to write the JDF or PPD file to specify the finishing options. Is there a reference or how-to regarding this? Or something you can help me with?
  5. I am wondering if Fusion Pro can send down variable data job and my HP indigo Production Pro rip would be able to read the data and pull from different stock drawers based on the data. Has anyone ever done somethig like this before?
  6. According to the rule, I believe the max scaling amount would be 2100. i.e. var thirdnameWidth = CopyfitLineWithMagnifyTag('<f name="Pluto Bold">' +'<z newsize=221>' +thirdname, 2100); if (TM.textWidth > 210000) // compare as hundredths of points
  7. In attached example, I applied text wrap to a frame, so copy will not overlap the logo. Problem is the copy does not always bottom align to the frame. Instead it sometimes adds an extra line space which seems to be related to the amount of copy and the position of it against the text wrap frame. I need to keep copy from overlapping the logo and maintain the bottom align. FP 8 seems to have trouble with maintaining the bottom align against the text wrap. Do you have any suggestions on how I can get the text wrap and bottom align to work? text wrap bottom align.pdf PR Business card layout2.pdf
  8. Thank you Dan. I appreciate you expertise. I adjusted the rule. I get the scaled size. I do not get the font to reduce size as needed. RULE_copyfit_3rdname_widthANDsize if (Field("Available third line") !="") { var thirdname = ToUpper(Field("Available third line")) var thirdnameWidth = CopyfitLineWithMagnifyTag('<f name="Pluto Bold">' + '<z newsize=221>' +thirdname, 2100); //The frame with is actually 1400. I do not want it to scale that much, so I made the frame widith in the rule 2100 TM = new FusionProTextMeasure; TM.CalculateTextExtent(thirdnameWidth); if (TM.textWidth > 210000) // compare as hundredths of points return CopyfitLineBasic(thirdnameWidth, "Pluto Bold", 221, 1400, 50, "fontSize"); else return thirdnameWidth; CopyfitbyLineMagnify.pdf
  9. Here is the 2nd function function CopyfitLineWithMagnifyTag(line, widthInPoints, AllowToExpand) { var tm = new FusionProTextMeasure; tm.CalculateTextExtent(line); if (tm.messages) ReportError("CopyfitMagnifyLine: " + tm.messages); if (tm.textWidth < widthInPoints*100 && !AllowToExpand) return line; var factor = Round(widthInPoints / tm.textWidth * 10000, 0) - 1; return "<magnify type=setwidth factor=" + factor + ">" + line + "</magnify>"; }
  10. Here are the two functions, and attached a FP 8.2.7 PDF file. see RULE_copyfit_3rdname_widthANDsize function CopyfitLineBasic(lineContent, font, defaultSize, maxWidth, minimumSize, copyfitBy) { var tm = new FusionProTextMeasure; tm.maxWidth = -1; var newsize, retcode; basetags = "<f name=\"" + font + "\">"; newsize = defaultSize; do { tags = basetags; if (copyfitBy == "fontSize") { tags += "<z "; } else if (copyfitBy == "fontWidth") { tags += '<setwidth "'; } tags += "newsize=" + newsize + ">" + lineContent; retcode = tm.CalculateTextExtent(tags); if (tm.textWidth > maxWidth * 100) newsize -= 0.1; } while (newsize > minimumSize && tm.textWidth > maxWidth*100 && retcode == 0); return tags; // + " " + tm.textWidth + " " + maxWidth*100; } CopyfitbyLineMagnifytest.zip
  11. I need to copyfit a line first by horizontally scaling it If it exceeds max scaling amount, then I need to reduce the font size. Copy needs to fit onto one line. There would be several lines of text in the frame, the copyfitting can only apply to specifc lines of text. So far, I've come up with this, but it does not work. It only horiz scales. var thirdname = ToUpper(Field("Available third line")) //apply horiz scaling to font at 2100. var thirdnameWidth = CopyfitLineWithMagnifyTag('<f name="Pluto Bold">' + '<z newsize=221>' +thirdname, 2100); //calculate the horizwidth of thirdnamewidth TM = new FusionProTextMeasure; TM.CalculateTextExtent(thirdnameWidth); //if width is greater than 2100, return horizscaled type and reduce font size to fit frame width of 1400 if (TM.textWidth > 2100) return CopyfitLineBasic(thirdnameWidth, "Pluto Bold", 221, 1400, 50, "fontSize"); else return thirdnameWidth;
  12. Smart quotes: In the attached FP table rule, I am trying to replace the quotes that may be typed or pasted in the store template to consistantly get smartquote marks on output. Using font Sentinel-SemiboldItalic.otf In the FP preview, the quotes or apostrophes do not appear correctly, causing the type to appear jumbled on top of itself. In the store, published template, I am getting too much space between the quote and the next character. For example, " The..." instead of "The..." How do I get the smartquote to appear correctly, without adding additional kerning between characters? Ampersands: In this same table rule, if a & is typed into the field, I see the amphersand when previewing in FP. however, when I preview the template in the store, The amphersands are not appearing at all. How do I get the amphersand to appear in the store? issuequotes.zip
  13. Dan, I use this copyfit line rule often. It works great, except if the users enters an ampersand, such as "Teacher & Mentor", the rule does not work. What can be done so that I can include amphersands in this copyfit line rule.
  14. Is it possible to have text fields pre-populate external data values based on the selection from separate drop down field? For example, in the form, if the user selects the Caledonia location from the drop down field, the text fields below: Name, Address and Phone etc, populate with the values for that location, based on an external data file. The user then may modify the text fields if needed. Dropdown prefills fields.pdf
  15. Sorry - but I am not understanding how to make this work. I can change the color of the frame with this in OnRecordStart: new FusionProColor("Brown", 0, 3, 5, 62); FindTextFrame("NameTitle").fillColorName = "Brown";
  16. If copy does not fit in the frame, I would like to change the color of the frame. I cannot figure out how to do it. In the attached file, I can change the frame color in the On Record Start, but do not know how/where to make the color change apply based on the copyfit. What do you suggest? fill frame red.zip
  17. Thank you Dan. I think I prefer the Vcard and have modified the code to this point. And will continue working from there. I will repost if I have further questions. Thanks again. var NameRuleOrField = "Name"; var CompanyRuleOrField = ""; var PhoneRuleOrField = "direct"; var CellRuleOrField = "cell"; var EmailRuleOrField = Rule("RULE_emailsuffix"); var WebsiteRuleOrField = ""; var AddressRuleOrField = ""; // vCard format // http://en.wikipedia.org/wiki/VCard // Note that support for vCard may be more limited than for MECARD, // and that vCard requires more data to be encoded, resulting in a denser barcode. var info = { N: RuleOrField(NameRuleOrField), "ORG;COMPANY": "Company Name", "TEL;WORK;VOICE": OptionalRuleOrField(PhoneRuleOrField).replace(/\D/g,''), "TEL;CELL;MOBILE": OptionalRuleOrField(CellRuleOrField).replace(/\D/g,''), EMAIL: EmailRuleOrField, "URL;WEB": "http://companywebsite.com", ADR: "2801 Oak Industrial Drive NE, Grand Rapids MI 49505", } var result = ["BEGIN:VCARD", "VERSION:2.1"]; for (var label in info) { if (info[label]) result.push(label + ":" + info[label]); } result.push("END:VCARD"); return MakeQRBarcodeGraphic(result.join(Chr(13) + Chr(10)));
  18. I've never done this before in FusionPro8 Typically I create Vcard's via online sources - I do not see the option to create Vcards in FP8. I see the helper rule for QR Contact Information - MeCard Problem is that not all the fields I need are included. And some of the information I need is static (not entered by a variable) I need the variables Name, Cell, Phone and Email I need the static information for website and address and fax I pasted the helper rule from FP8 and inserted some comments. var NameFieldOrRule = "Name"; var PhoneFieldOrRule = "direct"; var EmailFieldOrRule = "email"; var WebsiteFieldOrRule = ""; //HELP! I need to input static information here for website. website.com var AddressFieldOrRule = "";//HELP! I need to input static information here.for address var BirthdayFieldOrRule = ""; // dont want var NoteFieldOrRule = "";// dont want //HELP how do I include a cell phone number? //HELP how do I include a fax number? var PointSize = ""; // MECARD format // http://www.nttdocomo.co.jp/english/service/imode/make/content/barcode/function/application/addressbook // Also see: http://code.google.com/p/zxing/wiki/BarcodeContents var info = { N: FieldOrRule(NameFieldOrRule), TEL: OptionalFieldOrRule(PhoneFieldOrRule).replace(/\D/g,''), EMAIL: OptionalFieldOrRule(EmailFieldOrRule), URL: OptionalFieldOrRule(WebsiteFieldOrRule), ADR: OptionalFieldOrRule(AddressFieldOrRule), BDAY: OptionalFieldOrRule(BirthdayFieldOrRule), NOTE: OptionalFieldOrRule(NoteFieldOrRule), } var result = ""; for (var label in info) { if (!info[label]) continue; result += label; if (!label.match(/\:$/)) result += ":"; result += info[label]; result += FusionPro.inValidation ? '\r' : ';'; } if (FusionPro.inValidation) return result; var QR = new QRBarcode; QR.pointSize = Int(PointSize) || 10; return QR.Make("MECARD:" + result + ";");
  19. It seems that the array does not work in the manner I was trying to do. So, I eliminated it and wrote in the if statements to adjust the <br> position when variables have no value. attached. This will work for what I need. Thank you for the lesson on arrays.
  20. If the field value is "1 and 2|3|4", and "1" is empty, then, yes, it becomes "2<br>3 | 4" instead. or "Phone[0]<br>Phone[1] | Phone [2] | Phone[3]" Phone[3] should not appear because it would have no value. Not "<br>2|3|4" If they have only 2 phone fields used, it would appear "Phone[0]<br>Phone[1]" regardless of what fields are used.
  21. The rule does not realize that if a field is "", then the other numbers need to "move up" in the array position. See the attached example. Is this possible?
  22. I am trying to assign 4 possible phone numbers into variables so I can control the stacking order selected by the user. The user does not have to use all four numbers (direct, toll free, cell and fax). Only 3 numbers can fit on one line. The numbers will always list in teh same order. For example: direct | toll free | Cell Fax direct cell | fax tollfree | cell | fax etc. etc. I put in a start to an array, but it is not correct. Can you help me with the array? It needs to assign Phone1, Phone2, Phone3, Phone4 based on the phone fields populated by the user. var phonestack = ""; var Phone1 = ""; var Phone2 = ""; var Phone3 = ""; var Phone4 = ""; //create an array to apply phones to variable Phone placeholders var phoneArray = [Rule("RULE_directFormat"), Rule("RULE_tollfreeFormat"), Rule("RULE_cellFormat"), Rule("RULE_faxFormat")]; { for (i = 0; i < phoneArray.length; i++){ Phone = phoneArray; } } //now assign the variables to the stacking order if (Field("Phone position") == "1|2|3 and 4") { phonestack = AppendText(phonestack, " ", Phone1); phonestack = AppendText(phonestack, " | ", Phone2); phonestack = AppendText(phonestack, " | ", Phone3); phonestack = AppendText(phonestack, "<br>", Phone4); } if (Field("Phone position") == "1|2 and 3|4") { phonestack = AppendText(phonestack, " ", Phone1); phonestack = AppendText(phonestack, " | ", Phone2); phonestack = AppendText(phonestack, "<br>", Phone3); phonestack = AppendText(phonestack, " | ", Phone4); } if (Field("Phone position") == "1 and 2|3|4") { phonestack = AppendText(phonestack, " ", Phone1); phonestack = AppendText(phonestack, "<br>", Phone2); phonestack = AppendText(phonestack, " | ", Phone3); phonestack = AppendText(phonestack, " | ", Phone4); } return phonestack;
  23. I just don't know this stuff well enough and I don't know what to do. I put in your wonderful rule, and it does not seem to understand the text measure. It always uses frame("textblock") and does not use frame("textblocklong") ever. file attached.
×
×
  • Create New...