Jump to content

ThePorge

Members
  • Posts

    89
  • Joined

Everything posted by ThePorge

  1. Yep, it was a font issue. I forgot to reload the fonts under the Server menu...duh!
  2. Need a QR code in a text box. Used the Created QR text template. I'm not getting a QR code in my text box. Am I not understanding this correctly? http://download.gsghome.com/QR_ScreenShot.png
  3. Thanks. The Try and Catch is working for me perfectly.
  4. I get the error "uncaught exception: Error: In Field(), no field named Order Number" I'm trying to get the first record of the data to output if the input data file ends with ".txt" otherwise to output all the records which will come as an xls file. The xls file will have the data column header "Order Number" //Set page usage FusionPro.Composition.SetBodyPageUsage("1Title", false); FusionPro.Composition.SetBodyPageUsage("2Title", false); if(Field("Division")==""){ FusionPro.Composition.SetBodyPageUsage("1Title", true); }else FusionPro.Composition.SetBodyPageUsage("2Title", true); //Pull the job number & order number from the input data file name //Name needs to have the Job Number first e.g. 123456_86912.1.MyDataFile.txt //FusionPro.Composition.forcePreprocessing = true; set in onJobStart var jobNumber = GetFileName(PrimaryInputFile()); //Works in Preview, Validation & Composition mode unlike the old version that works in Composition only var orderNumber = GetFileName(PrimaryInputFile()); var interNumber = GetFileName(PrimaryInputFile()), myTest; jobNumber = jobNumber.match(/^\d+/); interNumber = interNumber.match(/\_[\d\.]+/); if (orderNumber.match(/\.txt/) == ".txt" && FusionPro.Composition.currentOutputFileNumber == 1){ FusionPro.Composition.startRecordNumber = 1; FusionPro.Composition.endRecordNumber = 1; FusionPro.Composition.OpenNewOutputFile(jobNumber + interNumber + Field("Name") + "." + FusionPro.Composition.outputFormatExtension); var myTest = "Fail"; } else { orderNumber = Field("Order Number"); } if (myTest != "Fail" && FieldChanged("Name")) { FusionPro.Composition.startRecordNumber = 1; FusionPro.Composition.endRecordNumber = FusionPro.Composition.totalRecordCount; FusionPro.Composition.OpenNewOutputFile(jobNumber + "_" + orderNumber + "." + Field("Name") + "." + FusionPro.Composition.outputFormatExtension); } Yeah, I know it's kinda sloppy and I attempt to clean everything up once I get it working....
  5. I get data files that sometimes have and ID. If this ID exists it will be what I need to use. However if no ID is in the data file it won't even have the field for the ID data. I then have to generate an ID based on the input file name. Is there a way to handle a field name not being present in the data file without throwing an error? I get these data files all the time and I have to link up to the new file and output a pdf. Right now it looks like the only solution is to put the field name in the data, but that's a hassle with the frequency of doing this.
  6. Well I managed to get this error, but mine was caused by a Jedi-Mind-Trick. Just be careful if you use the Auto-complete rather than finding the function in the Building Blocks window and using the “Insert” button. While in the OnJobStart rule I just started typing “chunk….” in the code window & the rest of the function popped up, or so I thought. What I actually got was “chunksBreakStacks” that I amended “equals true” too (should have been FusionPro.Composition.chunksBreakStacks). I hit the verify button and it all checked good…Got this same error trying to output 1000 records at a time in an Infinite Stack 2 up impo. These are the type of errors that are very hard for me to find as I'm thinking my code is right. I think it took me a good hour to figure out what I had done wrong.
  7. I haven't adjusted the trim boxes. Tried the nudge and it didn't help. Is there anything to the Tutorials for the charts other than example files? I'm not following some of the info or where it's coming from in the Tutorial files eg. In the "Statement-OneFile-SimpleTable.pdf" Tutorial in the "Transaction Table" rule where/how is the Data Source "Multi-line records" coming from? Am I missing a following along vs just examples for these Tutorials?
  8. Attaching a screen shot of type that runs outside of the text box on the left. It is also outputting the pdf this way. Any idea what I need to do to fix this?
  9. Update fix: Read thru the thread about the Local fonts in the Acrobate Prefs...Made no difference for this issue. HOWEVER!, I did poke a bit more and in the FP Prefs there is an option for "Embed fonts for Preview". That fixed it! Just wanted to go ahead and post this as I didn't see it anywhere else and it was a bit hidden. Font Issues: My problem is I have an Adobe font active (Fieldwork Family, "Fieldwork Light Italic" specifically). When I look for this font in the FP Variable Text Editor the fonts name seems to have changed to "Fieldwork 03 Hum Light". When I select this font everything looks fine in the FP Variable Text Editor window. However, when I preview the job the font is no longer Italic. FYI, I do know where Adobe buries these fonts in the Library and have tried to pull the font and make it active using Font Book, but that didn't seem to help. Has anybody else been running across this issue? Mac: 11.6.4 FP 12.1.2 Acrobate: 2021.001.20142
  10. Definitely don't care for having to scroll on the left side for the different options. It's too easy to pass up what you're looking for. I thought the old layout with the different windows that sectioned off the options was much easier to work thru...
  11. Am I the only one that hates the new Imposer interface. I had kept using the old Imposer until upgrading my OS to Big Sur and now I'm stuck with the huge "Candy & Bubble Gum" icons in the newer version. Yuk!....and I've tried to warm up to it, but it is just Pee-yew and clunky!!! Sorry, just had to vent
  12. I'm getting this message when trying to output a job... "Failed to load font Museo-500" The font displays correctly using Preview Fusion Pro Font Usage reports the font is OK. I've stopped Suitcase by stopping the Type Core Engine. I've made Museo-500 active using Font Book and Verified the fonts. Rebooted. Same error and the font is not correct in the final output pdf. Fusion Pro 12.1.0 iMac (Retina 5K, 27-inch, 2017) Mojave 10.14.6
  13. I keep getting this error even tho my text isn't truncated. I've put together a sample file with the log and output so you can see what I'm getting that I'll add to this post. Acrobat v2021.001.20142 Architecture: x86_64 Build: 21.1.20142.424128 AGM: 4.30.106 CoolType: 5.14.5 JP2K: 1.2.3.48161 FusionPro v11.2.1 Hardware Overview: Model Name: iMac Model Identifier: iMac18,3 Processor Name: Intel Core i7 Processor Speed: 4.2 GHz Number of Processors: 1 Total Number of Cores: 4 L2 Cache (per Core): 256 KB L3 Cache: 8 MB Hyper-Threading Technology: Enabled Memory: 16 GB Boot ROM Version: 429.140.8.0.0 SMC Version (system): 2.41f1 System Software Overview: System Version: macOS 10.14.6 (18G9323) Kernel Version: Darwin 18.7.0 Boot Volume: Macintosh HD Boot Mode: Normal Computer Name: mac5 User Name: Mac5 (mac5) Secure Virtual Memory: Enabled System Integrity Protection: Enabled Time since boot: 2 days 7:32 Test.zip
  14. Don't feel lonely mjlongo....I didn't know that was there either.
  15. Agreed. I thought I was loosing my mind for awhile there. Has anybody tried to re-install the old version. I find that I found it much easier to use than this new version.
  16. Just the text won't fit errors even tho it does.
  17. Dan, I've just starting using this function in a rule for a address block. Works so much faster than the other method. The rule works splendidly. However I'm getting copy fit errors when I compose my pdf even tho the output is correct. Is this the normal behavior? var Var1 = Field("FirstName") + " " +Field("LastName"); var Var2 = Field("Company"); var Var3 = Field("Address"); var Var4 = Field("Address2"); var Var5 = Field("City") + ", " + Field("State") + " " + Field("Zip"); var Var6; 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>"; } Var6 = CopyfitLineWithMagnifyTag('<f name="Percanthen">' + '<z newsize=30>' + Var1, 234, false) + "<p>" + CopyfitLineWithMagnifyTag('<f name="Percanthen">' + '<z newsize=30>' + Var2, 234, false) + "<p>" + CopyfitLineWithMagnifyTag('<f name="Percanthen">' + '<z newsize=30>' + Var3, 234, false) + "<p>" + CopyfitLineWithMagnifyTag('<f name="Percanthen">' + '<z newsize=30>' + Var4, 234, false) + "<p>" + CopyfitLineWithMagnifyTag('<f name="Percanthen">' + '<z newsize=30>' + Var5, 234, false); return Var6; FP 11.2.1 Acrobat Architecture: x86_64 Build: 20.13.20074.411690 AGM: 4.30.104 CoolType: 5.14.5 JP2K: 1.2.2.46820
  18. Thank you sir....working great.
  19. Overflow page Text is truncated. I have a javascript rule written that returns non-formatted text based off a supplied number. In this result the number given is 555. The script returns groups of 100 up to the given qty. Each group is separated by a newline Code: var finalCount = Field("Qty");//Keeps the final record count being printed by groups var myCount = finalCount;//Will be used to determine the number of groups (100ea) needed for qty printing var myIndex1 = 1;//Lowside number of every output group range var myIndex2 = 100;//Highside number of every output group range var myAnswer = [];//Array to hold the collected groups myCount = myCount/100;//breaks records to be printed by 100 myCount = Math.ceil(myCount);//always rounds up 100 group count for (i = 0; i < myCount; i++) { if (myCount == 1) { myAnswer.push("1 thru " + finalCount); break; } if (myCount == i + 1) { myAnswer.push(myIndex1 + " thru " + finalCount); break; } myAnswer.push(myIndex1 + " thru " + myIndex2); myIndex1 = myIndex1 + 100; myIndex2 = myIndex2 + 100; } return myAnswer.join("\n"); Result: This result is being passed to a text block that will show 1 line but is set to overflow the copy to a new page and continue in this fashion until all lines go onto a page. The problem I'm running into is the 2nd to last page is truncated and that result moves to the last overflow and the last line doesn't show at all. I've also included the test file I was working on this in the attached zip. I'm not 100% certain if this is the code or some other flaw in my setup that I'm overlooking. Any help? Tks George Archive.zip
  20. My Setup: I have a datafile that has 16 items. The count for each item varies between 200 and 2000. Each item prints on a label that is 16up as a Cut & Stack. (16 print files when done). I have the Chunk breaks stack set to true in the On Job Start Rule. In the On Record start rule I have This works fine....However if I declare the Variable in the first if statement "var myCount = 0" I will get a file 1, but the rest are NaN. Can I get a clue as to why this is happening? Tks
×
×
  • Create New...