Jump to content

EricC

Registered Users - Approved
  • Posts

    91
  • Joined

Converted

  • Occupation
    Developer

Converted

  • FusionPro Products
    Yes

Converted

  • FusionPro VDP software version
    13

Converted

  • OS
    Windows 11

Converted

  • Acrobat Version
    Acrobat DC

EricC's Achievements

Collaborator

Collaborator (7/14)

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

Recent Badges

10

Reputation

  1. Could still use some help with this if anyone has any tips?
  2. I have a wall plate with 3 text lines: Line 1: NAME (all caps) - 48 pt text Line 2: Title Line 1 - 32 pt text Line 3: Title Line 2 - 32 pt text In one large text box I have placed 3 rules: Rule-Name: Returns the Name field in all caps Rule-Title1: CopyfitLine returns the "Title Line 1" field Rule-Title2: CopyfitLine returns the "Title Line 2" field The text box has Overflow setting as 'Use defaults' Here's what I am trying to do: - None of the lines should wrap. (I have "Do not break on copyfit" selected in the Paragraph settings) - I would like the Name field to auto scale independently of the 2 Title lines. Sometimes titles tend to be quite long but I don't want the Name field to scale down as a result. Keep the Name field as close to (or equal to) 48 pt text at all times regardless of what's going on with the Title lines. - The first line (Name) should only scale down if the name is too wide to fit on one line) - The two "Title" lines should also scale down if either one is too wide. However, the need to scale down by the same amount. If Title Line 1 needs to shrink down to 22 point text to fit from left to right, then Title Line 2 should also shrink down to 22 point. As you can imagine what's happening now is, the two Title lines are scaling down independently of each other. So the end result might be Title Line 1 is 30 point text while Title Line 2 is 22 point text. How can I get both lines to scale down by the same amount?
  3. FusionPro 13.0.2 with Acrobat Pro 2023. With FontAweome, you type specific words and the font converts them into tiny icons. For example, you type the word 'fax' and FontAwesome replaces the letters with a fax machine icon. This is working in InDesign. But when I try to use that font in a text box in FusionPro, the magic replacement doesn't work. In other words, instead of seeing the fax machine icon all I see is the word 'fax'. Has anyone had any success using this font in FusionPro?
  4. A text box is 2.25 inches wide. Inside of that text box I have placed a field named 'Title' Some titles are very long but the text box is tall enough to accommodate up to 5 lines. Is there a function or rule I can use, that will return the number of lines for any given record as a result of word wrap? For example: 'Title 1' will fit on one line therefore return '1' 'Here is Title 2 and it's a bit longer' - I want to know if this will end up wrapping to 2 lines or 3 lines. (That is, I want the rule to return '2' or '3')
  5. Dan, I deleted all of the text boxes, recreated them and now the rule is working. Thanks a ton for your help!
  6. I tried FindTextFrame("TextBoxRight").content = ""; and it still shows the contents of TextBoxRight. I can't figure it out and I've been at it off and on all day today. I'll try again some more tomorrow. Thanks for your help Dan.
  7. Hi Dan, Thanks for the quick reply. The error log says: Job started 17:02:06 - 1459458126. Creator: FusionPro(TM) VDP Designer 9.3.21 Composing record #1, input record 6 OnCopyfit, line 6: warning: Could not copyfit text in flow TextBoxLeft The amount of text inserted into a flow exceeds the depth of all frames in the flow <TextBoxLeft>. Text is truncated. Text does not fit in the last frame on page 1 at (0.22, 0.72). Job ended 17:02:07 - 1459458127. Total Job Time: 1s Using your modified code, it made the content of TextBoxLeft disappear, but the content of TextBoxRight also needs to disappear.
  8. Hi Dan, I like your first idea - moving all of the text from the left frame to the right frame. However in my scenario, I only want to move one FIELD (Email Address) from the left text frame to the right text frame. So, I tried out your second idea: 1. Create 2 left text boxes and 2 right text boxes 2. OnRecordStart, suppress TextBoxLeftAlt and the TextBoxRightAlt 3. OnCopyfit, if things don't fit in TextBoxLeft, suppress the nominal frames and show the alternate ones I am pretty sure I did this correctly, but when I preview the template in Acrobat, I see the content in all 4 frames. The TextBoxLeft text box has the solid red line at the bottom (the visual indicator that the text is not fitting), so I would have expected the two nominal boxes to be suppressed. But they're not. Any ideas?
  9. I have a business card with two text boxes: TextBoxLeft and TextBoxRight. TextBoxLeft contains the following fields/rules: - Name - Title 1 - Title 2 - Title 3 - Email Address TextBoxRight contains the following fields/rules: - Address Line 1 - Address Line 2 - City, State Zip Code - Phone Number - Fax Number - Website Regarding TextBoxLeft ... sometimes the titles are so long that the Email Address gets truncated (even with CopyFit). So I want to write a rule that does this: - If all of the text in TextBoxLeft does not fit Move the Email Address field to TextBoxRight - Otherwise, Email Address remains in TextBoxLeft
  10. I created a table using FusionPro. The table has a border on all 4 sides. Below the table, I want to add 12px of margin. In the world of CSS and HTML, the 'margin' is defined as the area OUTSIDE the box. (And 'padding' is the area inside the box). But according to FusionPro, the margin is the area INSIDE the box. Is this correct? I am adjusting my table's bottom margin like this: myTable.Rows[0].Cells[0].Margins.Bottom = 12;...but it's adding space inside the box, not outside as I would expect. So, how can I add 12px of space below my table? (I know I can just add a blank line, but I wanted precise control of the space in pixels. A 'margin' property would do the trick ;-) The CSS Box Model http://www.screencast.com/t/06nAFfFThttp://www.w3schools.com/css/css_boxmodel.asp http://screencast.com/t/06nAFfFT
  11. How do you write a foreach loop that will iterate through every field in the data file, and count the number of non-empty fields? something like this ... var counter=0; foreach (field in my data file) { if (field > "") then counter++ } display counter;
  12. In MarcomCentral's template editor, there is a tab called 'Field Options'. It allows you to take any field ("Name", for example) and append it to the end of the SKU. One of my FusionPro templates has a FusionPro text box. Inside of this text box is a FusionPro rule. The rule is a JavaScript function that generates a unique serial number. Every time the visitor generates a preview of this item, a new serial number appears. When the customer places an order for this product, I want this "serial number" to be appended to the end of the SKU. Is this possible? If it needs to be a field ... then, can a field contain a calculated value, rather than input from the user?
  13. I have a client with 20 locations. Can the Marcom form be populated based on their drop-down selection? In other words, when the form first loads, there is a drop-down "Select a Location", followed by 5 single-line EMPTY text boxes: - Address - City - State - Zip Code - Phone Number If the user selects "Chicago" from the drop-down list, then I want the text boxes to auto populate with the Chicago address (which can be located in a rule or (preferably) an external data file). Once the fields are auto populated, of course they can go back and edit the fields if they needed to (since they are just text boxes) I am familiar with Text Profile Attributes but that is not the ideal solution for this scenario. I am also familiar with the Auto Fill feature but that tiny link is hardly noticeable, not to mention it allows the users to edit and re-save the list, which is not what I am looking for.
  14. This rule works perfectly on my desktop but when I upload it to Marcom, the rule "breaks" :-( I'm going to contact PTI support to see if they can help me figure this out. If I can get this fixed I will post the solution in the Marcom forum.
  15. Dan, I appreciate the thorough reply. You are right - I should have continued working with support directly. My post on the forum does not mean support wasn't helpful. I just started realizing that was (in my mind) originally a small puzzle was turning into something more complex, so I thought I'd use the forum to see if I could get clarification. Your explanation above is clear to me, and next time I will post Marcom-specific questions in that forum. Step, thanks for your help and for the follow-up. Have a great weekend guys!
×
×
  • Create New...