PhilterPaper / Perl-PDF-Builder

Extended version of the popular PDF::API2 Perl-based PDF library for creating, reading, and modifying PDF documents
https://www.catskilltech.com/FreeSW/product/PDF%2DBuilder/title/PDF%3A%3ABuilder/freeSW_full
Other
6 stars 7 forks source link

[RT 124218] Strike-through text formatting? #84

Closed PhilterPaper closed 6 years ago

PhilterPaper commented 6 years ago

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

PhilterPaper commented 6 years ago

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.

PhilterPaper commented 6 years ago

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.

PhilterPaper commented 6 years ago

-strikethru option added to text() calls, very similar to -underline. It will be available in release 3.011 (expected late 2018). Closing.