Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author WP Swings

    (@wpswings)

    Hello,

    Thanks for using our plugin,

    As per your mentioned screenshot, we are unable to understand your query I request you to please create a short video so that we can help you in a much better way.

    Regards,

    Thread Starter gerem

    (@gerem)

    Hello,

    Thank you for your quick answer.

    I retest to create a video for you, but i see (i think) that the anser doesn’t come from your plugin.

    But you can maybe help me :

    I test on my localhost to download the PDF on Chrome and Safari (on Mac) -> everything is ok

    I test to download the PDF on my website (online), it is not working on Safari, i get a file name_of_post.pdf.download and the file never download.

    So i get that my hosting provider block something.

    If you have any idea to help me to explain this problem ??

    Thread Starter gerem

    (@gerem)

    My host provider don’t have a mac… and tell me to see with you…

    here the video : https://drive.google.com/file/d/1iw5-PNH54iSvFZZ7qw8WcpTBo_AKS5Ij/view

    I hope you can help me

    Thread Starter gerem

    (@gerem)

    The url for your test on the website : https://orgalib.com/politique-de-confidentialite/

    Thread Starter gerem

    (@gerem)

    I also test on your live demo, same problem :

    https://demo.wpswings.com/pdf-generator-for-wp-pro/?utm_source=wpswings-pdf-demo&utm_medium=pdf-pro-page&utm_campaign=demo

    I see that on mobile : iOS on safari or chrome browser, it doesn’t work

    Plugin Author WP Swings

    (@wpswings)

    Hello,

    Thanks for sharing the video of the issue.

    We have checked the issue you are facing because your network is blocking the data so please connect with your host provider they will help you with this.

    Regards,

    Thread Starter gerem

    (@gerem)

    Sorry but on the computer, Mac your are wrong because it is working on chrome but not on safari…

    you can test with your live demo. You have the same problem…

    for thé mobile, i test with to phone provider, same problem.
    i test on wifi too, same problem ..

    And my host provider tell me to contact you because every thing is fine on their side.

    Thread Starter gerem

    (@gerem)

    I resolve the problem for Mac > safari and mobile download.

    You have to modify the file : /pdf-generator-for-wp/common/class-pdf-generator-for-wp-common.php

    function : pgfw_generate_pdf_from_library()

    Line 340 add on the if ( ‘download_locally’ === $pgfw_generate_mode ) {

    the code exit() at the end of the if.

    So the if is now like :

    if ( 'download_locally' === $pgfw_generate_mode ) {
    $path = $upload_basedir . $document_name . '.pdf';
    $dompdf->stream(
    $document_name . '.pdf',
    array(
    'Attachment' => 1,
    )
    );
    exit();
    }

    Can you add this to the next release ?

    Thanks a lot

    Plugin Author WP Swings

    (@wpswings)

    Hello,

    Thanks for the suggestion,

    We will surely look into this and add this in our next coming update.

    Regards,

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘PDF generator not working with safari on MAC’ is closed to new replies.