Announcement

Collapse
No announcement yet.

Workaround to TCPDF css limitations

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

  • #16

    custom/Espo/Custom/Services/PrintToWindow/Service.php is a typo, I apologize.

    The file name is PrintToWindowService.php the folder path is custom/Espo/Custom/Services/

    I corrected the post.

    I suggest that you look at the error log to see what might be the problem. These logs are located at the data/logs folder. If there is a 404 error the log will tell you at which script and even the line number in the script where the error is being thrown.

    I also suggest, if you are not familiar with the concept of Single Page Application (which Espo is one), that you check this article https://dzone.com/articles/how-singl...-actually-work to better understand the interactions between front end scripts and back end scripts.

    For further understanding of front end scripts, if you are not familiar with the concept of views, models and collections, you can read this article about Backbone.js https://adrianmejia.com/backbone-dot...tting-started/ which is the base library upon which Espo's front end is built, although bear in mind that Espo is NOT "just Backbone" Espo is a highly developed platform with its front end derived from Backbone.js.

    An analogy of comparing Espo to Backbone could be to compare jquery to javascript, jquery is written in Javascript but it is far more than plain javascript.

    Last edited by telecastg; 07-02-2020, 07:28 PM.

    Comment


    • #17
      It might just be me, but this is a warning for those who using this services.

      I'm getting an error 500 and blank page with this service after updating to v6.0.0.

      Don't have time to investigate further at the moment as I just want to fix my Installation; it got to do with the Real Estate extension which I use this Service (code) with.
      Last edited by esforim; 10-23-2020, 03:54 AM.

      Comment


      • #18
        Hello esforim,
        Any log files ?


        Comment


        • #19
          Update: Unfortunately Espo 7.x has made many custom implementations incompatible thus this extension is no longer available.

          If time permits, I might release a new commercial version that works with Espo 7.x in the future.

          Comment


          • esforim
            esforim commented
            Editing a comment
            Now I'm even more bit hesitant to upgrade.

        • #20
          Hi Telecastg

          I use your extension and will not be upgrading to 7.x unless they improve/add a print to pdf function.

          Thank you for your efforts so far.

          MATO

          Comment


          • #21
            Hi MATO

            Thanks for your kind words.

            Unfortunately there doesn't seem to be a better alternative than TCPDF which meets Espo criteria at present.

            In the meantime, this capability (render to window and use the browser's PDF engine instead of TCPDF) is now included in the eSignature extension which is compatible with Espo 7.x https://payhip.com/b/DgICV
            Last edited by telecastg; 01-27-2022, 03:54 PM.

            Comment

            Working...
            X