Jump to content

dreimer

Registered Users - Approved
  • Posts

    524
  • Joined

Posts posted by dreimer

  1. Wondering what users are using for font management and Fusion Pro. I recently upgraded Fusion Pro to 9.3.15 (from support) and my font management has went way downhill. I am using Universal Type Client and with 9.1.0 it worked pretty well, but now not well at all. I have been in contact with support and nothing they have recommended is helping. I have read in threads that Fusion Pro and Font management software don't always get along. May revert back to 9.1.0 or find a better font management solution.

     

    Was just curious to see what others are using. TIA.

  2. So I upgraded to 9.3.15 through Support. I am wondering if anyone else is having the date the file was imposed messed up? The PC which is running 9.3.9 has the date of the slug imposed correctly. On the MAC it looks like all the characters are on top of each other. No deal breaker just wondering if anyone else has seen this in previous 9.3 releases on the MAC. Bottom right is what I am referring to. I have attached an imposed template from the MAC.

    Weird Date.pdf

  3. As usual, thanks for your help Step. A few quotes here and there can change alot. Someday I will learn this JavaScript.

     

    As I should have expected, this does the same and outlines my resource art. Seems to work just fine if my artwork is the background of the template.

  4. That is correct. But you can also use the Stroked Texted Tag via a JavaScript Rule:

     

    <stroke color="name" width="size in hundredths of a point">...</stroke>

     

    So I tried this and it doesn't seem to work for me. I am trying it this way because I have a template where my background art is pulled in as a resource and when I try the text effects built in function, all my type is stroked in the resource art. Dan has told me this is a known issue. Here is my rule with the treat returned strings as tagged text check.

    return <stroke color="White" width="3000">HELP</stroke>
    

     

    It just returns "HELP" as normal. Also, if it was a data field how would I place that in the rule. It looks at

    return <stroke color="White" width="300">Field("Name")</stroke>

    as hardcoded text. TIA

  5. OK, yes you are correct, sorry it is the background pulled in as a resource.

     

    This is the first time I have tried using the feature so I am unable to say for sure if it is only affecting this template.

     

    Thanks for looking into it and referencing the known issue.

  6. I search the forums and saw a few old threads and the answers was no for the most part.

     

    I see that there are Advanced Text Effects for text boxes in later versions and was wondering how to get this to work. I am using the stroke option with Outline of white.

     

    I want to outline just one text box with white and it works on the text box but using this effect causes all the other static text in my background PDF to outline with black. I assume this is not supposed to happen. It does it on Preview and composition. Does this functionality work for others?

     

    TIA

  7. var XDF = new ExternalDataFileEx("61786_List_New.csv", "\,");
    var firstItemColumn = 11; // Field Number Minus One
    var myTable = new FPTable;
    myTable.AddColumns(4800, 10000, 20000, 4800);
    myTable.AddRow() // This adds the header row below
    for (var row = firstItemColumn; row <= XDF.fieldCount; row++)
    {
       var itemCount = Int(XDF.GetFieldValue(CurrentRecordNumber(), row));
       if (itemCount)
       {
           var thisRow = myTable.AddRow();
           for (var cell = 0; cell < myTable.Columns.length; cell++)
           {
               var thisCell = thisRow.Cells[cell];
               thisCell.SetBorders("Thin","Black","Top","Bottom","Right","Left");
               thisCell.HAlign = "Center";
               thisCell.VAlign = "Middle";
               thisCell.Margins = { Top:40, Bottom:40 };
           }
           var header = XDF.GetFieldValue(0, row);
           thisRow.SetContents(header.substr(0,2), header.substr(3,20), header.substr(21),  itemCount);
       }
    }
    myTable.Rows[0].Type = "Header";
    
    myTable.Rows[0].Cells[0].Font = "Myriad Pro Black";
    myTable.Rows[0].Cells[0].PointSize = 12;
    myTable.Rows[0].Cells[0].HAlign = "Center";
    myTable.Rows[0].Cells[0].Content = "CODE";
    myTable.Rows[0].Cells[1].Font = "Myriad Pro Black";
    myTable.Rows[0].Cells[1].PointSize = 12;
    myTable.Rows[0].Cells[1].HAlign = "Center";
    myTable.Rows[0].Cells[1].Content = "DESCRIPTION1";
    myTable.Rows[0].Cells[2].Font = "Myriad Pro Black";
    myTable.Rows[0].Cells[2].PointSize = 12;
    myTable.Rows[0].Cells[2].HAlign = "Center";
    myTable.Rows[0].Cells[2].Content = "DESCRIPTION2";
    myTable.Rows[0].Cells[3].Font = "Myriad Pro Black";
    myTable.Rows[0].Cells[3].PointSize = 12;
    myTable.Rows[0].Cells[3].HAlign = "Center";
    myTable.Rows[0].Cells[3].Content = "QTY";
    
    return myTable.MakeTags();

    So I have posted my rule that I have and I want to be able to change this line to split my header data into two columns where the pipe is.

     

    thisRow.SetContents(header.substr(0,2), header.substr(3,20), header.substr(21),  itemCount);
    

    Right now I just tried to split at 20 characters but if I can somehow use the pipe to split it would be great.

     

    TIA

     

    I attached the data if it helps to see what I am trying.

     

    I have also attached the output if I only use three columns. Trying to modify the rule to make four columns and use the pipe to separate the field into the two columns.

    61786_List_New.zip

    Output.pdf

  8. I have some jobs that have differing quantities ordered. I can fit 1500 per box. I am trying to create a rule to determine how many cartons are needed for each order. So then my labels will say for example 1 of 1 or 1 of 2, etc.

     

    I used this rule but am not sure how to have no decimal places and round to the nearest whole number.

     

    return Round((Field("Total Qty")/1500),0)
    

     

    So for example one record will have 500 for the quantity but the rule returns .3 and will in turn return 0 but I want it to return 1. For order for 1000 it will return 1 since it is .6 and rounds up.

     

    Question: Is there syntax to round up for any fraction of a whole number?

     

    TIA

  9. Nevermind I guess. Got it to work by calling them in their own line.

     

    After all that, I think the whole problem was top and bottom go in 10ths whereas left and right go in 100ths.

     

    var numberOfFields = 16; // 16 Date, Amount, & Reference fields
    var rows = 1; // Header
    // Only make rows for all 'Date' fields containing data
    for (var n=1; n<=numberOfFields; n++){
       if (Field("Date " + n)) { rows++; }
    }
    var myTable = new FPTable;
    myTable.AddColumns(10400, 10400, 32400);
    for (var i=0; i<rows; i++) {
           myTable.AddRow();
           myTable.Rows[i].Cells[0].Margins = new FPTableMargins;
           myTable.Rows[i].Cells[0].Margins.Top = "60";
           myTable.Rows[i].Cells[0].Margins.Bottom = "10";
           myTable.Rows[i].Cells[0].Margins.Left = "1200";
           myTable.Rows[i].Cells[0].Margins.Right = "450";
           myTable.Rows[i].Cells[0].Font="Arial";
           myTable.Rows[i].Cells[0].SetBorders("Thin","Black","Top","Bottom","Right","Left");
           myTable.Rows[i].CopyCells(0,1,2);
           var date = (i > 0) ? Field("Date " + i) : "GIFT DATE";
           var amt = (i > 0) ? Field("Amount " + i) : "GIFT AMOUNT";
           var notes = (i > 0) ? Field("Reference " + i) : "DESIGNATION/GIFT NOTES";
           myTable.Rows[i].SetContents(date,amt,notes);
    }
    return myTable.MakeTags();
    

  10. var numberOfFields = 16; // 16 Date, Amount, & Reference fields
    var rows = 1; // Header
    // Only make rows for all 'Date' fields containing data
    for (var n=1; n<=numberOfFields; n++){
       if (Field("Date " + n)) { rows++; }
    }
    var myTable = new FPTable;
    myTable.AddColumns(10400, 10400, 32400);
    for (var i=0; i<rows; i++) {
           myTable.AddRow();
           myTable.Rows[i].Cells[0].Margins = { Top:60, Bottom:10, Left:60, Right:30};
           myTable.Rows[i].Cells[0].HAlign = "Left";
           myTable.Rows[i].Cells[0].Font="Arial";
           myTable.Rows[i].Cells[0].SetBorders("Thin","Black","Top","Bottom","Right","Left");
           myTable.Rows[i].CopyCells(0,1,2);
           var date = (i > 0) ? Field("Date " + i) : "GIFT DATE";
           var amt = (i > 0) ? Field("Amount " + i) : "GIFT AMOUNT";
           var notes = (i > 0) ? Field("Reference " + i) : "DESIGNATION/GIFT NOTES";
           myTable.Rows[i].SetContents(date,amt,notes);
    }
    return myTable.MakeTags();
    

×
×
  • Create New...