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.

[SOLVED] Export to ...
 
Notifications
Clear all

[SOLVED] Export to PDF error

3 Posts
2 Users
0 Reactions
3,061 Views
(@karl-binet)
Posts: 128
Active Member
Topic starter
 
[#5061]

Hi,

Version 7.0.1
NOTE: this errors occurs only when French - Canda is selected as language.
It's working fine when English is selected as language.

If i go to Opportunites and hit export to PDF i'm getting an error
Same for "Issues"

Some are working fine like, Risks, Project, i have not tried all of them.

ERROR : An error has occured on 2018-04-03 à 10:49:44

here what I get in projetor.log

2018-04-03 10:49:44.096 ** ERROR ** [V7.0.1] EXCEPTION **
2018-04-03 10:49:44.096
** ERROR ** [V7.0.1] on file '/var/www/html/external/html2pdf/src/Html2Pdf.php' at line (545)
2018-04-03 10:49:44.096
** ERROR ** [V7.0.1] cause = The output document name [] is not a PDF name
2018-04-03 10:49:44.096
** ERROR ** [V7.0.1] => #0 /var/www/html/view/print.php (245) -> output()
2018-04-03 10:49:44.096
** ERROR ***** [V7.0.1] => #1 /var/www/html/view/print.php (186) -> finalizePrint()

thanks


 
Posted : 03 Apr 2018 18H58
babynus
(@babynus)
Posts: 14957
Main Contributor Admin
 

Hi

This is an issue on V7.0.
In fact, generation of files with name containing accents fails (only on Linux not on Windows).
It is a security control that exists since V5.0 ... and it sends empty file name to html2pdf (external library generating pdf).
In fact, older version od html2pdf replaced emty file name with "document.pdf", but it does not do it any more....

To reteive correct behavior, corresponding to previous version, just add one line before 245 in /view/print.php, this way :

      if (!$outputFileName) $outputFileName='document.pdf';
      $html2pdf->Output($outputFileName);

Ticket #3298 recorded.
Fix (better that the one proposed) will be included in V7.0.3


 
Posted : 03 Apr 2018 22H41
(@karl-binet)
Posts: 128
Active Member
Topic starter
 

Hi Babynus,

the fix is working fine

Thanks


 
Posted : 03 Apr 2018 23H21
Share:

Scroll to Top