ImageGear for C and C++ on Windows v19.6 - Updated
IG_PDE_postscript_create
API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > Page Editing Objects and Elements > HIG_PDE_POSTSCRIPT > IG_PDE_postscript_create

Creates a PDE PostScript object.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_PDE_postscript_create(
        LPAT_PDE_PSATTRS lpAttrs, 
        HIG_PDF_STREAM hDataStream,
        LPBYTE lpData, 
        LONG nDataSize
        LPHIG_PDE_POSTSCRIPT lphPostScript 
);

Arguments:

Name Type Description
lpAttrs LPAT_PDE_PSATTRS Pointer to AT_PDE_PSATTRS attributes data structure.
hDataStream HIG_PDF_STREAM Data stream. May be NULL.
lpData LPBYTE Data. May be NULL.
nDataSize LONG Number of bytes of data.
lphPostScript LPHIG_PDE_POSTSCRIPT The postscript object.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

lpData and hDataStream may be NULL. If so, use IG_PDE_postscript_set_data and IG_PDE_postscript_set_data_stream to attach data to the object. If hDataStream is non-NULL, then data will be ignored.

If data is non-NULL and hDataStream is NULL, the data must contain nDataSize number of bytes as specified in the AT_PDE_PSATTRS.

Call IG_PDE_element_release to dispose of the created object when finished with it.