Jump to content

JeremyT

Registered Users - Approved
  • Posts

    88
  • Joined

Converted

  • Location
    Middleton, WI

Converted

  • FusionPro Products
    Yes

Converted

  • FusionPro VDP software version
    10.0.16

Converted

  • OS
    Mac OS 10.11.6

Converted

  • Acrobat Version
    Acrobat DC

JeremyT's Achievements

Enthusiast

Enthusiast (6/14)

  • First Post Rare
  • Collaborator Rare
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

10

Reputation

  1. I am trying to get FusionPro on the Mac to create a new folder to place output PDFs in. I've used a similar set up with FusionPro on a PC and FusionPro will create a new folder to output into. Here is what I have in OnRecordStart var BranchNumberFormatted = FormatNumber('000', Field("BR #")); FusionPro.Composition.outputFileFullPathName = "//Volumes/PCCustomers/A/Branch Files/" + BranchNumberFormatted + "/" + outputName; In the job I have a new branch #581. I would like FusionPro to create a folder named "581" in the "Branch Files" folder. Any suggestions? Thanks.
  2. I hadn't considered using the FP Imposer. I'm trying to simplify this job so using FP Imposer won't work. Ideally I'd like to do this all in one step within FusionPro.
  3. New year, additional job requirements. So this job is for making calendar imprints. Most branches have a single address, but some have multiple addresses. FusionPro looks at my data file and chooses which template page to use depending on how many addresses. Then outputs a pdf for that branch that is labelled and put in a folder. This part of the job is for proofing, it is a smaller page size that shows the imprint in the imprint area. I need to have another page that is the "imposed" part. It takes the smaller page size pdf created above and positions it on a larger page. I need to have this be its own pdf when completed. So I need to get 2 pdfs out of this job. 1. a smaller page size for proofing 2. a larger page size for printing. What do I need to add to get the imposed pdf? Code in OnRecord Start. addresses = []; // Global array of addresses var pg = 0; // Count of pages for (var i in FusionPro.Fields) { var key = Int(addressMap.FindRecord('BR #', Field(i))); if (/IB\d+/.test(i) && (key+1)) addresses[pg++] = key; } FusionPro.Composition.composeThisRecord = !!pg; FusionPro.Composition.SetBodyPageUsage(pg + "Address", true);Code in OnNewOutputFile var outputName = Field("Branchkey") + "-AB Imprint 2017." + FusionPro.Composition.outputFormatExtension; FusionPro.Composition.outputFileFullPathName = "//Volumes/Imprints/" + outputName; Print("Changing to output file: " + outputName);}
  4. It appears that I failed to look at the simplest fix-enlarge the text box. Enlarging the text box worked. Thanks for your help!
  5. I am trying to get Copyfit and prevent widows on a variable data text box that is a maximum of 2 lines. I have a rule written that prevents a single word from ending up on the second line of a text box. [font=Calibri,sans-serif][size=2][color=black]return TaggedTextFromRaw(Field("CU Name")).replace(/(.*)(\s)(.+)$/, "$1 $3"); [/color][/size][/font] I turn CopyFit on the text box to automatically reduce text to fit in the box on 2 lines. How do I get CopyFit to work while preventing the second line from having only 1 word?
  6. Dan, Format Category of the cell is "Custom". Type is "[$-10409]mm/dd/yyy" I've attached a screen shot. If I change the format in Excel to "Date", type "3/14/01", it shows up as 42424 in FusionPro for 02/24/16. Thanks.
  7. I added the code that Step suggested and got the date formatted correctly. Thanks!
  8. Except for choosing correct font for each field, I was able to get this table set up correctly using the following code: var sq = CreateResource('Yellow Square.pdf','graphic'); // Square graphic var r = [ [Field("0EmailHeading"), Field("0EmailBody")], [Field("0WeblinkHeading"), Field("0WeblinkBody")], [Field("0AllMailHeading"), Field("0AllMailBody")], [Field("0POSHeading"), Field("0POSBody")], [Field("0OnsiteOppHeading"), Field("0OnsiteOppBody")], [Field("0LDPAutoHeading"), Field("0LDPAutoBody")], [Field("0COMHeading"), Field("0COMBody")], [Field("0StateNatHeading"), Field("0StateNatBody")] ]; // Array to hold paragraphs // Filter out empty paragraphs and splice the first 4 r = r.filter(function(s){ return s[0] && s[1];}).splice(0,4); var table = new FPTable(); table.AddColumns(3500, 50400); // Set your column widths here for (var i in r) table.AddRow().SetContents(sq.content, r[i].join('<br>')) return table.MakeTags();Thanks again for the help! Last question-how do I get Headlines a different font?
  9. Sorry about that, I wasn't sure how much information was needed. I've added the fields to the array. I deleted the line r.push([Field('Headline' + i), Field('Body' + i)]); because it gave me "Error: In Field(), no field named Headline1". And the fields were added to the array earlier. Then I get the error "TypeError: r.join is not a function" from this row: table.AddRow().SetContents(sq.content, r[i].join('<br>')); If I adjust to table.AddRow().SetContents(sq.content, [r].join('<br>')); the rule will validate. Once I preview I only get the boxes in the first column, nothing is produced in 2nd column. Also, I get 4 boxes when I should only have 2. Do the headline fields have to be added to a separate array than the body fields? Or what are the next steps? Thanks, Jeremy
  10. Step, Thanks again for your help! I was unsure of the best direction to go with this part of the job. Looking at the data further, the headline and body fields have different names for each paragraph. So, Headline1 and Body 1, etc won't work. These are the field names for the first 3 paragraphs: 0EmailHeading, 0EmailBody, 0WebHeading, 0WebBody, 0POSHeading, 0POSBody. How do I get all those different fields into the array? Thanks, Jeremy
  11. I am working on a job where I need to have only the first 4 populated paragraphs be used. There is a maximum total of 8 paragraphs. Each paragraphs is comprised of Headline text and Body text. For instance if I have 5 populated paragraphs I want only paragraphs 1-4. If I have paragraphs 1, 2, 6, 7, 8 I want paragraphs 1, 2, 6, 7 but not 8. Of course, some times paragraphs only 1, 2, 6 are populated. How do I set this up? To make this more difficult each field will have a yellow box in front of the paragraph. Can the yellow boxes and text be adjusted together? Or do I need separate rules for boxes and text? I am attaching an image that shows what I am looking to do.
  12. Myriad Pro-It This is exactly what I needed! Thanks!
  13. Step, Thanks again for your help. I used the code you suggested and all works as needed on the Mac. I switch to a Windows 8 machine to compose so that the Helvetica font will embed. When I switch to Windows 8, I am having problems with Myriad Pro Italic font. I enter "MyriadPro-It" instead of "Helvetica" in the font measure function. It's not working correctly-column width is wider than longest line of text. In my very brief experience with measuring text width that means that I don't have the correct name in the code. I copied the font name from fonts.ini but that doesn't help either. How do I find the correct name for Myriad Pro Italic so that it composes correctly? Thanks, Jeremy Thanks, Jeremy
  14. This is exactly what I wanted to do! I used second set of code you posted. It's exactly what I needed! Thanks Step! Jeremy
  15. I am trying to adjust where the address is centered under a logo. The problem is that if either line of text is wider than the logo then I'd like to have the widest line start at the same x coordinate as the logo (left justified under logo). Then the shortest line would be centered under the widest line. I've attached a pdf of 3 examples. The top example shows what address block looks like centered under logo-all the text is narrower than logo. Middle example shows what I'd like to happen if the street address line is the longest. Bottom example shows what I'd like to happen if the city, state zip line is the longest. Is the best route to adjust this add a center tab and then adjust tab position based on text line width? Or, can I adjust the width of the text frame based on longest line of text? Thanks, Jeremy Jeremys Copy Shop.pdf
×
×
  • Create New...