ImageGear for C and C++ on Linux v18.10 - Updated
PS
User Guide > File Formats and Compressions > File Formats > File Formats Reference > PS

Full Name Adobe PS (Adobe PostScript)
Format ID IG_FORMAT_POSTSCRIPT = 102
File Extension(s) *.ps, *.eps
Data Type Vector Image
Data Encoding Binary
Color Profile Support No
Multi-Page Support Yes
Alpha Channel Support No
ImageGear Platforms Support WIN32, WIN64, Unix, .NET

To support the PS format, attach the ImageGear PDF Component to Core ImageGear. See the PDF Getting Started with PDF section.

ImageGear Supported Versions:

ImageGear Supported Features:

ImageGear Read Support:

ImageGear Write Support:

ImageGear Filter Control Parameters:

Filter Control Parameter Type Default Value Available Values Description
AUTO_POSITION AT_BOOL TRUE TRUE, FALSE Enables/disables AutoPositionEPSFiles option for reading PS/EPS file format.
DEPTH UINT 24 1, 8, 24 Specifies bit depth in bits per pixels during the PostScript document conversion into the raster image. A higher value indicates a higher quality raster image and a larger amount of memory required for rasterization. The DIB of the output raster image has this value as a bit count.
HEIGHT UINT 0 Any positive integer

Specifies the height of PS page to load.

INDEPENDENT_PAGESIZE AT_BOOL FALSE  TRUE, FALSE

(Used with PostScript write only.)

  • If this parameter is FALSE, when saving a raster image into the PostScript document, the width and height of the newly created page is set to the width and height of the previous page in the PostScript document. If the previous page does not exist, the width and height are calculated from the image resolution and size as follows:

    Width = <width of the raster image> * 72 / <X DPI of the raster image>
    Height = <height of the raster image> * 72 / <Y DPI of the raster image>

    If the image resolution is not defined, the width and height are set to the width and height of the Letter page, which is 612x792.

  • If this parameter is TRUE, use the PAGE_HEIGHT and PAGE_WIDTH parameters to set the page size.

JOB_OPTIONS_FILE LPSTR N/A Any string

Specifies JobOptions file name.

LEVEL UINT

IG_PS_LEVEL_3 = 3

  • IG_PS_LEVEL_1 = 1 - language level 1
  • IG_PS_LEVEL_2 = 2 - language level 2
  • IG_PS_LEVEL_3 = 3 - language level 3

(Used with PostScript write only.) Specifies a language level of the output PostScript 3.0 document when saving to PostScript.

PAGE_HEIGHT UINT  Any non-negative value

(Used with PostScript write only.) This parameter sets the height of the page (in 1/72 inches). If this option is 0, the height is calculated from the image resolution and size as follows:

Height = <height of the raster image> * 72 / <Y DPI of the raster image> 

If the image resolution is not defined, the height is set to the height of an Letter page, which is 792.

This option is not used if INDEPENDENT_PAGESIZE is FALSE.

PAGE_WIDTH UINT   0 Any non-negative value 

(Used with PostScript write only.) This parameter sets the width of the page (in 1/72 inches). If this option is 0, the width is calculated from the image resolution and size as follows:

Width = <width of the raster image> * 72 / <X DPI of the raster image>

If the image resolution is not defined, the width is set to the width of the Letter page, which is 612.

This option is not used if INDEPENDENT_PAGESIZE is FALSE. 

READ_PREVIEW AT_BOOL FALSE TRUE, FALSE Specifies whether to allow viewing a preview.
RESOLUTION_X UINT  72 Any positive value, inclusively between 1 and 2147483647

This parameter specifies the horizontal resolution in dots per inch during the PostScript/PDF document conversion into the raster image. A higher value indicates a higher quality raster image after rasterization. The DIB of the output raster image has this value as an X resolution.

RESOLUTION_Y UINT  72 Any positive value, inclusively between 1 and 2147483647

This parameter specifies the vertical resolution in dots per inch during the PostScript/PDF document conversion into the raster image. A higher value indicates a higher quality raster image after rasterization. The DIB of the output raster image has this value as an X resolution.

SMOOTH_FLAGS UINT  0

A bit composition of an OR of the following values:

  • 1 - Draw smooth text
  • 2 - Draw smooth line art
  • 4 - Draw smooth image
  • 8 - Enhance thin lines
Specifies smooth settings for PostScript rasterization. 
TEXT_ENCODING UINT 

IG_PDF_TEXTENC_ASCII_85 

  • IG_PDF_TEXTENC_NONE = 1 - no encoding used
  • IG_PDF_TEXTENC_ASCII_85 = 2 - ASCII 85 encoding used
  • IG_PDF_TEXTENC_ASCII_HEX = 3- ASCII HEX encoding used
(Used with PostScript write only.) Specifies which encoding scheme should be used to convert binary image data to the text format when saving raster image into a PostScript document. 
TYPE UINT IG_POSTSCRIPT = 0
  • IG_POSTSCRIPT = 0 - PS file
  • IG_EPS_NO_PREVIEW = 1 - EPS file with no preview
  • IG_EPS_STANDARD_PREVIEW = 2 - EPS file with standard preview
  • IG_EPS_EXTENDED_PREVIEW = 3 - EPS file with extended preview

(Used with PostScript write only.) This parameter specifies a type of the output PostScript document when saving to PostScript.

USE_CROP_BOX AT_BOOL  TRUE  TRUE, FALSE

Specifies whether to use PostScript crop box rectangle for page layout.

  • TRUE - use PostScript crop box rectangle for page layout
  • FALSE - use PostScript media rectangle for page layout 
WIDTH UINT 0 Any positive value

Specifies the width of PS page to load.

Comments:

Please see the section Using ImageGear PDF Component.