Re: PostScript Encapsulation Knowledge [message #89670 is a reply to message #89665] |
Sun, 09 November 2014 14:56   |
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
|
|
|