Closed (fixed)
Project:
PDF Metadata
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2023 at 13:50 UTC
Updated:
31 Jul 2023 at 00:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ethantComment #3
ethantComment #4
ethantComment #5
ethantComment #6
ethantComment #7
ethantComment #8
ethantComment #9
ethantComment #10
ethantComment #11
ethantComment #14
j-barnes commented@ethan - Great find, it looks like mpdf needed to have the temp location explicitly set to avoid having it use the vendor location which was causing permission issues on certain environments like Acquia Platform. This lead to a serialization error because the logger function was trying to print out the entire exception.
I've updated the logger to use
$e->getMessage()and now pull in the temp location via filesystem and have also cleaned up some of the types.Thanks again, going to leave this open for a bit for testing.
Comment #15
j-barnes commentedComment #16
j-barnes commentedUnfortunately it looks like mPDF uses FPDI which does not work on PDFs above v1.4 (at least the free version). Updating MR to use GhostScript instead which should have increased performance and works on 1.7+.
Comment #17
sunny-lee commentedPDF metadata patches and modules works with Drupal 10 and PHP 8.1
Comment #18
j-barnes commentedComment #20
j-barnes commentedComment #21
j-barnes commented