Screenshot PCF

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ต.ค. 2024

ความคิดเห็น • 4

  • @stephanusjonatan2903
    @stephanusjonatan2903 ปีที่แล้ว +1

    This is awesome.
    I've applied this to my canvas app, but I realize that this does not capture the pdf viewer or image viewer, unless you are displaying a pdf or image that is imported into the canvas app itself.
    If your pdf viewer or image viewer displays the pdf or image taken from a web API, it fails to capture the the pdf or image in the resultant screenshot.

    • @shaunpoore2356
      @shaunpoore2356 ปีที่แล้ว

      How?

    • @zaervex3686
      @zaervex3686 ปีที่แล้ว

      I believe how the screenshot works is that it is not taking the pixels that are on the screen and producing an image with that.
      Instead, it takes the HTML document and translates that into a PDF.
      That being said, if the pdf viewer or image viewer does not reference a file imported into the canvas app and instead uses a web API to get the file content, the web API isn't actually run when using the screenshot PCF.
      This results in a blank pdf or image.
      A great enhancement to this pcf is to use screenshot libraries that record the screen for a single frame, and convert the single frame into a jpeg or PNG file.
      This way, it doesn't matter where the file content is sourced from in the pdf or image viewers

  • @deividspiv6659
    @deividspiv6659 2 ปีที่แล้ว

    how can i do that?