• Resolved quimparets

    (@quimparets)


    Hi.

    If I choose “Download PDF directly” in Action checkbox, when T try to download the PDF, it appears the message “Error 500”. May be the problem is in the server, but I ask you for if it’s possible anything wrong with the configuration of my DK PDF.
    The fact, what I would like is to get the pdf named with the title of the post. If I choose “Open in a new window” in the Action checkbox I get always the same name: mpdf.pdf

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author dinamiko

    (@dinamiko)

    Hi quimparets,

    seems a problem with your server configuration, if you can look at your server error log file, there will be a more concrete description of the problem.

    in dk-pdf / includes / dkpdf-functions.php in line 170 change this:
    $mpdf->Output();
    for this:

    global $post;
    $mpdf->Output( get_the_title( $post->ID ).'.pdf', 'I' );

    I’m going to add this to the next version of the plugin by default.

    Thanks,
    Emili

    Thread Starter quimparets

    (@quimparets)

    Ok, great! It works so well, thanks for this useful pluggin!
    Fantàstic, Emili, moltes gràcies!

    quim

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Download PDF directly’ is closed to new replies.