OneNoteUtils.cs 515 B

123456789101112131415161718192021222324
  1. using Aspose.Note;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OneNote2PDF.Utils
  8. {
  9. class OneNoteUtils
  10. {
  11. string dataDir = "";
  12. public bool One2PDF(string filePath)
  13. {
  14. Document oneFile = new Document(dataDir + "Aspose.one");
  15. dataDir = dataDir + "SaveWithDefaultSettings_out.pdf";
  16. oneFile.Save(dataDir, SaveFormat.Pdf);
  17. return true;
  18. }
  19. }
  20. }