PDFBlocks - How to Change Font Type And Font Color Dynamically (Video)

Modified on Fri, Oct 1, 2021 at 4:28 PM

How to Change Font Type And Font Color Dynamically Tutorial

Quick Reference
In a block to change the font dynamically you must make the text flow equal to true.
For fontname use syntax: <fontname=Helvetica encoding=winansi>

Example:

<fontname=Helvetica-Bold encoding=winansi>tel:<space><fontname=Helvetica encoding=winansi>

 

We change the system font before the word tel: then restore the original font afterwards. It is important to add the encoding part, otherwise PDFLib will ignore the whole tag. Fonsize can be changed too.


How to add predefined cmyk colors within text
<fillcolor={cmyk 1 1 0 0}> or
<fillcolor={cmyk 1 0 1 0}> or
<fillcolor={cmyk .02 0 .38 1}> or

<fillcolor={gray 0.5}> 

<fillcolor={gray 1}> 

How to add predefined spot colors within text?

Use the following syntax:

 

<fillcolor={spotname {actual color name} tint-value}>

 

 

Examples:

<fillcolor={spotname {PANTONE 481 U} 1}>

 

<fillcolor={spotname {PANTONE 100 C} 0.8}>

 

 

The actual color name can be taken from the list offered by PDFLib plugin when separation option is selected for color.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article