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

Home » Public Forums » archive » PostScript Encapsulation Knowledge
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: PostScript Encapsulation Knowledge [message #89670 is a reply to message #89665] Sun, 09 November 2014 14:56 Go to previous messageGo to previous message
Lajos Foldy is currently offline  Lajos Foldy
Messages: 176
Registered: December 2011
Senior Member
On Saturday, November 8, 2014 6:46:10 PM UTC+1, David Fanning wrote:
> Folks,
>
> I've run into an interesting little problem. I have reason to want to
> know if the current PostScript device configuration is set up to make
> encapsulated PostScript output or not.
>
> I wrote a function that takes the output of the Help, /Device command
> and parses the information contained in that output to discover the
> "mode" of encapsulation. Here is the relevant line of output:
>
> Mode: Portrait, Non-Encapsulated, EPSI Preview Disabled, Color Enabled
>
> The problem is, in IDL 8.3.2 on Windows the encapsulation mode never
> changes!
>
> IDL> Set_Plot, 'PS'
> IDL> Device, /Encapsulated
> IDL> Help, /Device
>
> Available Graphics Devices: CGM HP METAFILE NULL PCL PRINTER PS WIN Z
> Current graphics device: PS
> File: C:\IDL\tester.eps
> Mode: Portrait, Non-Encapsulated, EPSI Preview Disabled, Color Enabled
>
> I've confirmed the PostScript device *creates* an encapsulated
> PostScript file when I configure the device like this. It just never
> tells me it is doing so.
>
> Is this the case in other versions of IDL, too?
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")

Hi David,

you should check the device after opening the file (= after the first plot command):

IDL> set_plot, 'ps'
IDL> device, /encapsulated
IDL> help, /device
File: <none>
Mode: Portrait, Non-Encapsulated, EPSI Preview Disabled, Color Disabled
IDL> plot, dist(5)
IDL> help, /device
File: idl.ps
Mode: Portrait, Encapsulated, EPSI Preview Disabled, Color Disabled

regards,
Lajos
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to apply a vegetation index on multiple images?
Next Topic: Re: ignoring the strings

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

Current Time: Wed Oct 08 20:13:28 PDT 2025

Total time taken to generate the page: 0.00459 seconds