Jump to content

rpaterick

Registered Users - Approved
  • Posts

    432
  • Joined

Everything posted by rpaterick

  1. I would like to add another field to the naming output from another column header. Is this possible for the Output to multiple files Rule? FusionPro.Composition.outputFileName = Field("YOUR_FIELD_NAME") + ".pdf" Thanks
  2. I have the following 2 rules: if (Field("version") == "ped") { FusionPro.Composition.SetBodyPageUsage("1",true); FusionPro.Composition.SetBodyPageUsage("2",true); } if (Field("version") == "alz") { FusionPro.Composition.SetBodyPageUsage("1",true); FusionPro.Composition.SetBodyPageUsage("2",true); } if (Field("version") == "gen") { FusionPro.Composition.SetBodyPageUsage("1",true); FusionPro.Composition.SetBodyPageUsage("3",true); } } else return ""; for (var field in FusionPro.Fields) FusionPro.Composition.AddVariable(field, ToUpper(Field(field))); I'm trying to get the pages to call out properly plus put all of the fields to UPPER-CASE. Not sure how to properly do it. I tried to just add the upper-case callout but it didn't work after previewing an exported .pdf. Thanks for any direction
  3. We are trying to do some QC for our bindery dept. and this came-up at a meeting. Inserting an image that would show when the TRAY break comes-up. We have a field called Tray Number in our data that shows how many mail pieces go in the tray(most everyone knows this here). I would like to have FusionPro look at that field and insert an image during the 1st record of each tray number break then continue on with the mailing. Every mailer we do would have to have this "extra" image/page added to our digital workflow. Thanks!
  4. Interesting. I think I'm onto something now..... I'll get back to you. Thanks Thomas!
  5. Thanks Thomas. I got an error when trying to just validate the HotelOffer though. Function doesn't return a value. Any ideas? suggestions? Thanks!
  6. I'm not grasping the external data setup. I've tried the sample file and still can't figure how it works. Attached is the actual external data file(should be formatted correctly). Master Tier is the main lookup from the mail file. MT is the column header from the mail file that points to Master Tier in extern. 1st. On Record Start //Link to the external data file. //The '\t' is used to indicate TAB delimited data in this external data file externalDF = new ExternalDataFileEx('Formatted.txt', '\t'); if(externalDF.valid != true) { Print('Failed to link to the external data file in OnJobStart'); 2nd. Then to create the individual fields from the external data file(very basic), I get lost in the Rules. How would you create the HotelOffer from the external data file? If I can get that to work, I can then create the rest. I'm just not getting my current code to "validate" the HotelOffer. Also, does the mailing file and the external data file need to be in the same root as the Fusion Pro Template? Thanks for any direction on this. external proof file.txt
  7. This should work. return Str(Field("phone").replace(/(\d{2})(?!$)/g,"$& "));
  8. Unfortunately I'm no code expert but I see "replace" has a space after the "a." I know one thing with code, if it isn't spelled correctly, it won't work.
  9. No problem. Just remember, if your record has "Iii" you will need to add that to the code to replace it with "III"(How your customer wants it) and other scenarios as well.
  10. Here is an example of how this code could work. You would have to add all scenarios to meet your customer's needs, as Dan states. var Name = Field("Full Name"); Name = Name.replace("Sr","SR").replace("Jr","JR").replace("iii","III").replace("ii","II"); return Name;
  11. I would create a "Proof" data file from your list out of excel. Pretty easy to do and saves A LOT of time. Would show all the unique levels and give you the 20 each as well. So you would have your "final" data file and then your "proof" data file. each one you link to for proofing and then running the job. Let me know if you are interested in knowing what the steps are in excel?
  12. David, I just ran a test here on my machine and see the same thing that you are experiencing. I outputted out as a .ps file and distilled using DISTILLER. This fixed the issue. Do you have any other output capabilities to test? .vdx, .vipp, .vps, etc...? FusionPro is converting the file somehow in it's .pdf settings output.
  13. Can you reprocess with the Full Resolution to about 20 records(different or same image is fine), no compression? I want to see if FP is limiting its output when a low record count is outputted.
  14. I was going to check your ouput on that and did notice that it was set on the screen preview instead of full. Have you tried Full resolution? Un-check COMPRESS OUTPUT as well. see if that does anything.
  15. If the piece is just one-color(1/1 or 1/0, not 4/1), you should be able to have the RIP output at a One-Color Black. It will print the piece in grayscale. If you have any Prep software(hot folder) you could have the .pdfs be monitored and Ripped to your specifications(impose, color output, etc..) I just took a .tiff file out of .ps that is pure grayscale. Put it just into FusionPro, composed a .pdf and it showed only 1-color in the Output Preview. How are the images being created? Do you have a sample of the images that you can post, the fusionpro file, and the output file?
  16. What would be easier for the shop? - One file that goes to the press and RIPS. Then hand bindery sorts it out based on SEQUENIAL NUMBERING somewhere on the piece(MASTER SEQ). - Or you sending over the 432 versions already done and then gets sent out for finishing? Dan, something like this, shouldn't a data file be supplied with the callout of the artwork(front, back, and sequencing columns)? Would it be easier to have just one FP file with a placeholder for the front and back, 432 unique fronts all labeled different(1.pdf,2.pdf,3.pdf etc...) and then the data file would also tell you what back(1_back.pdf,2_back.pdf,3_back.pdf) to have as well. Only thing that would be nice is to tell FP how to do the composition breaks based on the front artwork.
  17. Dan or someone else could easily clean this up and to account for casing issues that your data may have. If the data is lowercase al for example, it will just return al and not Alabama. Otherwise it works. Oh yeah, Dan, why is it between District of Columbia and Florida does it produce another record during testing of all states? if (Field ("state") == "AL") return "Alabama"; if (Field("state") == "AK") return "Alaska"; if (Field("state") == "AZ") return "Arizona"; if (Field("state") == "AR") return "Arkansas"; if (Field("state") == "CA") return "California"; if (Field("state") == "CO") return "Colorado"; if (Field("state") == "CT") return "Connecticut"; if (Field("state") == "DE") return "District of Columbia"; if (Field("state") == "FL") return "Florida"; if (Field("state") == "GA") return "Georgia"; if (Field("state") == "HI") return "Hawaii"; if (Field("state") == "ID") return "Idaho"; if (Field("state") == "IL") return "Illinois"; if (Field("state") == "IN") return "Indiana"; if (Field("state") == "IA") return "Iowa"; if (Field("state") == "KS") return "Kansas"; if (Field("state") == "KY") return "Kentucky"; if (Field("state") == "LA") return "Louisiana"; if (Field("state") == "ME") return "Maine"; if (Field("state") == "MD") return "Maryland"; if (Field("state") == "MA") return "Massachusetts"; if (Field("state") == "MI") return "Michigan"; if (Field("state") == "MN") return "Minnesota"; if (Field("state") == "MS") return "Mississippi"; if (Field("state") == "MO") return "Missouri"; if (Field("state") == "MT") return "Montana"; if (Field("state") == "NE") return "Nebraska"; if (Field("state") == "NV") return "Nevada"; if (Field("state") == "NH") return "New Hamspire"; if (Field("state") == "NJ") return "New Jersey"; if (Field("state") == "NM") return "New Mexico"; if (Field("state") == "NY") return "New York"; if (Field("state") == "NC") return "North Carolina"; if (Field("state") == "ND") return "North Dakota"; if (Field("state") == "OH") return "Ohio"; if (Field("state") == "OK") return "Oklahoma"; if (Field("state") == "OR") return "Oregon"; if (Field("state") == "PA") return "Pennsylvania"; if (Field("state") == "RI") return "Rhode Island"; if (Field("state") == "SC") return "South Carolina"; if (Field("state") == "SD") return "South Dakota"; if (Field("state") == "TN") return "Tennessee"; if (Field("state") == "TX") return "Texas"; if (Field("state") == "UT") return "Utah"; if (Field("state") == "VT") return "Vermont"; if (Field("state") == "VA") return "Virginia"; if (Field("state") == "WA") return "Washington"; if (Field("state") == "WV") return "West Virginia"; if (Field("state") == "WI") return "Wisconsin"; if (Field("state") == "WY") return "Wyoming"; else return Field("state");
  18. OFF TOPIC: Your other info right above their name in the address block "1 1 1" could go to the RIGHT of the endorsement line. You could separate them by an asterisk also. Comes in handy when you are tight on space for the address block.
  19. when you get to the fonts folder on the c:drive. File/Install New Font/search for font/select/OK. are you on a mac or pc desktop workstation? how is your work-flow setup?
  20. ahh, gotcha. Yeah, I would think that would be stretching it a bit to have FusionPro prompt you to enter in the date prior to composing. It would be nice if the customer just put the date in the data file, back to the "perfect world."
  21. I just have this as a regular rule. return FormatDate(Today(), "lm d, yyyy"); Returns: February 15, 2010
  22. It will work for just that symbol in your data file. If you have multiple symbols throughout the run, the code will have to adjusted to allow multiple symbols. I'm not sure on how to do multiple symbols at this point. Also, you may want to delete the "." and "numbers" to be safe.
×
×
  • Create New...