Jump to content

MarkJonesEMKT

Registered Users - Approved
  • Posts

    17
  • Joined

Converted

  • Location
    Virgina

Converted

  • Occupation
    Data Processing and IT Support

Converted

  • FusionPro Products
    Yes

Converted

  • Acrobat Version
    Acrobat X (10)

MarkJonesEMKT's Achievements

Apprentice

Apprentice (3/14)

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

Recent Badges

10

Reputation

  1. I have tried in many different ways to make it work using the Imposition tab of the Composition Settings dialogue and I have never managed to get it to work with an imposition. The closest I was ever able to get it cut off half of the cover sheet and replaced it with blank space. However I did manage to get this working by changing the order of my "if" statements. Solution: var stack = FusionPro.Composition.JobOptions["RecordsPerChunk"] / 4; var cover = false; //check first for repeat if(FusionPro.Composition.repeatRecordNumber == 2) { FusionPro.Composition.SetBodyPageUsage("Page1",true); FusionPro.Composition.SetBodyPageUsage("Page2",true); } //Insert cover and repeat if(cover = FusionPro.Composition.inputRecordNumber % stack == 1) { FusionPro.Composition.repeatRecordCount = 2; FusionPro.Composition.SetBodyPageUsage("SetSheet", true); FusionPro.Composition.SetBodyPageUsage("BSetSheet", true); } //No cover and no repeat if(FusionPro.Composition.repeatRecordNumber == 1 && cover == false) { FusionPro.Composition.SetBodyPageUsage("Page1",true); FusionPro.Composition.SetBodyPageUsage("Page2",true); }
  2. Hello All, So I have been having some issues with FP Imposer and adding cover sheets to the beginning of the output pdfs. I have this working perfectly without an imposition and at one point it was working with a 2up imposition, but now it is adding blank pages to the document. Here is what I am doing. var stack = FusionPro.Composition.JobOptions["RecordsPerChunk"] / 4; if(cover = FusionPro.Composition.inputRecordNumber % stack == 1) { FusionPro.Composition.repeatRecordCount = 2; FusionPro.Composition.SetBodyPageUsage("SetSheet", true); FusionPro.Composition.SetBodyPageUsage("BSetSheet", true); } if((FusionPro.Composition.repeatRecordNumber == 1 && cover == false) || FusionPro.Composition.repeatRecordCount == 2) { FusionPro.Composition.SetBodyPageUsage("Page1",true); FusionPro.Composition.SetBodyPageUsage("Page2",true); } I am trying to output this 4up duplex on a sheet. The cover sheet will print with a back and repeat the record count. Then the record will repeat and print the front and back of the main page. This works perfectly, except that the imposition is repeating the cover page (without printing that it is to the log) after 2 records and then it is adding 2 blank pages every page. What might be wrong with this? Thanks for your time!
  3. The output that I want is a set sheet that will have a design and the stack number (i.e 1, 2, etc) on top of the corresponding stacks. Say I am using stacks of 300 on a 2 up imposition. The first sheet left side will say stack 1, the right side will say stack 2 and the left side will contain records 1-300 in a stack and the rightside will contain records 301-600. The program that I have now currently does this just fine. I was wondering if it would be possible to not have to hard code the number of stacks that I will be using. So if I wanted to run a 4up imposition, I would not have to change the numbers to 4up in the code. Because my code currently determines if a new stack is beginning, it would be extremely simple if I was able to know how many records where in each stack without having foreknowledge of the imposition. So if somebody were to increase the stack size or change it from a 2 up imposition to a 4 or 6 up imposition, I wouldn't have to modify any code to get the set sheets in the right place.
  4. Hello All, I am trying to create a bunch of templates that I can have others at my company pull in and not have to edit any actual code. I don't actually know if this is possible or not, but what I would like to do is be able to read the imposition stack size from OnRecordStart. I have been having some issues getting the imposition settings to work with a slipsheet the way I want. We impose in stacks first and then across or wherever else. I know that I can get the chunk size from the FP Globals and I have been using that to name my files, but I was hoping that I could get the stack size for the imposition as well. Here is what I have so far for a 2 Up imposition. In OnRecordCount: var chunkSize = FusionPro.Composition.JobOptions["RecordsPerChunk"]; var stack= chunkSize/2 ; if(cover = FusionPro.Composition.inputRecordNumber % stack == 1) FusionPro.Composition.repeatRecordCount = 2; var page = (cover && FusionPro.Composition.repeatRecordNumber == 1) ? 'SetSheet' : 'Page1'; FusionPro.Composition.SetBodyPageUsage(page,true); }and in a rule that will label which stack is which var stackSize = FusionPro.Composition.JobOptions["RecordsPerChunk"] / 2; var beginstack = FusionPro.Composition.inputRecordNumber; var setnumb = 0; setnumb = Math.ceil(beginstack/stackSize); return "Set # " + setnumb; What I would like to be able to do is replace the variable stack with the count of the imposition. That way I wouldn't have to tailor the rule based on the composition and I could simply create 1 template for each size of paper rather than a template for the size of paper and number of stacks that will be printed. Is there a way to do this?
  5. I had seen this, that is one of the things I do by default when I create a rule because almost everything needs it. I think something was going on with the server, because when I restarted it began working. Thanks for the help!
  6. When I try either of these options, I am getting the following result justified however the original paragraph settings had it.
  7. Hello All, I want to be able to change how a line or paragraph is being justified based on the value of a specific field. I'm pretty new to both FP and JavaScript so I'm still figuring out syntax for these things. Here is what I am trying to do. if(Field("Name") != "") return "Centered Text" + Field("Name"); return "Left Justified Text" + Field("Name"); I thought I may be able to use the "<span>" tags and I looked through the reference guide, but I didn't see anything on this specifically. I really appreciate any help offered.
  8. The boolflag is an external "global variable," I used it so that my "output2" naming convention would only get called once, and would not get called when I was using the "output1" naming convention. I could have used "chunkSize", but then I would have had to check another flag anyway which is why I chose not to handle it like that. This is actually what I thought too, however "FusionPro.Composition.inputFileName" returns null while "FusionPro.inputFileName" returns the correct naming convention. I actually used the building blocks to double check and it added it as "FusionPro.inputFileName" Thank you for this! I was actually looking into how I could accomplish this.
  9. This is what I had been doing. I wanted to make sure that the PDF name was not dependent on the job title so I had two different "name" statements that I separated based on the existence of "RecordsPerChunk". var jobtitle = "Job_#_"; var chunkSize = FusionPro.Composition.JobOptions["RecordsPerChunk"]; if(FusionPro.Composition.inputRecordNumber % chunkSize == 1) { var beginfile = FusionPro.Composition.inputRecordNumber; var outputName1 = jobtitle + Field("Filename") + "_" + beginfile + "_" + (beginfile + (chunkSize-1)); FusionPro.Composition.OpenNewOutputFile(outputName1 + "." + FusionPro.Composition.outputFormatExtension); if(boolflag == 0) { boolflag = 1; } } if(boolflag == 0) { var InputType = ""; if (FusionPro.inputFileName.indexOf("_ALL") > -1) InputType = "ALL"; if (FusionPro.inputFileName.indexOf("_LS") > -1) InputType = "LS"; var outputName2 = jobtitle + Field("Filename") + "_" + InputType; FusionPro.Composition.OpenNewOutputFile(outputName2 + "." + FusionPro.Composition.outputFormatExtension); boolflag = 1; } If the file was supposed to split on multiple outputs I wanted to receive the file name Job_#_FILENAME_firstRecord_lastRecord.pdf and if it wasn't I wanted the file name to be Job_#_FILENAME_InputFile.pdf What was happening last night is when I went to compose with the multiple file selection checked and a set chunk size, it was outputting the first PDF with the second filename option, and the rest with the default JobTitle-Output#.pdf However, when I composed this morning, it worked like it was supposed to. I never figured out why it wasn't working last night, but I thought my code looked right. It is working now though, thank you for your help!
  10. Correction, I thought that this was working, but it was not naming the files correctly. For some reason it isn't pulling the "RecordsPerChunk" information. I can get everything else to work, but it acts like that variable isn't there (Even though it will compile when I am using it.)
  11. I was going to try something like this, but I am trying to prepare templates for people who won't be able to code and I want them to be able to use the CFG and not realize what is going on in the background. Thanks for the help!
  12. Thank you so much, I tested this out and it accomplished exactly what I needed. I had seen those fields but they weren't filled because I was looking at them with "preview template."
  13. Hey All, I am still familiarizing myself with all of the capabilities of FusionPro as well as the FP global variables. I am trying to create a rule that will allow me to check the composition settings and check whether or not the "Output to Multiple Files" box is checked. If it is I want to know how many records are output to each file. Here is what I have so far. begin_data=Field("Presort Se"); records_per_file = 450; // Ideally this would be a rule that checked if it needed multiple files and set this number to the record count per file records_per_file=parseInt(begin_data) + records_per_file - 1; // Conversion to string end_data= records_per_file.toString(); // Creation of name new_name="Field("Filename") + "_" + begin_data + "_" + end_data + ".pdf"; // CHANGE JOB# NAME AND SECTION // Sets name of PDF FusionPro.Composition.outputFileName= new_name; return 0; I looked through all of the building blocks and I saw an object called "Job Options" I wrote a program that showed me all of the fields in that object, but I didn't see anything helpful in there. Is there an object that I am missing? Thanks for any help
  14. Thank you so much! The CopyFit rule did exactly what I needed it to do. I appreciate the help!
  15. Basically I want to have to text boxes of the same size but with different length paragraphs and I want to make the paragraphs look like they are the same length by adjusting word and leading space ratios for each text box individually.
×
×
  • Create New...