HomePageInsertDialogModel.cs 612 B

12345678910111213141516171819202122
  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. if (doc.PageCount < 1) { return ""; }
  16. if (doc.PageCount == 1) { return "1"; }
  17. return "1"+"-"+ doc.PageCount.ToString();
  18. }
  19. }
  20. }