File Content Extraction 26.2
Filter SDK C Programming Guide

# fpGetRestrictions()

Gets document restrictions for a `KVDocument`. For more information about this feature see Document Restrictions.

## Syntax

    KVErrorCode (pascal* fpGetRestrictions)(
        KVDocument pDocument,
        KVRestrictions* pRestrictions);

## Arguments

`pDocument` | A `KVDocument` that you created with fpOpenDocumentFromFile() or fpOpenDocumentFromStream().
`pRestrictions` | A pointer to an existing KVRestrictions structure. Use the macro `KVStructInit` to initialize the KVStructHead structure before calling this function.

## Returns

The return value is an error code.

- If the call is successful, the return value is `KVError_Success` and the document restrictions are stored in `pRestrictions`.
- If the call is unsuccessful, 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-2026 Open Text
Version 26.2 | Last updated April 2026

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 26.2

Topic Title: fpGetRestrictions()