You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use PHPWord (and PHPSpreadsheet) to convert word/excel (and Openoffice equivalent) files into PDF (by converting them in HTML then using DomPDF). When my file has pictures in it, the rendered HTML size exploses : for instance a 1MB .docx file goes into a 36MB html string. (The PDF conversion then brings it back to 26MB, which is still way too much) After dumping the HTML, I would guess it's the base64 conversion of the pictures that makes everything go crazy.
Describe the Bug
I use PHPWord (and PHPSpreadsheet) to convert word/excel (and Openoffice equivalent) files into PDF (by converting them in HTML then using DomPDF). When my file has pictures in it, the rendered HTML size exploses : for instance a 1MB .docx file goes into a 36MB html string. (The PDF conversion then brings it back to 26MB, which is still way too much) After dumping the HTML, I would guess it's the base64 conversion of the pictures that makes everything go crazy.
Steps to Reproduce
Using that file :
test-long.docx
Expected Behavior
I would expect it to be more concise. I understand that the conversion may produce a bigger filer, but in that case it's more than 10x bigger.
Context
Please fill in your environment information:
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
Best regards,
The text was updated successfully, but these errors were encountered: