IPXC_Document::WriteTo Method

From PDF XChange PDF SDK
Jump to: navigation, search


Writes the document to the given destination.

Syntax

HRESULT WriteTo([in]                      IUnknown*      pDest,
                [in, defaultvalue(NULL)]  IProgressMon*  pProgress,
                [in, defaultvalue(0)]     ULONG          nFlags);

Parameters

pDest
[in] Pointer to IUnknown* containing the destination. Can be IAFS_File, IStream or null. If null value is specified the document will be saved to the file that it was opened from.
pProgress
[in, defaultvalue(NULL)] Pointer to IProgressMon containing the custom progress if one is needed.
nFlags
[in, defaultvalue(0)] Value of ULONG containing the document write flags.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IPXC_Document