Document Solutions for Excel, Java Edition | Document Solutions
File Operations / Export to PDF / Export Vertical Text
In This Topic
    Export Vertical Text
    In This Topic

    DsExcel Java allows users to export Excel files with vertical text to PDF without any issues.

    While saving an Excel file with vertical text correctly to a PDF file, the following properties can be used -

    Refer to the following example code in order to export vertical text to PDF.

    Copy Code
    // Initialize workbook
    Workbook workbook = new Workbook();
    // Fetch default worksheet
    IWorksheet worksheet = workbook.getWorksheets().get(0);
    // Fetch the cell range A1
    IRange a1 = worksheet.getRange("A1");
    // Setting Cell A1 Text
    a1.setValue("This is a vertical text");
    // Formatting A1 cell
    // Saving workbook to PDF"6- ExportVerticalTextToPDF.pdf", SaveFileFormat.Pdf);

    Note: The following limitations must be kept in mind while exporting Excel files with vertical text to PDF -
    • The orientation can only be set to 0, 90, -90 and 255. Other values will be treated as 0 while rendering the PDF file.
    • If the font name starts with "@" and the orientation is 255, DsExcel will ignore the "@".