[changeset] printing multipage postscript files

Ben Abbott bpabbott at mac.com
Wed Jun 3 08:30:13 CDT 2009


On Jun 3, 2009, at 7:47 AM, Petr Mikulik wrote:

>> Please check that this works are you expect. I've tested the three  
>> examples
>> below on Mac OSX with no problems.
>>
>> surf(peaks)
>> print -dps append.ps
>> sombrero (25)
>> print -dps -append append.ps
>>
>> surf(peaks)
>> print -dpdf append.pdf
>> sombrero (25)
>> print -dpdf -append append.pdf
>>
>> surf(peaks)
>> print -dps append.ps
>> rename ("appdend.ps", "append.pdf");
>> sombrero (25)
>> print -dpdf -append append.pdf
>>
>> The last one I hadn't expected to work, but ghostscript handled it  
>> nicely.
>
> With postscript, it works well. (The option is really "-append".)
>
> However, appending to pdf fails on my system:
>
> x=1:100;
> plot (x,x)
> print -dpdf z.pdf
> plot (x,-x)
> print -dpdf z.pdf -append
> plot (x,x.*x, x,x+20)
> print -dpdf z.pdf -append
>
> However
>   gs -dNOPAUSE -sDEVICE=pswrite -sOutputFile=new.pdf \
>   z1.pdf z2.pdf -c quit
> works OK, so there seems to be a some small mistake in the patch.  
> Can you
> please fix it?
>
> ---
> Petr Mikulik

Petr,

The example you gave works for me. If you can isolate the problem, I  
can patch Octave's sources.

Ben




More information about the Bug-octave mailing list