in reply to Re^3: create ps file with PostScript::Simple - cannot print it out?
in thread create ps file with PostScript::Simple - cannot print it out?

The eps file "body.eps" is used for testing only.
But in my main program I have to a import 2 eps files : header and body. And I cannot control their sizes. If I adjust manually, there's certainly new case coming out of control.
  • Comment on Re^4: create ps file with PostScript::Simple - cannot print it out?

Replies are listed 'Best First'.
Re^5: create ps file with PostScript::Simple - cannot print it out?
by almut (Canon) on Jul 17, 2008 at 21:28 UTC
    And I cannot control their sizes

    With the importepsfile() method you do have autoscaling... you just need to specify the respective areas on the page where the imported EPS files are supposed to appear.

    If you know nothing about the shape of the EPS objects and still want a nice layout, however, you'll have to devise an algorithm (or maybe find a module on CPAN) that computes the optimal placement on the page.  AFAIK, PostScript::Simple doesn't provide any support for this...

      I can't use autoscaling in my case because the header and body won't fit w/ each other anymore.

      Thanks a lot almut for your help.