mittwald / typo3-web2pdf

A TYPO3 extension for rendering content as PDF
GNU General Public License v2.0
18 stars 20 forks source link

Empty Page with fluid_styled_content #58

Closed Pavitro closed 6 years ago

Pavitro commented 8 years ago

Using fluid_styled_content with TYPO3 7.6.x I get only an empty PDF file.

Scopestyle commented 8 years ago

Hi @Pavitro this might have something to do with CSS compression. See my workaround here.

Pavitro commented 8 years ago

Hi Scopestyle, you're right. Thanks a lot!

webdev2027 commented 8 years ago

Hi everyone, I've the same problem. Install the extension, include static template, insert as a plugin or in template .. I've got always an empty pdf. (TYPO3 7.6.10, fluid_styled_content, PHP 5.6.)

The other bugs & feedback from Scopestyle doesn't help me at all. I can write an own template, translate the locallang, ... no problem. No compression for CSS files.

I try the extension with the TYPO3 Introduction package and it works 'out of the box'. (css_styled_content)

Still not working with fluid_styled_content? No error, only an empty PDF.

gg-philipp-duell commented 7 years ago

Also creates an empty pdf when html output is reduced to one line. e.g. when using the extension "sourceopt" Maybe sourceopt does not work exactly when reducing the html. But for anybody who faces the problem of an empty pdf this could be a hint. web2pdf works fine, if html-output is not reduced.

webdev2027 commented 7 years ago

Hi Philipp, I don't use Ext.sourceopt or Ext.min Ghostscript is installed. Now I've got an other error: WriteHTML() requires $html be an integer, float, string, boolean or an object with the __toString() magic method. at typo3conf/ext/web2pdf/Vendor/mpdf/mpdf/mpdf.php in line 15884. I've updated the extension to 1.1.6 (TYPO3 7.6, PHP5.6, GraphicsMagick) ?!?

kpurrmann commented 6 years ago

Should be fixed with #66.