Post without Account — your post will be reviewed, and if appropriate, posted under Anonymous. You can also use this link to report any problems registering or logging in.

[RT 124218] Strike-through text formatting?

  • 2 Replies
  • 781 Views
*

Offline Phil

  • Global Moderator
  • Sr. Member
  • *****
  • 437
    • View Profile
[RT 124218] Strike-through text formatting?
« January 25, 2018, 01:11:18 PM »
Thu Jan 25 10:12:01 2018 dean [...] fragfest.com.au
Subject: | Strike-through text formatting?

Is strike-through text formatting available at all? Possibly via PDF::API2::Content
------------------------------------
from Phil:

Some of the Content routines now documented in PDF::Builder have "underline" capability -- perhaps you could just position the underline high enough to act as a strike-through? I assume the desired effect is similar to HTML's <s> tag. It might be worth adding a new setting to do this, borrowing from the existing underline capability.

*

Offline Phil

  • Global Moderator
  • Sr. Member
  • *****
  • 437
    • View Profile
Re: [RT 124218] Strike-through text formatting?
« Reply #1: June 28, 2018, 02:59:38 PM »
Mon Feb 05 22:18:34 2018 steve [...] deefs.net - Correspondence added

Not as far as I know.  It would likely have to get drawn in after the fact -- have a look at the underline code in PDF::API2::Content to see how that might be implemented.  You might try passing a negative distance to underline.
#
Mon Feb 05 22:18:35 2018 The RT System itself - Status changed from 'new' to 'open'
#
Mon Feb 05 22:18:35 2018 steve [...] deefs.net - Status changed from 'open' to 'resolved'
#
Wed Feb 07 00:36:28 2018 dean [...] fragfest.com.au - Correspondence added

That actually works well enough. thank you.

*

Offline Phil

  • Global Moderator
  • Sr. Member
  • *****
  • 437
    • View Profile
Re: [RT 124218] Strike-through text formatting?
« Reply #2: September 11, 2018, 09:50:31 PM »
-strikethru option added to text() calls, very similar to -underline. It will be available in release 3.011 (expected late 2018). Closing.