GetEmbeddedFileContentToStream

Document properties

Description

Extracts the specified embedded file and writes the content to the specified stream.

Syntax

Delphi

function TPDFlib.GetEmbeddedFileContentToStream(Index: Integer; OutStream: TStream): Integer;

ActiveX

Function PDFlib::GetEmbeddedFileContentToStream(Index As Long, OutStream As Long) As Long

Parameters

IndexThe index of the embedded file. Must be a value between 1 and the value returned by EmbeddedFileCount.
OutStreamThe TStream object to write the contents to

Return values

0Could not write to the specified stream or Index parameter was invalid.
1Success