# PDF print bold fontweight

**URL:** <https://techcommunity.softwareag.com/t/pdf-print-bold-fontweight/206389>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, Natural-for-AJAX\
**Created:** [December 9, 2019, 2:43pm UTC](https://techcommunity.softwareag.com/t/pdf-print-bold-fontweight/206389 "2019-12-09T14:43:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fernando\_Vicente](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@Fernando\_Vicente](https://techcommunity.softwareag.com/u/Fernando_Vicente)\
**Post date:** [December 9, 2019, 2:43pm UTC](https://techcommunity.softwareag.com/t/pdf-print-bold-fontweight/206389/1 "2019-12-09T14:43:49Z")

</div>

Hello.

I’m using the PDFFOPListener to generate PDF and I’m using the component cisfo:replace2.  
In the component “valueprop” property I’m referencing an array (valueprop=w\_col1) declared like this:

1 W\_GRID\_DADOS (1:\*)  
2 SELECTED (L)  
2 W\_COL1 (A) DYNAMIC  
2 W\_LINHA\_PDF\_BOLD (A) DYNAMIC

The text is printed right, the problem is that some positions of the W\_COL1 have to be printed with fontweight=bold. I tried to use the fontweight property from the cisfo:replace2, referencing W\_LINHA\_PDF\_BOLD in it, but it didn’t work.

Is there a way to print this array informing what are the bold lines?

Thank you very much.

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [December 10, 2019, 3:21pm UTC](https://techcommunity.softwareag.com/t/pdf-print-bold-fontweight/206389/2 "2019-12-10T15:21:10Z")

</div>

Hi Fernando,

Setting fontweight=“bold” in a cisfo:replace2 worked in my Environment correctly. What is the parent of your cisfo:replace2? Is it a cisfo:row2?

Best Regards,  
Christine

---

<div class="post-metadata">

**Author:** ![Fernando\_Vicente](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@Fernando\_Vicente](https://techcommunity.softwareag.com/u/Fernando_Vicente)\
**Post date:** [December 10, 2019, 5:48pm UTC](https://techcommunity.softwareag.com/t/pdf-print-bold-fontweight/206389/3 "2019-12-10T17:48:48Z")

</div>

Hi Christine. Thank you for answering.

Yes, the parent is a cisfo:row2.  
When I set fontweight=“bold” in a cisfo:replace2 all the positions of the array (W\_COL1) are printed in bold.  
What I need is to specify what position of this array is bold and what is not.  
I have a second array “W\_LINHA\_PDF\_BOLD” that has the string “bold” or “normal” for each position of the array. I’ve tried setting fontweight=“W\_LINHA\_PDF\_BOLD” in the cisfo:replace2 but it didn’t work.

Best Regards,

Fernando

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [December 12, 2019, 1:54pm UTC](https://techcommunity.softwareag.com/t/pdf-print-bold-fontweight/206389/4 "2019-12-12T13:54:57Z")

</div>

Hi Fernando,

I didn’t find a way to address the single columns of a specific row when using the cisfo:\* controls in an array.

When using the REPORT control instead of the cisfo:\* controls you can render single columns.

Best Regards,  
Christine

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:43pm UTC](https://techcommunity.softwareag.com/t/pdf-print-bold-fontweight/206389/5 "2021-04-02T15:43:55Z")

</div>


