Afficher les caractères supplémentaires Unicode dans le PDF de sortie avec C++ par Aspose.Cells

Rendre les caractères Unicode supplémentaires dans le PDF de sortie par Aspose.Cells

La capture d’écran suivante montre comment Aspose.Cells a rendu le fichier Excel source en PDF de sortie. Comme vous pouvez le voir, les trois caractères Unicode supplémentaires ont été rendus exactement de la même manière que par Microsoft Excel.

todo:image_alt_text

Code d’exemple

Vous pouvez utiliser ce code d’exemple pour convertir le fichier Excel source en PDF de sortie.

#include <iostream>
#include "Aspose.Cells.h"

using namespace Aspose::Cells;

int main()
{
    Aspose::Cells::Startup();

    // Source directory path
    U16String srcDir(u"..\\Data\\01_SourceDirectory\\");

    // Output directory path
    U16String outDir(u"..\\Data\\02_OutputDirectory\\");

    // Path of input excel file
    U16String inputFilePath = srcDir + u"unicode-supplementary-characters.xlsx";

    // Path of output PDF file
    U16String outputFilePath = outDir + u"RenderUnicodeInOutput_out.pdf";

    // Load the source excel file containing Unicode Supplementary characters
    Workbook wb(inputFilePath);

    // Save the workbook as PDF
    wb.Save(outputFilePath, SaveFormat::Pdf);

    std::cout << "Workbook saved successfully with Unicode Supplementary characters!" << std::endl;

    Aspose::Cells::Cleanup();

    return 0;
}