Jump to content

merski007

Registered Users - Approved
  • Posts

    27
  • Joined

Posts posted by merski007

  1. Does anyone know how to grab the OS timestamp for an input file? We have a library of input files that are regularly updated and need to add the file timestamp to the output pdf.

     

    All the research I've done shows how to do this on a browser. I also didn't find any built-in Resource functions that could help with this.

  2. Hello,

     

    We are getting this error in our compose log when using the .fillColorName("") with an empty string:

     

    Named color "" not found in color dictionary.

     

    Here are the instructions from the building blocks:

    The name of the frame's fill color, or an empty string for no fill. Can be set in OnRecordStart.

     

    Can we ignore this error?

     

    Thanks,

    Mark

  3. Hello,

     

    Maybe a rule like this would work:

     

    var name= '';

     

    if(firstName.length === 1){

    name = firstName + '. ' + lastName;

    // depending on the data, you might need to strip away any character that's not a letter, and then add the period to the string.

    }

    else{

    name = firstName;

    }

     

    return name;

  4. Hello, how many rows are they populating on the excel sheet? If they are only required to provide a single data value for each field, you could just use the form fields to gather the data.

     

    If that doesn't work, you can use the Variable product type that allows the user to upload a data file, but this will create individual PDFs for each record.

  5. Does anyone know if we can add the MarcomCentral output filename to the pdf? We would like to include this info in the bleed area of our output file.

     

    I found another post where Dan calls out these objects (http://forums.pti.com/showthread.php?p=20492#poststop):

    FusionPro.Composition.JobOptions.MCC_OrderNumber

    FusionPro.Composition.JobOptions.MCC_JobTicketNumber

     

    Both of these work wonderfully!

     

    I then tried 'FusionPro.Composition.JobOptions.MCC_OutputFile' to see if I would get lucky, but it did not work.

     

    I've also been looking for a list of options available for 'FusionPro.Composition.JobOptions'. When I type this out in FP nothing comes up for intellisense, so i'm out of luck there.

     

    running:

    Acrobat Pro v11

    FP 10.0.26

    Mac OS Sierra 10.12.6

  6. Hello,

     

    Does anyone know if it is possible to name the output file for Marcom storefront orders?

     

    I know we can use OnNewOutputFile when composing locally, but that setting doesn't hold in Marcom.

     

    The files in Marcom are output with a somewhat random name.

     

    Ex. 032920181257104138_16131428_29606140_grcnjnzg.pdf

  7. Hello,

     

    Does anyone know if it is possible to have self registration set up with an approval?

     

    For example, a new user comes to the site and fills out the self registration form. They would then click a submit button to send the form to our client who could verify if this is a valid user. If approved, the user would be created in the system.

     

    We are currently using Google forms to accomplish, but want to see if this feature is supported.

     

    Cheers,

    Mark

  8. Hello,

     

    I'm having an issue with the Preview not displaying correctly. The rule I'm using validates correctly, but breaks on preview.

     

    In a nutshell, here is the code for this function

     

    // declare variable color hits

    HIT_COLOR_BLACK = "black";

    HIT_COLOR_WHITE = "white";

     

    // create array of objects

    HIT_COLOR_CHOICE = {1: HIT_COLOR_BLACK, 2: HIT_COLOR_WHITE};

     

    // retrieve items in desired color

    function getItem(item, colorNumber){

    return '<color name=' + HIT_COLOR_CHOICE[colorNumber] + '>' + '<tracking newsize="6">' + item;

    }

     

     

    During positioning and proofing, we will switch the color hits globally, just to check our work.

     

    When I validate the rule with this function, the correct results appear:

    <color name=black><tracking newsize="6">pizza

     

    but the color does not come through on preview. The text will default to the color set in the text box. I have the 'Treat returned string as tagged text' box checked, so it's not that.

     

    If i hardcode the color value into the function, or use the variable name itself, the rule works. This would just cause a lot of work on my end to create a function for each color i have.

     

    All help is appreciated.

     

    Here are system details:

    FP: 9.3.36

    OS: Mac OS 10.12.6

    Acrobat 11

     

    Cheers,

    Mark

  9. Thanks Dan and Step, both worked great.

     

    Since I'm loading multiple JS files in the OnJobStart, I'm thinking it would be safer to use Step's method, since that calls the rule and all files will be loaded.

     

    We are just diving into the external JS file callout methods and so far they have been a big help. We do a ton menu products that share the same rules, so this is becoming a real lifesaver on preventing us from writing duplicate code in each template.

     

    Thanks for the helps and have a Happy New Year!

  10. Hello,

     

    I'm using the Load() function in my OnJobStart to load an external JS file. I'm calling a function from that file in my OnRecordStart, and it works, but when I save/validate the OnRecordStart rule I get the attached error message.

     

    Does anyone know how to get rid of this error message?

     

    In case you can't see the image, it's a ReferenceError that states the function is not defined.

    ScreenShot2017-12-21at11_15_29AM.png.0a8c76e013deadf8de7f9399190a3816.png

  11. add a counter variable to the globals area and throw an incrementer on it every time the scenario occurs.

     

    then create a callback rule of OnRecordEnd or OnJobEnd and add the FP function Print().

     

    So maybe something like this:

     

    var counter; //global var

     

    counter++; //every time scenario occurs

     

    Print(counter); //this will add the text to the .msg file that is created during compose.

  12. because of the urgency with our issue, we had to revert back to a FP beta patch version to resolve the issue (9.2.35). I doubt we could extract the .msg file at this point.

     

    We were able to confirm that templates using ver 9.3.36 in DSF will not hold absolute leading. FP support (Alex Marshall) had us check the 'Paragraph Menu > Global Settings > Leading Mode' and when we tested that it still did not work.

     

    I asked support for a link to download ver 9.3.6 as this version seems to work the best for both PTI and DSF.

     

    We use both systems and it can be troublesome when creating products in both environments. Especially because DSF lacks a ton of functionality when compared to PTI (for template products).

     

    cheers,

    mark

×
×
  • Create New...