Debenu Quick PDF logo

DASaveAsFile

Document management, Direct access functionality

Description

Rewrites the entire file, including all changes, to a new file. This operation may take some time with large files or files with many objects. The original file is closed after this operation and the file handle will no longer be valid. The original file cannot be overwritten. Use DAAppendFile if you want to append changes to original file.

Syntax

Delphi

function TDebenuPDFLibrary1511.DASaveAsFile(FileHandle: Integer; 
  OutputFileName: WideString): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::DASaveAsFile(FileHandle As Long,
  OutputFileName As String) As Long

DLL

int DPLDASaveAsFile(int InstanceID, int FileHandle, wchar_t * OutputFileName)

Parameters

FileHandle A handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
OutputFileName The path and name of the new document to create.

Return values

0 The new file could not be created
1 The document was saved to the new file successfully

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport