Cop to Fit with Parameters

I’m trying to use the Cop to Fit option, so that a variable, which is a run-time parameter, can adjust itself within a box, but the result is still the same as if I didn’t use the adjustment.

Parameter: {{JobCapa}}

Values:
MULTA_AEH042_YYYYMMDDhhmmsss_LLLLLLLLLL
XXXXXXXXXXX_AEH044_YYYYMMDDhhmmsss_LLLLLLLLL

Can you also please share the source code of the <div>-element containing the copy fit text (div > span > b > span > ~content)?

data-copyfit="{&quot;minSize&quot;:&quot;22pt&quot;,&quot;maxSize&quot;:&quot;30pt&quot;,&quot;widthOnly&quot;:false,&quot;childSelector&quot;:&quot;&quot;}"
anchor="page_media_0"
style="position: absolute; overflow: hidden; box-sizing: border-box; width: 1096.83px; height: 200px; top: 46.1499px; left: 18.1667px;" offset-x="21.949984" offset-y="49.93323330154419">
    <span style="font-size: 30pt;"><b>{{JobCapa}}</b></span>
</div>

Thank you for sharing the source code.

Removing the attribute and value style="font-size: 30pt;" from the <span>-element should fix the issue. The reason why the applied copy fit settings does not work as expected is because the to the <span>-element applied style overwrites the copy fit settings that are applied to the <div>-element.

The result will look like as follows after removing the attribute and value from the <span>-element:

<div data-copyfit="{&quot;minSize&quot;:&quot;22pt&quot;,&quot;maxSize&quot;:&quot;30pt&quot;,&quot;widthOnly&quot;:false,&quot;childSelector&quot;:&quot;&quot;}"
anchor="page_media_0" style="position: absolute; overflow: hidden; box-sizing: border-box; width: 1096.83px; height: 200px; top: 46.1499px; left: 18.1667px;" offset-x="21.949984" offset-y="49.93323330154419">
	<span><b>{{JobCapa}}</b></span>
</div>
1 Like

Tks man. It worked well. Now I would need to make the margin lines of this box visible. In PP7 we had a tool to “draw the margins of a box” to place the content inside. How could I make these blue lines visible?

Hi Thales,

Just right click the div/box and select “Box…” from the context menu. Then go to border to add them to the box.

Regards,
S

1 Like

Tks man.
The PT-BR translation is a little confusing hehe.