Models.cs 753 B

1234567891011121314151617181920212223242526272829303132333435
  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 PageSnapshotCommunicationData
  20. {
  21. public int PageIndex { get; set; }
  22. public int ZoomLevel { get; set; }
  23. public byte[] ImageData { get; set; }
  24. }
  25. class RenderedPageSnapshot : PageSnapshotIndex
  26. {
  27. public SKImage Image { get; set; }
  28. }