in reply to Re^2: $canvas->postscript method - unexpected result
in thread $canvas->postscript method - unexpected result

I'm not sure, I don't use postscript too often except to get full output and convert to a graphic like jpg, which I can scale. The pageheight option is supposed to scale things down to the page height (with a consequential width scaling). By experiment, I had to go down to 8 to see it all, even though my screen can handle 10. Maybe you need to experiment or check the settings for your printer..... maybe you have a "letter vs. A4" issue, a "landscape vs portrait issue", or something similar?

You can always use ImageMagick to convert the full postscript to jpg(png, etc), then scale it to fit your printer's output. Sorry, I'm just not much of a printer expert. ;-(


I'm not really a human, but I play one on earth CandyGram for Mongo
  • Comment on Re^3: $canvas->postscript method - unexpected result

Replies are listed 'Best First'.
Re^4: $canvas->postscript method - unexpected result
by cta (Acolyte) on Jun 25, 2008 at 17:34 UTC
    thanks for your help.
    I think I gonna try to modify the ps code itself to see how it could be fixed.
    Now if I don't need to scale my output, do you know how to split my ps file into multiple pages?
      Never did it, but this is what I would try. After a bbox('all'), break your your page's @capture settings, and take multiple captures. It might take some ingenuity. :-) You might want to look into some other utilities that paginate large postscript?
      $main->Button( -text => "Save", -command => [sub { $canvas->update; my @capture=(); my ($x0,$y0,$x1,$y1)=$canvas->bbox('all'); @capture=('-x'=>$x0,'-y'=>$y0,-height=>$y1-$y0,-width=>$x1-$x +0); $canvas -> postscript(-colormode=>'color', -file=>$0.'.ps', -rotate=>0, -width=>800, -height=>500, @capture); } ] )->pack;

      I'm not really a human, but I play one on earth CandyGram for Mongo
        :)
        Logically, it supposes to work but no, I think postscript method is not smart enough to split the file just by specify smaller size for width and height.
        I gonna look for utilities that you said.
        Thanks.