Closed rtp-cgs closed 1 week ago
Your PR suggests that the underlying issue is that TYPO3 does not supply the dimensions for the PDF document. Is that correct? Do we know why this is? Should TYPO3 actually supply the dimensions in the first place?
Wondering if it's possible to add some post-uploading event handler and use something like https://github.com/smalot/pdfparser to read correct dimensions and then persist those in the sys_file
table.
I'm going to fix this via several changes:
ImgProxy
to handle PDF files, which is a PRO feature.Maybe this could help to get the filesizes: https://docs.imgproxy.net/usage/getting_info
I've fixed the issue by determining PDF dimensions prior to processing.
The PDF preview images are missing in the file selector.