Jump to content

Dmiller35

Members
  • Posts

    27
  • Joined

Everything posted by Dmiller35

  1. Ah, okay. That's what I tried originally but I had left out the plus symbols between the tags. That worked great, thanks.
  2. Sorry, I just realized I wasn't super specific with the issue I'm having in the first post. My issue is that when I use the markup tags, the result is "emailarray[0]@domain.com" instead of displaying the correct name. If I take the markup tags off, it displays everything correctly, just not in bold. I think the tag is making it so that it's not seeing the variable name correctly.
  3. I have some business cards that require either a different font or a different color for a portion of a field. For example, the email address has the name in Eurostile Bold and the domain Eurostile Regular. I can't seem to split the email address and apply the Bold tag. Here is the code I'm currently trying to use: var emailarray = Field("Email Address").split("@"); return '<b>emailarray[0]</b>' + "@" + emailarray[1]; This would work in splitting the address but it doesn't work once I add the bold tag. I've also got phone number fields where the area code needs to be in a pantone color. I haven't tried that one yet but felt like I was going to run into the same problem. Anyone have any ideas?
  4. Of course! Thanks. I knew it had to be something simple I was overlooking.
  5. I'm having an issue getting the smallcap tag to work. I am including it in a rule so that when an extension is present on a phone #, it puts in the word "EXT" in smallcaps. However, I haven't been able to get it to work. Here is what I've been trying: if (Left(phoneNum, 12)=="555-555-5555") return "555.555.TEXT" + '<smallcap> EXT </smallcap>'+(Right(phoneNum, 3)); return FormatPhoneNumber(Trim(RuleOrField(PhoneVar)), delim, Format.match(/[\(\)]/), spaceAfterCloseParend); Basically, their office number spells out their name so I'm switching the last 4 digits to text instead of numbers. (I've removed the real numbers and letters) I don't use tagged markup a lot so I'm never sure if I'm plugging it in correctly. Could it be a font issue? Are there some fonts that don't want to work with that tag? I'm using DIN 2014.
  6. Thanks Jon, But that won't that just define the data source? I won't necessarily combine the sources together, right?
  7. Thanks Thomas, I'll try that and see if it works. Dan: I should have mentioned that the colors are being changed by our designers. They often don't know what their color needs will be so they just want the ability to change it. They could need to match a customer's color on one project but on another it could need to be white.
  8. Our design department occasionally needs to create QR codes for certain print and web customers. They want an easier way to generate a vector QR code than using some website like QR Monkey. I've tried doing it in FP but I run into issues where I can't fill the text frame consistently and almost need to change my font size for each code. When generating the codes, some will create larger barcodes based on the information in the link. I tried using copyfit and while I can get it to enlarge some of them, it doesn't do anything to shrink the font. Is this because copyfit is reading the font size in the text box and not the rule? I feel that the graphic rule really works best but unfortunately I need vector files so that our designers can change the colors if need be. Is there any way to get this to work better or should I find another solution?
  9. Thanks Dan. That's what I needed. I have a couple of .xml templates that I've customized and 1 rule I add to the RuleTemplate.js. Just couldn't find the files.
  10. I recently upgraded to a new M1 iMac running Ventura and I cannot find the JS and XML files to add my own functions like I had in the past. Did the path change?
  11. Thanks Dan, I had tried that before but couldn't get it to work. I realized that I had the code wrong. I was trying to split my field SCKNDPCKNM so that it was only seeing the Tray # as the field contains both the Tray and Pack #'s. Once I split those in my data file it worked great. if (FieldChanged("TRAYNUM")) FusionPro.Composition.OpenNewOutputFile(Field("TRAYNUM")+".pdf");
  12. We recently added an inline cutter to our iX3200 and want to split the output based on mailing trays. I know that this is possible under normal output but can we still accomplish this using imposition as well? I've had success creating new stacks every time the tray number changes but I can't seem to get it to work to create a new output file. Here's my code to create the stacks. var SelectedField = "SCKNDPCKNM"; var trayNum = (Left(Field("SCKNDPCKNM"), 3)) if (FieldChanged(Left(Field("SCKNDPCKNM"), 3))) FusionPro.Composition.StartNewStack(); } Is there a way to generate a new file every time there is a new stack?
  13. I realized the issue with the quotes and fixed that but the other things you mentioned might have still been causing it not to work. After fixing those, it now does not give me an error, but it also doesn't give me the returned function. It will only display "Presets.LBLMUM ()" and tells me that it does not return a value. Am I just not using this functionality correctly? I just want an easy way to repeat code that I use a lot.
  14. I've read in the user guide that I can supposedly add a .js file to the Plugins folder so that I can have my most common functions easily available. However, I've never been able to get it to work. I write the file just as the guide says, but it seems to have an issue with Line 1. Here is what I'm trying to use. Whenever I pull up the building blocks, it tells me "line 1: SyntaxError: illegal character:" Presets = new Object; Presets.LBLNUM = function (str) { return Int(Field(\“LBLNMBR\”)); } Presets.LBLNUM.description = “Remove Leading Zeroes from Label Number” Presets.LBLNUM.syntax = "LBLNUM(<string>)"; I've found in other places that sometimes the user guides have typos or are missing something in order to get the code to work correctly. Is that the case here or does this function just not work?
  15. I don't come across this often but I've had a few jobs lately where the customer supplies us with an excel data file that contains multiple "sheets". Is there a way for FP to process all of the sheets at the same time? Right now, I'm pulling up each sheet, outputting the file, then switching the data source. Just wanted to know if there was a less time consuming way to handle this. If that is possible, then is there a way to output the files based on the "sheets"? For example, I'm currently working on some name badges. I have 3 different lots of badges so I'll need to have 3 different pdf files. Can I program a rule for OnNewOutputFile that will split the file based on the "sheet" in the data file?
  16. I have a document that has a limited amount of space and one of the fields is an email address. I can do a copyfit, but in order to keep everything on one line, the font has to go from 9pt down to 5 on some records. (The client's domain name is stupidly long). Is there a way to splt the email at the "@" so that when it's longer that 32 characters, it drops the "@unecessarilylongdomain.com" down to a second line? Every record has the same domain name so is there a way to trim the right 25 characters? This way jonathan.doe@unecessarilylongdomain.com would become jonathan.doe @unecessarilylongdomain.com
  17. Ok thanks. I do have other files where I've done it the old way so I guess I'll go back to that for now.
  18. I'm working on a job with a PDF element in the background. When I compose the job without imposition turned on, everything is fine. If I turn imposition on, it get "No value associated to graphic copyhole. <PDF> in record 1, etc...". Does anyone have an idea as to why this is happening? We do a fair amount of jobs like this where it's better to have a "template" file where I can just copy in the background PDF and I'm not setting up a new file every time. Hopefully this error is just something I'm doing wrong on my part and not an issue with FP. YC_Response Card_fpsetup.zip
  19. I'm currently working on contestant pages for a book that will have 2 contestants per page and there are left and right layouts. I know it would be better to have 4 body pages and impose each 2up, but design set up the files already as 2 up. I've attached a sample to show what I mean. Is there a way to have the records flow so that record #1 is top L, #2 is bottom L, #3 is top R, #4 is bottom R, etc? Each half-page layout will consist of multiple text fields and 3 graphic resources. i just don't know how to tell each to pull from a different record. Also, I figured at the very least I could add a field to the database telling it left or right but wasn't sure if there was a better option. MSC_ContestantPage_sample.pdf
  20. Okay, so that doesn't work. To be clear, Each finished 8.5x11 sheet will have a barcode on it. Currently, the file I'm working with is a 10 page letter, printed duplex to be 5 sheets. I already have a field in the barcode that will call for the record number. Here's what I've come up with and it appears to work. var TotSheets = FormatNumber( "00", 5); var CurrSheet = FormatNumber( "00", ((FusionPro.Composition.currentPageNumber+1)/2) ); The total sheet count will only change if I use this code on another job so I just made it fixed. For the current sheet, I just decided to pull the current page number add 1 and then divide by 2 so get the actual sheet. So page 3 will display as sheet 2, page 5 displays as sheet 3, and so on. Is this my best solution or is there something I'm missing?
  21. On more complex jobs, we need to use a 27 digit barcode. In the code I need to specify which sheets are being pulled and the total quantity. for example, "0103" will be on sheet 1 of 3, "0203" is on sheet 2. Currently I've just been making a separate rule for each sheet, but is there a way to format it so it can pull the sheet number and total number of sheets? I've looked at other threads but couldn't find a solution that worked. *Edit. I did find one that was close but there was some confusing info there. This was suggested to be used. var TotSheets = FormatNumber( "00", FusionPro.Composition.impositionTotalSheets ); var CurrSheet = FormatNumber( "00", FusionPro.Composition.impositionSheetNumber ); The OP from that post wasn't using imposition but I am. Will this work for me? Our sheets will print 2up on 11x17 and be cut down to 8.5x11. Just want to make sure the codes will come out correctly when cut down.
  22. Thanks Dan. Yeah I think that's much simpler. But for the Suffix, if I need to add a Comma before, is there a way to do that?
  23. That works. Thanks! One question, does the append text have to be in Global or can this all be done within one rule?
  24. I'm still new to js but I'm starting to figure it out. I know that I could accomplish what I need by creating multiple rules but I'm trying to figure out how to do this within one rule. I often have to create an address block and have multiple fields for the name. i.e. Prefix, First, Middle, Last, Suffix. I would like to combine all of those into one field but some of them are empty a fair amount. Can someone tell me how to accomplish this? I'm pretty sure I could do it by creating some super complex else-if statement but I feel like there's probably an easier way.
×
×
  • Create New...