Name
doc:SaveToFile -- save document to a file
Synopsis
status = doc:SaveToFile(filename)
Function
doc:SaveToFile() saves the current document to a file.

Returns #HPDF_OK on success, otherwise it returns an error code and the error handler is called.

Inputs
filename
The name of file to save.
Results
status
status code
Errors
#HPDF_INVALID_DOCUMENT - An invalid document handle is set.

#HPDF_FAILED_TO_ALLOC_MEM - Memory allocation failed.

#HPDF_FILE_IO_ERROR - An error occurred while processing file I/O.


Show TOC