Specify how to cross a string in output PDF and image

Possible Usage Scenarios

When a cell contains text or a string that is larger than the width of the cell, the text overflows if the next cell in the next column is null or empty. When you save your Excel file to PDF/Image, you can control this overflow by specifying the cross‑type using the TextCrossType enumeration. It has the following values:

Specify how to cross a string in output PDF/Image using TextCrossType

The following sample code loads the sample Excel file and saves it to PDF/Image format by specifying different TextCrossType. The sample Excel file and output files can be downloaded from the following links:

sampleCrossType.xlsx

outputCrossType.pdf

outputCrossType.png

Sample Code