Announcement

Collapse
No announcement yet.

New PHP PDF Library Integration

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

  • New PHP PDF Library Integration

    I'm looking to see if a different PHP PDF library would work within EspoCRM as I'm finding that the TCPDF module doesn't handle CSS very well at all compared to other open-source libraries available.

    When using the release version of EspoCRM, I have added the required PHP files from an alternative PDF library into the "vendor" folder and inside the application\Espo\Core\Pdf folder (I'm not using the Custom folder for these tests) however whenever I try to reference this from the calling PHP files (i.e. where the PDF functions are called), I always get a "Class XXX not found" error in the error log yet I am referencing any namespaces correctly plus all files in the "require" sections are present.

    Is there anything special that needs to be done with "composer" in order to bring in additional PHP libraries?

  • #2
    Hello,
    when i use library i do :
    - composer require phpoffice/phpword
    - composer dump-autoload -o
    and you can use '-ignore-platform-reqs' if you don't have some php extension installed.

    so i can use everywhere the class.

    never make a composer update !

    Regards

    Comment


    • #3
      We recorded video how to create extension with composer packages

      Comment


      • #4
        Thanks man for this video

        Comment

        Working...
        X