NewPostScriptXObjectA

Document properties

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to NewPostScriptXObject and string arguments are interpreted using the current SetAnsiMode code page

Adds a PostScript XObject to the document. If the PostScript XObject is drawn onto the page with the DrawPostScriptXObject function the contents of the PostScript XObject will be placed into the generated PostScript for the page when printed to a PostScript printer

Syntax

Delphi

Function DLNewPostScriptXObjectA(InstanceID: Integer; PS: PAnsiChar): Integer;

DLL

int DLNewPostScriptXObjectA(int InstanceID, const char * PS);

Parameters

PSThe PostScript that will be inserted

Return values

0The PostScript XObject could not be added
Non-zeroA reference to the PostScript XObject which can be used with the DrawPostScriptXObject function