Dear Monks. I am new to perl and have been using the excellent PDF::API2 module.
I wish to create a series of paragraphs on a document so that the text flows from one to the other.
I can successfully create a paragraph using the following code
My paragraph is
my $paragraph="erci ent ulluptat vel eum zzriure feuguero core conseni +s adignim irilluptat praessit la con henit velis dio ex enim ex ex eu +guercilit il enismol eseniam, suscing essequis nit iliquip erci blam +dolutpatisi. Orpero do odipit ercilis ad er augait ing ex elit autatio od minisis a +mconsequam";
And my code snippet is
my $txt=$page->text; $txt->textstart; $txt->lead(7); $txt->font( $font{'Helvetica'}{'Bold'}, 7 / pt ); $txt->fillcolor('red'); $txt->translate(30,265); $txt->paragraph("$paragraph", 40 /mm, 70, align => "left" );
What I need to do is to collect the text that does not fit into this paragraph (i.e. the overflow text) into a variable $overflow_text. Then I can use the contents of $overflow_text to place the remaining text into another paragraph object. There appears to be some reference to overflow text in the documentation but I cannot quite get my head around it
Thanks for your help
In reply to PDF::API2 Paragraphs and Overflow Text by dickieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |