HomePageInsertDialogModel.cs 601 B

1234567891011121314151617181920212223
  1. using ComPDFKit.PDFDocument;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace PDF_Office.Model.HomePageToolsDialogs
  8. {
  9. public class HomePageInsertDialogModel
  10. {
  11. public string FilePath = "";
  12. public int InsertIndex = 1;
  13. public string Password = "";
  14. public string InserPageRange(CPDFDocument doc)
  15. {
  16. if (doc.PageCount < 1) { return ""; }
  17. if (doc.PageCount == 1) { return "1"; }
  18. return "1" + "-" + doc.PageCount.ToString();
  19. }
  20. }
  21. }