use PostScript::TextBlock; my $tb = new PostScript::TextBlock; $tb->addText( text => "Hullabalo in Hoosick Falls.\n", font => 'CenturySchL-Ital', size => 24, leading => 26 ); $tb->addText( text => "by Charba Gaspee.\n", font => 'URWGothicL-Demi', size => 12, leading => 14 ); print 'There are '.$tb->numElements.' elements in this object.'; open OUT, '>psoutput.ps' or die "Couldn't open psoutput.ps: $!"; my ($code, $remainder) = $tb->Write(572, 752, 20, 772); print OUT $code;