File Content Extraction 26.1
HTML Export SDK Java Programming Guide

# Partitioning

Partitioning provides highly flexible and customizable output, by rendering different parts of a file to different partitions. These partitions are snippets of HTML output for a given portion of the file. The calling code can then combine these partitions into the desired output structure.

For each partition, File Content Extraction returns information about the partition, such as dimensions and background color, which you can use to better reflect the appearance of the original document in your output.

File Content Extraction can create new partitions for several reasons. The following table lists the available reasons.

Partition Start Reason | Description
--- | ---
Format Standard | This start reason applies only to documents that were converted by using the presentation graphic or spreadsheet structured access layers. The format standard start reason is: a new worksheet for spreadsheet formats a table for database formats a slide for presentation graphic formats a graphic for image/graphic formats
Heading | A heading in a Word Processing document.
Hard Break | A hard page break in a Word Processing document.
Block Size | The block size limit was reached.
Page Size Change | A page size change in a Word Processing document.
Soft Break | The page height was reached in a Word Processing document.

File Content Extraction does not currently provide a way to correctly output headers, footers, footnotes and endnotes when you use Partitioning.

To enable partitioning

- In the Java API, enable partitioning by calling the `setPartitionOn` method of your `HtmlExport` object, for example:

      objHtmlExport.setPartitionOn(
          new HashSet<>(Arrays.asList(ConfigurablePartitionStartReason.HARD_BREAKS,
              ConfigurablePartitionStartReason.PAGE_SIZE_CHANGE))
      );

  After converting a document, you can obtain information about the partitions that were created:

      List<PartitionInfo> partitionList = objHtmlExport.getPartitionInfoList();

Copyright 1997-2025 Open Text
Version 26.1 | Last updated January 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.1

Topic Title: Partitioning