Jump to content

TroyM68

Registered Users - Approved
  • Posts

    36
  • Joined

Everything posted by TroyM68

  1. I've got an interesting situation. I really thought I would find something similar on the forum, but I wasn't able to find anything. I have an 8-page (4-sheets duplexed) court document that will have variable data on the front sides. It's really just a 1-sheet (2-pages duplexed) job that is replicated 3 more times. The first four pages are printed on 2-sided 2-part carbonless paper and will be sent to the court for signatures. 1-part for the court, 1-part for the defendant. The other pages are all going to be mailed out and will be printed on plain paper. One 2-sided sheet to the plaintiff and one 2-sided sheet to the defendant. The customer is wanting this to basically print to three different stacks. Stack 1 is the first 4 pages which will be printed on carbonless paper. Bottom of page one is marked "Court", bottom of page 3 is marked "Plaintiff". Stack 2 is pages 5-6 being mailed to the Defendant. Bottom of page 5 is marked "Defendant". Stack 3 is pages 7-8 being mailed to the Plaintiff. Bottom of page 7 is marked "Plaintiff" All of the sheets contain the same data except the bottom of the pages are marked for who they are for. Sorry for how long this is....I'm just trying to get as much info as possible into the original post. So if I have a datafile with 80 court records I will have: 160 Carbonless sheets in stack 1 80 Plain paper sheets in stack 2 80 Plain paper sheets in stack 3 How can I get the FusionPro to compose the datafile multiple times? Thanks in advance everyone!
  2. I'm trying to create separate output files based on a field value. Actually...Part of a field value. They only way I've been able to get this to work is by creating an additional field in the datafile. I am trying to use the first character in the Field "endorse" so I created this variable. var tray =(Field("endorse").charAt(0)); Here is where it obviously doesn't work because "tray" is a var not a Field. if (FieldChanged("tray")) { FusionPro.Composition.OpenNewOutputFile(("Trays-") + tray) + ".pdf" }; Created a new Field called "Trays" and sure enough I get exactly what I want...several different output files ready to print. Problem is...I need to be able to do this Without creating the new Field "Trays" in the datafile. This one works fine but I needed to make a new Field in the datafile to get it to work. var tray =(Field("endorse").charAt(0)); if (FieldChanged("Trays")) { FusionPro.Composition.OpenNewOutputFile(("Trays-") + tray) + ".pdf" }; Any help would be much appreciated!!! Thanks FYI I'm using FP 11.2.1 with Acrobat DC 2020.013 on Mac OS 10.7.2 Catalina.
  3. Please disregard the additional questions, I was able to figure them out. I changed the return line in the javascript to return FormatNumber("0000", form + exam); this provided the padding I was looking for...then I opened my eyes when looking at the callback rules and found the Repeat Record Rule! Everything is working perfectly now! Thank You!
  4. Thomas, this seems to work great for the existing 56 page document. I changed it a little to be more flexible with the number of forms a professor uses and the number of pages in the exam. var form = Math.ceil(FusionPro.Composition.currentPageNumber / Field('Pages per Form')); var exam = (FusionPro.Composition.outputRecordNumber -1) * Field('Number of Forms'); return form + exam; I think now the only things I need to figure out now is how to pad the exam number with zeros and how to get this to compose a certain number of exams. For example, if there are 120 students, then it composes 120 Exams (Exam # 0001 thru Exam # 0120. Any ideas? Thanks!
  5. Dan, I don't think I can post the actual documents for this one because it is live test data for a University. I will try to make something and post it if needed.
  6. This may not be so complex for some of you, but I am having a hard time with it. Here is what I am trying to do. I need some help with numbering a document. This document contains 4 versions of a college exam. Each exam is 14 pages within the PDF, so the total number of pages in this template is 56 pages. On the first page of each exam is a space for the exam number, below that is the Test Form Number, which is static. Something like this: Page 1 Exam #: 0001 Test Form 1 Page 15 Exam #: 0002 Test Form 2 Page 29 Exam #: 0003 Test Form 3 Page 43 Exam #: 0004 Test Form 4 Then it cycles the Test Form numbers, but the exam numbering continues to escalate. Page 1 Exam #: 0005 Test Form 1 Page 15 Exam #: 0006 Test Form 2 Page 29 Exam #: 0007 Test Form 3 Page 43 Exam #: 0008 Test Form 4 I was thinking about creating a data file that would include the number of exams the professor would like to create. That number would equal the variable “Exam #”. I know I can create a sequential numbering rule...but, how would I get that rule to work across the multiple Test Form Numbers (in this example 4 different test forms). Does anyone have any ideas on how to accomplish this? Please let me know, thanks!
  7. Sorry for the late reply. This customer's project got postponed and we are just now starting to move forward on it again. I will try your recommendations, thank you!
  8. Issue: I can't get a variable graphics frame to position behind a layer in the PDF document. My customer has some artwork in a PDF that overlays part of a photo. They would like that photo to be variable. No problem. I created a variable graphics frame and a rule to insert a picture based on a data field. Works perfect. Problem is...No matter what I do, the picture rides on top of the PDF artwork layer. Is there any way to get the FusionPro frame to position itself behind the PDF layer?
  9. Just an FYI... I went into the Text Frame 'Paragraph Settings' and turned "Do not break on copyfit", and poof...all my problems went away! Hopefully this helps anyone that may be having a similar issue.... Got to remember, don't look over the easy stuff!!!
  10. I am having an issue where a last name field is being broken at the hyphen between the two parts of their last name. I have a rule in a business card that basically states: if the typed characters, in a text frame, fit on one line, then use the specified font (Open Sans) and size (9) specified. if the text exceed the spacing available on that line, then use a condensed font (Open Sans Condensed) size (9) and adjust the magnification of the text so that it will fit on one line. if the adjusted text still exceeds the space allowed, show an error message. Here is my problem: When a person has a long first and last name with a hyphen, it puts the first name field on the top line (full sized) and drops the hyphenated last name to a second line (full sized) This doesn't happen if I put the optional Middle Initial into the data file...OR...when I put a credential in the data file. This odd break only happens when the last name has a hyphen...AND...both the Middle Initial and Credential fields are left blank. If anyone has any ideas how I could address this, I would be most appreciative! Thanks in advance! Troy Here is the rule: //Field names var Creds = Field('Credentials') var FirstMILast = Field('First Name') + ' ' + Rule('Rule - Middle Initial') + Field('Last Name'); // FirstMILast = First MI. Last var v_field = [ FirstMILast, Creds ].filter(String); // Creates the Variable "v_field" = FirstName MI. LastName, Creds //Font var font_name = "Open Sans"; //change this to the correct font //Font Size var v_size = "9"; //change this to the correct font size //Frame Width in inches var v_frame = "1.548"; //change this to the width of the actual text frame var var1_n = '<f name="' + font_name + '">'; var var1_s = '<z newsize="' + v_size + '">'; var var2 = v_field.join(', '); //combine fields var var3 = v_frame*72; //get frame width in points var var4 = var1_n + var1_s + var2; var tm = new FusionProTextMeasure; tm.CalculateTextExtent(var4); var tmwidth = tm.textWidth; if (tmwidth < var3*100){return var4;}//if no scaling needed return without magnify if (tmwidth > var3*100){return Rule('Condensed Font Rule');} //if it can't fit on 1 line without scaling use condensed font rule
  11. I've never played with the global functions. Please see below. These are the fields of the Secondary Data File: GL Number, GL Name, Department, Street, City, State, Zip, Location I've decided that the only thing I need, to populate everything the way I want it, is the GL Name field. Do I have the syntax correct? function ExField(field) { var ex = new ExternalDataFileEx('/path/to/secondaryData.csv', ','); var field = ['GL Name']; var cursor = ex.SortBy.apply(ex, field); var rec = cursor.FindRecords.apply(cursor, fields.map(Field)).shift() || -1; return ex.GetFieldValue(rec, field); } I appreciate your help on this....Also, to understand "Global Functions" better... Is this the "Java Functions" at the bottom of the Rule Editor window? Troy
  12. Thanks Step, I am running FP v. 10.0.3
  13. Thanks Dan, this customer is using WebCRD. With that in mind...I believe there would have to be modifications made on the WebCRD side (ability to limit the # of departments by the group selection). So, I know I can do this by a simple rule like: if ((Field("Affiliation") == "***") && (Field("Department") == "YYY")) { return "<span>" + RawText("9876 S. Street Name Rd. + <br> + AnyCity, ST 34567") + "</span>"; } return ""; But, I believe this would be easier by using the 2nd data file which includes 8 fields (1 affiliation field, 3 departmental fields and 4 address fields). My question is ~ How would I write a rule that would go to the second data source look for the affiliation field and the department field, then return the address associated with that specific combination.
  14. I've read a few posts on the board with regard to the use of multiple data files... I guess I have several questions and I'm looking for some best practices. I have a customer that is trying to take as much human error out of variable data inside a business card. Best definition would be a set of static information (complete address) based on what they choose in two fields ("Affiliated Group" and "Department") I know this could be done in a rule, but the thought of typing out all the possible combinations in a rule makes my stomach hurt. In a perfect world I would like for the end user to select their group affiliation, from a drop-down list, and depending what they choose would provide a list of department options (from a drop-down list). When they choose their department... a lookup into data source #2 will select the correct physical address and populate the "Street Address", "City", "State" & "Zip Code" Fields currently located in data source #1. If a sublist according to the group affiliation selection cannot be made... then it is fine for the end user to scroll thru all the departments a choose their department. Then of course those two fields would be used to grab the address information from the 2nd data source. I hope this isn't confusing. My question is.... Can this be done.... and How would I do it. Thanks in advance.... please let me know if any more information is needed! Troy
  15. Ran into a glitch... This rule works great until the credentials field is left blank (it's not a required field). When the credentials field is blank... the return is: First Last, (It returns a comma) When the credentials are present the return is: First Last, Credential (exactly as it should be) How would I modify the rule to address this issue? Only use a "," if the credentials field is not empty? Thanks again!
  16. Hello all, I am trying to create a rule that will do two things if possible. This is really an email rule. I would like to format the email address to capitalize the first letter of both the first and last name... second, I would like the rule to search for a specific character in the email field, for example a hyphen (-), and then capitalize the first letter after the hyphen. I thought this would have been discussed, but I haven't been able to find a thread mentioning this. Please let me know if this is possible. Example: AnY.character-CAP@help.com to: Any.Character-Cap@help.com Thank you!
  17. David, That was it. As soon as I turned clipping off, everything worked perfectly! Gentlemen, Thank you all for your help on this one... You guys are the best!
  18. I was however able to get the registration bar to show up in the background template prior to composing the files.... Was able to do this two ways. 1 by creating a graphics frame and a rule to insert the bar. I also removed that graphics frame and insert the bar b y placing the image in acrobat. BUT... either way I do it... when I compose the file, the registration bar does not show up on the composed pdf. Troy
  19. Dan, I'm going to try to upload the sample file I created. Hope it works. Thanks Shared the collected zip on dropbox... https://www.dropbox.com/s/vn64ruruqd3pxbk/Sample%20Business%20Card%20v1.zip?dl=0
  20. Hey Dan, Thanks for the response. I played with this over the weekend and wasn't able to get it do do much of anything. When I try to add a picture to the background template, the whole thing is transparent. It doesn't seem like what I am trying to do is hard... It's just my inexperience with it all. I've gone thru the darn manual and really can't find anything to help me... All I am trying to do is place a 1 inch x 1/4 inch black bar centered at the top of a 12x18 sheet of paper with a 1/2 inch margin... Am I just brain dead?
  21. I like that Template. Can you tell me how I would create my template and get it into FP Imposer?
  22. I have a customer that is currently using a Fiery Hot Folder to add a "Control Bar" to the top center edge of the sheet of paper. The cutter has a camera that reads the control bar which lets it know exactly where to start cutting... My question is... Is there any way to add this control bar to a file before, during or after imposition using FP Imposer??? Fiery uses an eps file to overlay onto the imposed file prior to printing. Let me know if anyone has dealt with this... Thanks Troy
×
×
  • Create New...