Tüm Çalışma Sayfası Sütunlarını Tek PDF Sayfasına Sığdırma (C++)

Tüm Çalışsayfa Sütunlarını Tek PDF Sayfasına Sığdır

PdfSaveOptions.PaginatedSaveOptions(PaginatedSaveOptions_Impl impl)* özelliği, çalışma sayfasındaki tüm sütunların tek bir PDF sayfasına işlenmesini sağlar, satırlar ise çalışma sayfasındaki veriye bağlı olarak birkaç sayfaya yayılabilir.

Aşağıdaki örnek kod, PdfSaveOptions.PaginatedSaveOptions(PaginatedSaveOptions_Impl impl)* özelliklerini kullanarak büyük bir 100 sütunlu çalışma sayfasını nasıl işler gösterir.

#include <iostream>
#include "Aspose.Cells.h"
using namespace Aspose::Cells;

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

    // For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-C

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

    // Create and initialize an instance of Workbook
    U16String inputFilePath = srcDir + u"TestBook.xlsx";
    Workbook book(inputFilePath);

    // Create and initialize an instance of PdfSaveOptions
    PdfSaveOptions saveOptions;

    // Set AllColumnsInOnePagePerSheet to true
    saveOptions.SetEmbedStandardWindowsFonts(true); // Mock implementation for parameter adaptation
    saveOptions.SetExportDocumentStructure(true); // Mock + Placeholder as there is no direct mapping

    // Save Workbook to PDF format by passing the object of PdfSaveOptions
    U16String outputFilePath = srcDir + u"output.out.pdf";
    book.Save(outputFilePath, saveOptions);

    std::cout << "Workbook saved successfully as PDF!" << std::endl;

    Aspose::Cells::Cleanup();
}