We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28439
    • 222 Posts
    Today I released version 0.1.3.1 of htmlToPDF for MODX Evolution.

    The following changes where done

    TCPDF is updated to Version 5.9.145.
    This MODX snippets uses TCPDF, available at http://www.tcpdf.org/, to create the PDF files from the content of a web document, published with MODx. TCPDF 5.9.145 is part of the package.

    The project is hosted on GitHub, you will find everything on the project page at https://github.com/sjstoelting/MODx-htmlToPDF.

    The downloads are available at:

    https://github.com/sjstoelting/MODx-htmlToPDF/downloads

    et TCPDF,
    htmlToPDF, or the document output to other paths, as defined by default.



    The package is not available through the MODX packages, because it is to large for uploads. It does include TCPDF.
      Gone away and found a better place to stay
      • 38917
      • 17 Posts
      Hello,

      This is exactly what I need but I can't make it work correctly. I'm getting the following error:

      « MODx Parse Error »MODx encountered the following error while attempting to parse the requested resource:
      « An error occured in file assets\snippets\htmlToPDF\class.htmlToPDF.php in line 407: The given image file "images/" name does not exist. code: assets\snippets\htmlToPDF\class.htmlToPDF.php »

      This is strange because this file 'images' exists and is located inside of tcpdf folder.
      I've done everything you wrote in documentation step by step. I can't figure out what I'm doing wrong, I'm not a developer and I only know some basics of php programming.

      In the file class.htmlToPDF.php I've also noticed the lines that look as if they were misspelled: TCPFD_IMAGE_FOLDER - shouldn't it be TCPDF_IMAGE_FOLDER?
      (Anyway after editing this, nothing changes.)
      I would greatly appreciate your help!

      JaneVi
        muriz.com