comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Coyote Graphics PS/PDF output size/orientation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Coyote Graphics PS/PDF output size/orientation [message #85503 is a reply to message #85502] Tue, 13 August 2013 20:24 Go to previous messageGo to previous message
Paul Levine is currently offline  Paul Levine
Messages: 29
Registered: February 2008
Junior Member
On 2013-08-14 02:48:44 +0000, David Fanning said:

> David Fanning writes:
>
>> Or, now that I think about it, maybe a Ghostscript thing. PDF files will
>> be handled by Ghostscript, rather than ImageMagick itself, I think. My
>> GhostScript is 9.05, different from yours.
>>
>> Sigh... Well, lot's of things to check. :-)
>
> OK, here is something. On Macs, I don't use Ghostscript. I use the built
> in (I believe) command pstopdf. What happens if you comment out the
> "DARWIN" section of the case statement in cgps2pdf.pro and use the
> UNIX case instead. Do you have the same results?
>
> Cheers,
>
> David

OK, first I commented out the entire "DARWIN" case (lines 190-199) in
cgps2pdf and ran my example again, but no PDF files were produced (I
did not get any error message, and I did get the "PDF output will be
created here:" message, but no PDF files in the directory).

Then, I found an IF case on line 244
IF StrUpCase(!Version.OS) EQ 'DARWIN' THEN BEGIN
cmd = gs_exe + " " + ps_file[0] + " -o " + pdf_file

So I changed 'DARWIN' to 'foo' to force it to go else, and ran the
example code again. This time, the Resize_600x800.pdf and
Resize_800x800.pdf both came out the same as they had previously been
(those were the two that were ending up in a portrait orientation from
the beginning), as 8.5 x 11 inch pages. However, the other three,
Resize_none.pdf, Resize_800x600.pdf, and Resize_800x400.pdf all came
out as 11 x 8.5 inch pages, properly oriented, and all framed
differently on the page. In other words, they were identical to what I
had gotten before after rotating 90 degrees clockwise.

I'm not exactly sure what the intended behavior is; perhaps the results
I got forcing the UNIX case is what you had intended, with all PDF
files ending up on a US letter sized page in either portrait or
landscape orientation (8.5 x 11 inches or 11 x 8.5 inches). From my
extremely limited knowledge of this stuff, it would seem that any PS
conversion would turn out like this unless it was an encapsulated PS
file, in which case it could be any size.

Also, I am quite interested in your take on the PNG files I wound up
with, where the pixel size of the files was quite different from the
xwsize and ywsize specified, and some axis titles and labels were cut
off. I don't how related this is to the PDF issue, so if you can only
deal with one of these issues at a time, then perhaps you need to pass
the other one off to Coyote and see where he gets with it ;-)

Thanks,
Paul
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: peeling away layers
Next Topic: arithmetic operation on array

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 17:51:55 PDT 2025

Total time taken to generate the page: 0.87850 seconds