Announcement

Collapse
No announcement yet.

pdf preview is broken on safari

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • shalmaxb
    replied
    I guess you already tried all of these proposals: https://www.makeuseof.com/cant-open-...ri-how-to-fix/

    Leave a comment:


  • Russ
    replied
    Originally posted by yuri View Post
    Try change this line https://github.com/espocrm/espocrm/b...chment.php#L98

    to
    Code:
    ->writeBody($stream->getContents());
    Just for experiment. This would be not a proper fix.

    changed the line, cleared the cache/rebuild/private browser, didn't help

    Thanks for your help, I am ready to try more options
    Attached Files

    Leave a comment:


  • yuri
    replied
    Try change this line https://github.com/espocrm/espocrm/b...chment.php#L98

    to
    Code:
    ->writeBody($stream->getContents());
    Just for experiment. This would be not a proper fix.

    Leave a comment:


  • yuri
    replied
    > should I do/try something?

    We don't know. Both me and Vadym are not specialists on this matter. We hope you or someone else who can reproduce this issue could help.

    Leave a comment:


  • Russ
    replied
    Originally posted by Vadym View Post
    Hi Russ,

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

    Hey, thanks a lot!
    I have 4 different users (laptops) with this behavior, should I do/try something?

    Leave a comment:


  • Vadym
    replied
    Hi Russ,

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

    Leave a comment:


  • yuri
    replied
    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.

    Leave a comment:


  • Russ
    replied
    Originally posted by yuri View Post
    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

    Leave a comment:


  • yuri
    replied
    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.

    Leave a comment:


  • Russ
    replied

    Leave a comment:


  • Russ
    replied
    Originally posted by yuri View Post
    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

    Leave a comment:


  • yuri
    replied
    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.

    Leave a comment:


  • Russ
    replied
    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

    Leave a comment:


  • yuri
    replied



    Might be related.

    Likely issue not related to Espo.

    Leave a comment:


  • item
    replied
    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.

    Leave a comment:

Working...
X