File Content Extraction 26.2
HTML Export SDK C Programming Guide

# fpSetPartitionOn

This function tells File Content Extraction when to begin a new partition. For more information, see Partitioning.

## Syntax

    KVErrorCode pascal fpSetPartitionOn(
        void* pContext,
        const KVPartitionSetOn* pSetPartitionOn);

## Arguments

`pContext` | A pointer to an Export session that you initialized by calling fpInit().
`pSetPartitionOn` | A pointer to a KVPartitionSetOn structure that tells File Content Extraction when to create a new partition.

## Returns

The return value is one of the error codes defined in KVErrorCode in `kverrorcodes.h`.

## Discussion

This function runs in-process or out-of-process. See Convert Files Out-of-Process.

When you convert out-of-process, you must call this function after the call to KVHTMLStartOOPSession() and before the call to KVHTMLEndOOPSession().

When you convert Word Processing documents with partitioning on hard breaks or page size changes:

- To create a table of contents by using the Export Tokens (see Export Tokens) in the KVHTMLTemplateEx structure, you must set the `pszChunkTemplate` member in KVHTMLTemplateEx.
- When you turn off partitioning on headings, you must not create a table of contents by using the Export Tokens (see Export Tokens) in the KVHTMLTemplateEx structure. Instead, OpenText recommends that you create a table of contents by using the information from fpGetPartitionInfoList.

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: fpSetPartitionOn