DAEmbedFileStreams

Document manipulation, Direct access functionality

Description

Converts any stream object where the data is stored in an external file into a regular embedded stream object.

Syntax

Delphi

Function TPDFlib.DAEmbedFileStreams(FileHandle: Integer; Const RootPath: WideString): Integer;

ActiveX

Function PDFlib::DAEmbedFileStreams(FileHandle As Long, RootPath As String) As Long

DLL

int DLDAEmbedFileStreams(int InstanceID, int FileHandle, const wchar_t* RootPath);
int DLDAEmbedFileStreamsA(int InstanceID, int FileHandle, const char* RootPath);

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
RootPathThe directory to use as the root for relative paths.

Return values

Returns 1 when the external file streams have been converted. Returns 0 when FileHandle is invalid.