Page 1 of 1

Problem with Underline in 'PDFDocumentService'

Posted: Tue Feb 23, 2021 11:10 pm
by sotos
Hello,

It seems that there is a problem with jsm service PDFDocumentService xml content.

Particularly we can't make Underline to work in the xml file.

For example in the xml file there is the following:

Code: Select all

<text x1="100" y1="220" width="70" value="test test" height="15" style="normalC" align="left" />

<style name="normalC" font="arial" file="/fonts/arial.ttf" size="10" style="normal" color="black Underline" encoding="Identity-H" embedded="true" />
When the pdf file is compiled by using PDFDocumentService the "test test" string in the pdf is not underlined. With bold there is no such problem.

best,
Sotiris

Re: Problem with Underline in 'PDFDocumentService'

Posted: Wed Feb 24, 2021 7:25 am
by Dino
It is possible https://xmlgraphics.apache.org/fop/dev/svg/text.pdf

this line did the trick for me:

Code: Select all

  <text value="{SURNAME}"   x1="130" y1="710" width="40"    height="20" align="center" style="withline"/>
 <style name="withline" size="9" style="underline" />
test0223.jpg
test0223.jpg (12.25 KiB) Viewed 7238 times

Re: Problem with Underline in 'PDFDocumentService'

Posted: Fri Feb 26, 2021 6:06 pm
by sotos
Hello,

thank you for your reply.

Yes it works now.
But I also noticed that "u" letter should be lowercase and not uppercase.
i.e. Underline -> underline (correct)

because in the documentation it is written as Underline

https://docs.lansa.com/14/en/lansa093/i ... t%7C_____5