Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Error with print to...
 
Notifications
Clear all

Error with print to pdf

3 Posts
2 Users
0 Reactions
2,398 Views
(@pipobru)
Posts: 180
Active Member
Topic starter
 
[#3952]

Hello i have this error when i use printtopdf function in planning:
2016-12-20 14:14:51.083 ** ERROR ** EXCEPTION **
2016-12-20 14:14:51.083
** ERROR ** on file '/var/www/html/external/html2pdf/vendor/tecnickcom/tcpdf/tcpdf.php' at line (2927)
2016-12-20 14:14:51.083
** ERROR ** cause = TCPDF ERROR: Some data has already been output, can't send PDF file
2016-12-20 14:14:51.083
** ERROR ** => #0 /var/www/html/external/html2pdf/vendor/tecnickcom/tcpdf/tcpdf.php (7620) -> Error()
2016-12-20 14:14:51.083
** ERROR ** => #1 /var/www/html/external/html2pdf/html2pdf.class.php (390) -> Output()
2016-12-20 14:14:51.083
** ERROR ** => #2 /var/www/html/view/print.php (239) -> Output()
2016-12-20 14:14:51.083
** ERROR ***** => #3 /var/www/html/view/print.php (183) -> finalizePrint()

I have solve with this modification:
In /var/www/html/view/print.php i have add this line: ob_end_clean(); after line 238 ($html2pdf->writeHTML($html2pdf->getHtmlFromPage($content));)


 
Posted : 20 Dec 2016 16H34
babynus
(@babynus)
Posts: 14954
Main Contributor Admin
 

Hi,

Thnaks for the workaround.
It will be included in next version / patch

But source is due to incorrecly ended class file.
Could you tell us what did you want to export as PDF when you got the issue ?


 
Posted : 20 Dec 2016 16H44
(@pipobru)
Posts: 180
Active Member
Topic starter
 

I would to export my gantt planning. Print gantt planning is very important for display in office or communicate by PDF with customer.


 
Posted : 20 Dec 2016 16H49
Share:

Scroll to Top