Models.cs 592 B

12345678910111213141516171819202122232425262728
  1. using SkiaSharp;
  2. namespace QuestPDF.Previewer;
  3. class DocumentStructure
  4. {
  5. public bool DocumentContentHasLayoutOverflowIssues { get; set; }
  6. public ICollection<PageSize> Pages { get; set; }
  7. public class PageSize
  8. {
  9. public float Width { get; set; }
  10. public float Height { get; set; }
  11. }
  12. }
  13. class PageSnapshotIndex
  14. {
  15. public int PageIndex { get; set; }
  16. public int ZoomLevel { get; set; }
  17. public override string ToString() => $"{ZoomLevel}/{PageIndex}";
  18. }
  19. class RenderedPageSnapshot : PageSnapshotIndex
  20. {
  21. public SKImage Image { get; set; }
  22. }