Jump to content

dreimer

Registered Users - Approved
  • Posts

    524
  • Joined

Posts posted by dreimer

  1. I think you need to use Dan's rule up further in the post. You are using a rule for a different question about Phone numbers, not the numbers in an address field.

     

    var numberFont = "Arial";
    var text = NormalizeEntities(Field("Add1"));
    return text.replace(/(\d+\s*)/g, function(d){return '<f name="' + numberFont + '">' + d + '</f>';});

  2. Where are these 1,076 fonts that keep getting put in the "/Library/Preferences/PTI/FusionPro" folder coming from??? It take my machine 5 minutes to load fonts all the time. I have no fonts activated in my UTC client. These seem to come from Fusion Pro itself. I delete them out then go and load fonts in Fusion Pro and there they are again in this folder?
  3. I know this is an old post but I keep getting the same issue. I just upgraded to High Sierra and Acrobat DC.

     

    I don't want the document overview or steps palette to reappear every time I click on a frame.

     

    It was mentioned needing admin rights to fix this but that was supposedly fixed in version 8.

     

    Please help!

  4. Dan, I tried your code, it didn't return any barcodes.

     

    I have my field names "Barcode 1", Barcode 2", etc. in the data.

     

    My text frames are named the same as the data fields.

     

    Where in the rule does it assign which text frame to place the barcode?

  5. Thank you very much for that, exactly what I needed, didn't think it was too difficult but I'm not a code guy!!

     

    The warning I get is a can't copyfit text in text boxes that have nothing in the fields, not sure I can avoid that.

  6. I have the following rule to create a UPC. The data usually comes in missing the leading zero. Now I have a mixture of barcodes where I don't need to add the leading zero for some records. zThe current code works great just need some code to add an if statement to add the zero if field is shorter than 11 characters and not to add it if the field has 11 characters. TIA.

     

    // Rule converted from XML Template "Barcode 1":
    // Choose the field(s) for your barcode.
    // Begin XML Template selections //
    var Var1 = "Barcode 1"; // "Choose a field:" (Required): FieldList
    var Var2 = ""; // "Choose another field (optional):": FieldList
    var Var3 = ""; // "Choose another field (optional):": FieldList
    var Var4 = ""; // "Choose another field (optional):": FieldList
    var Var5 = ""; // "Choose another field (optional):": FieldList
    var Var6 = "IDAutomationUPCEANS"; // "Pick a font:" (Required): FontList
    // End XML Template selections //
    
    
    retstr = "0"+Field(Var1);
    final_data = "";
    
    if (Var2 != "")
           retstr += Field(Var2);
    
    if (Var3 != "")
           retstr += Field(Var3);
    
    if (Var4 != "")
           retstr += Field(Var4);
    
    if (Var5 != "")
           retstr += Field(Var5);
    
    
    final_data = '<span><f name="' + Var6 + '">' + NormalizeEntities(MakeUPCABarcode(retstr)) + '</span>';
    return final_data;
    

     

     

    Also, is there a way to turn off the warning given during composition if a particular record doesn't have said barcode?

     

    I have 18 of these rules so some aren't always populated.

×
×
  • Create New...