Guest User

Untitled

a guest
Aug 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. // Directory path for input and output files.
  2. String dirPath = "D:\\Download\\";
  3.  
  4. // Specify that you want to load TSV file.
  5. LoadOptions opts = new LoadOptions(LoadFormat.TSV);
  6.  
  7. // Load your sample TSV file inside the Workbook object using specified LoadOptions.
  8. com.aspose.cells.Workbook wb = new Workbook(dirPath + "sampleConvertTSVToPDF.tsv", opts);
  9.  
  10. // Specify PDF Save Options - One Page Per Sheet
  11. PdfSaveOptions pdfOpts = new PdfSaveOptions();
  12. pdfOpts.setOnePagePerSheet(true);
  13.  
  14. // Save TSV file to PDF with One Page Per Sheet option.
  15. wb.save(dirPath + "outputConvertTSVToPDFWithOnePagePerSheetOption.pdf", pdfOpts);
Add Comment
Please, Sign In to add comment