We use the print-to-pdf function to create reports with some tables with data. I keep running in to a couple of challenges and i hope someone can point me in the right direction.
1. Images are uploaded and used in the PDF without resizing
Users upload images that are used in the report. But if they upload a 5MB image, there will be a 5MB image in the PDF. Is there any way to use the thumbnails or compress the images in any way?
2. Images in EspoCRM are automatically corrected in orientation, they are not in the PDF
If a user uploads a image that was taken upside down or sideways, EspoCRM corrects this and shows the images normally. If we generate a PDF, the orientation is taken from the image and the image shows sideways of upside down. Is there any way to force the PDF engine to do this as well?
3. I cant figure out how to define cell background color in tables in DOMPDF (ANSWERED)
While i got this to works in Tcpdf perfectly fine, i tried many times and failed with DOMpdf. Any help on this? I want to switch to DOMPDF so i can generate PDF's for multiple records at ones.
1. Images are uploaded and used in the PDF without resizing
Users upload images that are used in the report. But if they upload a 5MB image, there will be a 5MB image in the PDF. Is there any way to use the thumbnails or compress the images in any way?
2. Images in EspoCRM are automatically corrected in orientation, they are not in the PDF
If a user uploads a image that was taken upside down or sideways, EspoCRM corrects this and shows the images normally. If we generate a PDF, the orientation is taken from the image and the image shows sideways of upside down. Is there any way to force the PDF engine to do this as well?
3. I cant figure out how to define cell background color in tables in DOMPDF (ANSWERED)
While i got this to works in Tcpdf perfectly fine, i tried many times and failed with DOMpdf. Any help on this? I want to switch to DOMPDF so i can generate PDF's for multiple records at ones.
Comment