Integrator PDFDocumentService: Mixed font in cell?

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
pkoopmanpk
Posts: 15
Joined: Wed Apr 26, 2017 7:12 pm

Integrator PDFDocumentService: Mixed font in cell?

Post by pkoopmanpk » Mon Jul 09, 2018 5:50 pm

Is there a trick to use mixed fonts in a table cell in PDFDocumentService?

I have to generate an EAN like code in one line, and a description in the next line.

It could look something like this:
---
12.12345.12345.1
Product description
---

Code: Select all

<style name="Size10" font="Times-Roman" size="10" />
<style name="Size10Italic" font="Times-Roman" size="10" style="italic" />
<style name="Size12" font="Times-Roman" size="12" />
<style name="Size14Bold" font="Times-Roman" size="14" style="bold" />

<content name="BODY1">
<table y1="{TOP}" x1="29" height="{HEIGHT}" width="525" leading="9" style="Size10" border="false" cell-border="false" padding="1">
<column title-style="Size10" width-percentage="15" title="Part nr" title-vertical-align="top" title-horizontal-align="left" vertical-align="top" horizontal-align="left" title-border="false">
<phrase value="12.12345." style="size12"/>
<phrase value="12345" style="size14Bold"/>
<phrase value=".1" options="na" style="size12"/>
<phrase value="Product description" style="size10Italic"/>
</column>
</table>
</content>

pkoopmanpk
Posts: 15
Joined: Wed Apr 26, 2017 7:12 pm

Re: Integrator PDFDocumentService: Mixed font in cell?

Post by pkoopmanpk » Tue Jul 10, 2018 8:57 pm

Answer to self. I found a solution by overlaying two tables with different styles. With that I won't be able to style the number, but that was a nice to have in the first place.

Post Reply