Skip to end of metadata
Go to start of metadata



function SaveDocTo(writeProtected: Boolean; const Filename: PAnsiChar): LongBool; stdcall;


HRESULT _stdcall SaveDocTo([in] VARIANT_BOOL WriteProtected, [in] BSTR FileName, [out, retval] VARIANT_BOOL* Value);


This function will save the loaded document to the place given in filename. If a file with the same name already exists, it will be deleted. If you set writeProtected to True, the write protect attribute of the file will be set.

The function will return True, if the file was saved successfully and False, if the file could not be saved (e.g. because an existing file in the same path with the same name could not be deleted or the given path leads to a read-only media).

C# sample   

// Save Document without write protection under c:\temp
SignAPIv4.SaveDocTo(false, @"c:\temp\signed.pdf");




  • No labels