Problem with Underline in 'PDFDocumentService'

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
sotos
Posts: 31
Joined: Fri Feb 09, 2018 11:25 pm

Problem with Underline in 'PDFDocumentService'

Post by sotos » Tue Feb 23, 2021 11:10 pm

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

User avatar
Dino
Posts: 95
Joined: Fri Jul 19, 2019 7:49 am
Location: Tail of the Dragon, Robbinsville, NC
Contact:

Re: Problem with Underline in 'PDFDocumentService'

Post by Dino » Wed Feb 24, 2021 7:25 am

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 1565 times

sotos
Posts: 31
Joined: Fri Feb 09, 2018 11:25 pm

Re: Problem with Underline in 'PDFDocumentService'

Post by sotos » Fri Feb 26, 2021 6:06 pm

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

Post Reply