pdf preview is broken on safari

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Russ
    Senior Member
    • Feb 2022
    • 423

    pdf preview is broken on safari

    Hey guys!
    Having issues with .pdf files preview on a safari browser.



    Check out the screenshot, I checked on another browser, works fine, I also checked another website as a dummy file, it works,
    problem only in ESPO with Safari.



    Different versions of Safari tested. 16 and 17.
    Attached Files
    Last edited by yuri; 07-06-2023, 05:52 PM.
  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    #2
    Tested on both type of PDF? domPDF and (I forgot the other one, TCPPDF?)?

    Does it only effect EspoCRM PDF or all PDF?

    Can you download it and open the PDF file locally and still get same bad result?

    Can you re-save the file using another PDF file and open it again in Safari, any different result?

    Comment

    • Russ
      Senior Member
      • Feb 2022
      • 423

      #3
      >Tested on both type of PDF? domPDF and (I forgot the other one, TCPPDF?)?
      ​Hi, this is just a document or a stream message, same thing, same issue

      >Does it only effect EspoCRM PDF or all PDF?
      ​EspoCRM, I tested other websites, ok

      >Can you download it and open the PDF file locally and still get same bad result?
      Nope, it works good after downloaded


      >Can you re-save the file using another PDF file and open it again in Safari, any different result?
      It works fine, except when being viewed from espocrm in Safari

      Comment

      • Russ
        Senior Member
        • Feb 2022
        • 423

        #4
        Please help, bug persists, 10 out of 10.



        31 seconds that shows everything on a video. Sorry for external noise.

        Comment

        • Russ
          Senior Member
          • Feb 2022
          • 423

          #5
          Vadym, guys, please have a look here

          Comment

          • item
            Active Community Member
            • Mar 2017
            • 1476

            #6
            Hi Russ,

            disable cache in admin section.
            clear cache in admin section
            clear cache in safari

            then try to download and give info if file is corrupt when download.
            If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

            Comment

            • yuri
              Member
              • Mar 2014
              • 8440

              #7



              Might be related.

              Likely issue not related to Espo.
              If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

              Comment

              • Russ
                Senior Member
                • Feb 2022
                • 423

                #8
                I bet it is Safari's issue but they are not resolving it and at the same time, dummy .pdf link from w3schools or amazon s3 works just fine, can't we do something?

                Thanks

                Comment

                • yuri
                  Member
                  • Mar 2014
                  • 8440

                  #9
                  Try that dummy pdf to view from Espo. I don't think I can help here. Espo just returns PDF file. It's not a feature that we can fix somehow.
                  Last edited by yuri; 07-06-2023, 06:51 PM.
                  If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                  Comment

                  • Russ
                    Senior Member
                    • Feb 2022
                    • 423

                    #10
                    Originally posted by yuri
                    Try that dummy pdf to view from Espo. I don't think I can help here. Espo just returns PDF file. It's not a feature that we can fix somehow.
                    I did it on the video above, same .pdf, opens fine on w3.org and not in espo

                    Thanks

                    Comment

                    • Russ
                      Senior Member
                      • Feb 2022
                      • 423

                      #11

                      Comment

                      • yuri
                        Member
                        • Mar 2014
                        • 8440

                        #12
                        Maybe because Espo uses stream downloading: https://github.com/espocrm/espocrm/b...nload.php#L107

                        I can't check now as I don't have Safari.
                        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                        Comment

                        • Russ
                          Senior Member
                          • Feb 2022
                          • 423

                          #13
                          Originally posted by yuri
                          Maybe because Espo uses stream downloading: https://github.com/espocrm/espocrm/b...nload.php#L107

                          I can't check now as I don't have Safari.
                          Can we do something with that? Thanks

                          Comment

                          • yuri
                            Member
                            • Mar 2014
                            • 8440

                            #14
                            I can't look into this issue at the moment and the nearest future. If you or someone else could try to figure out what is the cause of the problem and how to make it work in Safari, I'd appreciate. Any help, input appreciated.
                            If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                            Comment

                            • Vadym
                              Super Moderator
                              • Jun 2021
                              • 345

                              #15
                              Hi Russ,

                              Tested identical scenario on Safari 16.5.1/Ventura 13.4.1, with Dompdf and Tcpdf engines, works as expected.​

                              Comment

                              Working...