Skip to content

Commit

Permalink
More text-lione documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Dec 7, 2024
1 parent aa809bc commit c16aa22
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
12 changes: 10 additions & 2 deletions docs/PDF/Content/Text/Line.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ This class represents a single line of output in a [PDF::Content::Text::Box](htt
Methods
-------

### method text

Return the input text for the line.

### method decoded

An input list of text atoms
Return a list of input text atoms

### method encoded

Expand All @@ -39,5 +43,9 @@ indentation offset.

### method align

Alignment offset
Alignment offset.

### method content-width

Return the width of rendered content.

1 change: 0 additions & 1 deletion lib/PDF/Content/Text/Box.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ method !layup(@atoms is copy) {
@!images.push( { :$Tx, :$Ty, :xobject($atom) } )
}


if $prev-soft-hyphen {
# Drop soft hyphen when line is continued
$line.decoded.pop;
Expand Down
12 changes: 10 additions & 2 deletions lib/PDF/Content/Text/Line.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ unit class PDF::Content::Text::Line;
=head2 Methods
=head3 method text
=para Return the input text for the line.
=head3 method decoded
=para An input list of text atoms
=para Return a list of input text atoms
=head3 method encoded
Expand All @@ -29,7 +33,11 @@ unit class PDF::Content::Text::Line;
=head3 method align
=para Alignment offset
=para Alignment offset.
=head3 method content-width
=para Return the width of rendered content.
use PDF::Content::Ops :OpCode;
use Method::Also;
Expand Down

0 comments on commit c16aa22

Please sign in to comment.