# fpGetRestrictionsFile()

This function gets document restrictions from a file. For more information about this feature see Document Restrictions.

## Syntax

    KVErrorCode pascal fpGetRestrictionsFile(
        void* pContext,
        const char* szInputFile,
        KVRestrictions* pRestrictions);

## Arguments

`pContext` | A pointer returned from fpInit() or fpInitWithLicenseData().
`szInputFile` | A pointer to the input file.
`pRestrictions` | A pointer to the KVRestrictions structure. Use the macro `KVStructInit` to initialize the KVStructHead structure before calling this function.

## Returns

The return value is an error code. See KVErrorCode.

## Discussion

- This function runs in-process or out-of-process. See The Filter Process Model.
- 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.

- On Windows, `szInputFile` must be in the local Windows code page.

_FT_HTML5_bannerTitle.htm