Aspose.Cells ile C++ kullanarak Unicode Yardımcı karakterlerini çıktı PDF sinde Göster

Aspose.Cells ile çıktı PDF’de Unicode Ek Sayısal karakterlerin oluşturulması

Aşağıdaki ekran görüntüsü, Aspose.Cells’ın kaynak excel dosyasını çıktı PDF’ye nasıl dönüştürdüğünü göstermektedir. Görebileceğiniz gibi, tüm üç Unicode Ek Sayısal karakter Microsoft Excel tarafından yapılan gibi tam olarak oluşturulmuştur.

todo:image_alt_text

Örnek Kod

Kaynak excel dosyasını çıktı PDF’ye dönüştürmek için bu örnek kodu kullanabilirsiniz.

#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;
}