Name
Write( ) — return the PostScript code for a document
Synopsis
$doc->Write()
The Write( )
method will generate the PostScript code for
the document and return it as a string. In general, you will want to
use the Write( )
method to write the code to a
file that can be sent to a printer or other PostScript interpreter.
You could do this like in the following, which writes the PostScript
code to a file
called psoutput.ps
:
open OUT, '>psoutput.ps' or die "Couldn't open psoutput.ps: $!"; my $code = $doc->Write(); print OUT $code;
Get Programming Web Graphics with Perl and GNU Softwar now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.