> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IsPdfPortfolioFromStream Method of the Engine Object

This method finds out if an input PDF file added from the stream is a PDF Portfolio. Each PDF Portfolio file may contain several files of various types (textual documents, presentations, drawings, etc.).

## Syntax

### C++

```cpp theme={null}
HRESULT IsPdfPortfolioFromStream(
  IReadStream*            Stream,
  IImagePasswordCallback* Callback,
  VARIANT_BOOL*           Result
);
```

### C\#

```csharp theme={null}
bool IsPdfPortfolioFromStream(
  IReadStream             Stream,
  IImagePasswordCallback  Callback
);
```

### Visual Basic .NET

```vb theme={null}
Function IsPdfPortfolioFromStream( _
  Stream As IReadStream, _
  [Callback As IImagePasswordCallback = Nothing] _
) As Boolean
```

## Parameters

Stream

\[in] Refers to the interface of the user-implemented object of the type [IReadStream](/fine-reader/engine/api-reference/supplementary-objects-and-methods/ireadstream) containing a PDF file to check if it is a PDF Portfolio or not.

Callback

\[in] This variable refers to the interface of the user-implemented object of the type [ImagePasswordCallback](/fine-reader/engine/api-reference/image-related-objects/iimagepasswordcallback) which is used to handle possible password requests for accessing PDF files. This parameter is optional and may be 0 in which case password-protected files cannot be checked.

Result

\[out, retval] This parameter returns TRUE if a PDF file is a PDF Portfolio and FALSE if it is not.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## Remarks

In Linux, this method does not work if the Engine object is loaded as an out-of-process server.

## See also

[Engine](/fine-reader/engine/api-reference/engine-object-iengine-interface)

[IImagePasswordCallback](/fine-reader/engine/api-reference/image-related-objects/iimagepasswordcallback)
