Index

C/C++ Functions

pdDocSaveToStream

DT_SLONG pdDocSaveToStream(DT_PDDOC power_doc, DT_STREAM_DESC* sd)

Short Description: Save document to stream

The pdDocSaveToStream function saves the Power Engine document specified by the document instance power_doc to a file. The file will be in the native uncompressed PowerDoc format.

Parameters

ParameterDescription

power_doc

Handle of the Power Engine document to be saved.

sd

A valid pointer to the DT_STREAM_DESC structure which supplies the location of the output file to be created. The file will be in the native uncompressed PowerDoc format. Native PowerDoc files usually are usually recognized by their .pdc extension. If the specified output file already exists, it will be overwritten.

Return Value

If the function was successful, the return value is 1. Otherwise, the function returns a negative number.

Comments

PowerDoc files created by this function can be read using the pdDocAppendFromStream function.

Related Functions

pdDocAppendFromStream

Note 1

See How To Use D-Type Streams And Stream Macros.

 

Index