Jump to content

lasdoog

Registered Users - Approved
  • Posts

    13
  • Joined

Converted

  • FusionPro Products
    No

lasdoog's Achievements

Apprentice

Apprentice (3/14)

  • Collaborator Rare
  • Dedicated Rare
  • First Post Rare
  • Week One Done
  • One Month Later

Recent Badges

10

Reputation

  1. Here's a technique that Ste Pennell posted a while back OnJobStart: FusionPro.Composition.composeAllRecords = false; FusionPro.Composition.endRecordNumber = 4; // Number of cards you have OnRecordStart: FusionPro.Composition.repeatRecordCount = 500; // Quantity of each card var card = CreateResource("path/to/resource/YOURPDFNAME.pdf",'graphic',true); card.countpages; card.pagenumber = CurrentRecordNumber(); FindGraphicFrame("YOURGRAPHICFRAMENAME").SetGraphic(card);
  2. Sure! Here is a small dummy sample of what the data looks like. Thanks for your help! Dummy_Data.txt
  3. Hello, I'm using a script from the forum to feed values into an array and then return only the fields that contain an address. The problem is I don't want to return the field if the address is a PO Box. I've tried a number of things, but can't quit get there... Here's my script where it stands now: //Create array to deal with multiple options var listOptions = []; //declare array var outlaw = /^(?:Post(?:al)? (?:Office )?|P[. ]?O\.? )?Box(?:\s\d+)?$/i; for (i=1;i<=3;i++) { //setup loop to cycle through optional fields (must match number of fields) var option = Field("Address"+i); if ((option != "") && (option != outlaw)) { //if the optional field is not blank and doesn't contain "PO Box" then add to array listOptions.push(option); } } return listOptions.join(", "); //list the array values separated by comma + space Any advice is greatly appreciated!
  4. Hello, I'm wondering if there is a way to use FusionPro.Composition.repeatRecordCount, but return a different field when repeating. Such as this in OnRecordStart: FusionPro.Composition.repeatRecordCount = 2; if (Field("FULLNAME2") != " ") FusionPro.Composition.repeatRecordCount = 4; The above repeats the record 4 times, but I need the 3rd and 4th (or 5th and 6th, etc) to return (Field("FULLNAME2") instead of always returning (Field("FULLNAME") Is there a way to do this, or am I barking up the wrong tree? Thanks for any advice!
  5. I don't see that you're calling the background PDF... Create a graphic rule like so: return Resource("PDF") //file name of resource Then point the graphic frame to this rule
  6. Hi All, I'm trying to compose a job that has 15 different pages and each page has it's own quantity. I assumed the best way to do this is to set each page to Unused Body page and then call the page and qty in an OnRecordStart rule I should also add that each record is a store, each with 15 different pages. I've been cobbling a rule, but I'm not quite there. I know this must be possible. I've attached what I have so far. Thanks for any help you can supply! StoreSigns_11x7.zip
  7. Hi, I'm wondering if there is a way to use the a Callback rule to generate a sequence of numbers that has gaps in it. Example: 1-40 50-90 100-140 150-190 200-240 250-290, etc. I have a customer who wants numbering that does not contain 41-49 or 91-99 in the number sequence. It seems like you should be able to do this using Callback rule with javascript. Using trim on the last 9 of every group of 50? This probably be 3,000 to 5,000 numbers. Any suggestions are much appreciated!
  8. Hello, I"m new to working with tables in FusionPro and I have a problem I can't resolve. Part of the job I'm working on has a table with anywhere from 1 to 8 possible rows, then 4 rows of totals flush right. There is also formatted text below this that must move with the table size (1 to 8 rows). I've been able to handle the first 8 rows by altering a SteP script from the forum which surpresses a row based on a field, but I can't get past these 8 rows. Here's where my script is at: var fields = [[Field("Plan/Item 1 Name"), Field("Plan/Item 1 QTY"), Field("Plan/Item 1 Sec"), Field("Plan/Item 1 Row"), Field("Plan/Item 1 Block"), "$"+ Field("Plan/Item 1 Per"), "$"+ Field("Plan/Item 1 Total")], [Field("Plan/Item 2 Name"), Field("Plan/Item 2 QTY"), Field("Plan/Item 2 Sec"), Field("Plan/Item 2 Row"), Field("Plan/Item 2 Block"), "$"+ Field("Plan/Item 2 Per"), "$"+ Field("Plan/Item 2 Total")], [Field("Plan/Item 3 Name"), Field("Plan/Item 3 QTY"), Field("Plan/Item 3 Sec"), Field("Plan/Item 3 Row"), Field("Plan/Item 3 Block"), "$"+ Field("Plan/Item 3 Per"), "$"+ Field("Plan/Item 3 Total")], [Field("Plan/Item 4 Name"), Field("Plan/Item 4 QTY"), Field("Plan/Item 4 Sec"), Field("Plan/Item 4 Row"), Field("Plan/Item 4 Block"), "$"+ Field("Plan/Item 4 Per"), "$"+ Field("Plan/Item 4 Total")], [Field("Plan/Item 5 Name"), Field("Plan/Item 5 QTY"), Field("Plan/Item 5 Sec"), Field("Plan/Item 5 Row"), Field("Plan/Item 5 Block"), "$"+ Field("Plan/Item 5 Per"), "$"+ Field("Plan/Item 5 Total")], [Field("Plan/Item 6 Name"), Field("Plan/Item 6 QTY"), Field("Plan/Item 6 Sec"), Field("Plan/Item 6 Row"), Field("Plan/Item 6 Block"), "$"+ Field("Plan/Item 6 Per"), "$"+ Field("Plan/Item 6 Total")], [Field("Plan/Item 7 Name"), Field("Plan/Item 7 QTY"), Field("Plan/Item 7 Sec"), Field("Plan/Item 7 Row"), Field("Plan/Item 7 Block"), "$"+ Field("Plan/Item 7 Per"), "$"+ Field("Plan/Item 7 Total")], [Field("Plan/Item 8 Name"), Field("Plan/Item 8 QTY"), Field("Plan/Item 8 Sec"), Field("Plan/Item 8 Row"), Field("Plan/Item 8 Block"), "$"+ Field("Plan/Item 8 Per"), "$"+ Field("Plan/Item 8 Total")], ] var myTable = new FPTable; myTable.AddColumns(19400, 4300, 4500, 4500, 8200, 7200, 6000); myTable.AddRows(9); for (var i=0; i<9; i++) { if (fields[2] != "NULL") { //myTable.Rows.Cells[0].SetBorders("Thin","Black","Top","Bottom","Right","Left"); myTable.Rows.CopyCells(0,1,2,3,4,5,6); myTable.Rows.Cells[0].HAlign = "Left"; myTable.Rows.SetContents(fields[0], fields[1], fields[2], fields[3], fields[4], fields[5], fields[6]); } } return myTable.MakeTags(); _____________________________________________________________ I've made a formatted text resource and added it after the table, but it still sees the table as 8 rows even if they aren't visible. Please see attached screenshot for clarity Any suggestions are greatly appreciated! ___________________________________________ MAC OS 10.13.6, FusionPro 10.1.11, Acrobat 11.0.23
  9. Thanks Step! Sorry for not understanding sooner.
  10. Hello, I've found a few things in the forum about this, but no clear answer. I'm trying to mark the piece when the Tray Number changes on a postcard mailing so Bindery can quickly see where the next tray begins. I've tried using this in OnRecordStart: if (FieldChanged("TRAYNUMBER")) FusionPro.Composition.SetBodyPageUsage("Break", true); This does not work when used with FPImposer. I get messages like this in the log file: "Composing record #12, input record 918 Sheet #5, record #4 The number of pages in this record does not match the imposition signature: 2 blank pages will be added. A body page does not have master page assigned." If I compose the file without imposition it works, BUT marks the second piece of the new tray (!?) Any advice will be greatly appreciated! Thanks! FusionPro VDP Creator 9.2.31 Mac OS 10.10.5
×
×
  • Create New...