Go Back   ISPsystem.com Forums > BILLmanager > General questions

Notices

Reply
 
Thread Tools
Old 02-24-2012, 10:30 PM   #1
Junior Member
 
Join Date: Feb 2012
Posts: 4
pstoianov is on a distinguished road
Default save2pdf function...

Hello all,

Does anyone knows what kit should be installed to enable "Save to PDF"?

We've tried "wkhtmltopdf" but does not work. Any idea?
pstoianov is offline   Reply With Quote
Old 02-24-2012, 11:42 PM   #2
ISPsystem team
 
slava's Avatar
 
Join Date: May 2008
Location: ISPsystem
Posts: 588
slava is on a distinguished road
Default

wkhtmltopdf should be installed,
Can you test wkhtmltopdf installation by opening BILLmanager url such as 'wkhtmltopdf https://server/manager/billmgr' command ? Is it work?
slava is offline   Reply With Quote
Old 02-25-2012, 02:32 PM   #3
Junior Member
 
Join Date: Feb 2012
Posts: 4
pstoianov is on a distinguished road
Default

We found that the core issue is in the wkhtmltopdf's dependencies.
The server is very clean and kept with minimum kits and need to figured out which kits makes wkhtmltopdf works.

Currently wkhtmltopdf works but the output is in squares.
pstoianov is offline   Reply With Quote
Old 02-25-2012, 08:06 PM   #4
ISPsystem team
 
slava's Avatar
 
Join Date: May 2008
Location: ISPsystem
Posts: 588
slava is on a distinguished road
Default

Quote:
Currently wkhtmltopdf works but the output is in squares.
Install fonts to server - ttf-dejavu package for example
slava is offline   Reply With Quote
Old 02-25-2012, 11:13 PM   #5
Junior Member
 
Join Date: Feb 2012
Posts: 4
pstoianov is on a distinguished road
Default

Thank you Slava! It now works!

So, in case some other users struggle with same issue, here is the fix for CentOS:

1. Download and unzip the static binary of wkhtmltopdf and extract the archive under "/usr/local/sbin".
2. yum install dejavu*
3. Go to BILLmanager -> Global Settings -> Settings (TAB) -> "Path to the HTML2PDF converter file" -> /usr/local/sbin/wkhtmltopdf-i386
pstoianov is offline   Reply With Quote
Reply

Tags
html2pdf, pdf, wkhtmltopdf

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:23 AM.