File Content Extraction 25.4
Filter SDK C Programming Guide

# fpGetRestrictionsStream()

This function gets document restrictions from an input stream. For more information about this feature see Document Restrictions.

DEPRECATED: The `fpGetRestrictionsStream()` function is deprecated in KeyView 23.2.0 and later. OpenText recommends that you create a `KVDocument` to represent each document, and use fpGetRestrictions() instead.

This function is still available for existing implementations, but it might be incompatible with new functionality and might be removed in future.

## Syntax

    KVErrorCode pascal fpGetRestrictionsStream(
        KVFilterSession session,
        KVInputStream*  pInput,
        KVRestrictions* pRestrictions);

## Arguments

`session` | A Filter session that you initialized by calling fpInit().
`pInput` | A pointer to the input stream.
`pRestrictions` | A pointer to the KVRestrictions structure. Use the macro `KVStructInit` to initialize the KVStructHead structure before calling this function.

## Returns

- If the call is successful, the return value is `KVError_Success`.
- If the call is not successful, the return value is an error code that indicates the problem.

## Discussion

- Restrictions can be reported for DOCX, XLSX, PPTX, and PDF format only.
- Restrictions may not be reported if reading the document content is itself restricted.

Copyright 1997-2025 Open Text
Version 25.4 | Last updated October 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: File Content Extraction 25.4

Topic Title: fpGetRestrictionsStream()