Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Directory path for input and output files.
- String dirPath = "D:\\Download\\";
- // Specify that you want to load TSV file.
- LoadOptions opts = new LoadOptions(LoadFormat.TSV);
- // Load your sample TSV file inside the Workbook object using specified LoadOptions.
- com.aspose.cells.Workbook wb = new Workbook(dirPath + "sampleConvertTSVToPDF.tsv", opts);
- // Specify PDF Save Options - One Page Per Sheet
- PdfSaveOptions pdfOpts = new PdfSaveOptions();
- pdfOpts.setOnePagePerSheet(true);
- // Save TSV file to PDF with One Page Per Sheet option.
- wb.save(dirPath + "outputConvertTSVToPDFWithOnePagePerSheetOption.pdf", pdfOpts);
Add Comment
Please, Sign In to add comment