Page 1 of 1

Integrator PDFDocumentService: Mixed font in cell?

Posted: Mon Jul 09, 2018 5:50 pm
by pkoopmanpk
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:
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"/>

Re: Integrator PDFDocumentService: Mixed font in cell?

Posted: Tue Jul 10, 2018 8:57 pm
by pkoopmanpk
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.