KeyView 24.1

# Partitioning

To increase the flexibility of KeyView output, you can output the HTML rendering of 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. This option allows for highly flexible and customizable output.

For each partition, KeyView 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.

The KeyView interface allows you to 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.

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-2023 Open Text
Version 24.1 | Last updated December 2023

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: IDOL KeyView 24.1

Topic Title: Partitioning