Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Path of input TSV and output PDF files.
- intrusive_ptr<Aspose::Cells::System::String> inputTSVFile = new Aspose::Cells::System::String("D:\\Download\\sampleConvertTSVToPDF.tsv");
- intrusive_ptr<Aspose::Cells::System::String> outputPDFFile = new Aspose::Cells::System::String("D:\\Download\\outputConvertTSVToPDFDirectly.pdf");
- // Specify that you want to load TSV file.
- intrusive_ptr<Aspose::Cells::ILoadOptions> opts = Aspose::Cells::Factory::CreateILoadOptions(Aspose::Cells::LoadFormat_TabDelimited);
- // Load your sample TSV file inside the Workbook object using specified LoadOptions.
- intrusive_ptr<Aspose::Cells::IWorkbook> wb = Aspose::Cells::Factory::CreateIWorkbook(inputTSVFile, opts);
- // Save TSV file to PDF directly.
- wb->Save(outputPDFFile, Aspose::Cells::SaveFormat_Pdf);
Add Comment
Please, Sign In to add comment