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
Would it be possible to create a #wkhtmltopdf to allow the user to pass custom options to wkhtmltopdf program? This options string could be appended to the string variable s in Converter.cs (line 62). The default values could still be kept in the variable s and the new options would be appended to it.
This way, the user could set new margins to the generated PDF with: #wkhtmltopdf --margin-bottom 15 --margin-left 15 --margin-right 15 --margin-top 15
Right now, my workaround is saving the HTML contents and running the wkhtmltopdf command manually. By the way, there should be an option in Calcpad that forbid it to open the HTML/PDF files every time you save them.
The text was updated successfully, but these errors were encountered:
That's true. But it was just an example. I was more interested in header/footer wkhtmltopdf command options (like --header-html and others). I suppose using --header-html (instead of using tables like I saw in an example) may generate PDFs with nice headers.
Hi! OK, thank you! Now I see your point. Yes, it can be very useful for anyone who is familiar with wkhtmltopdf options and it is easy to implement. So, I will include it. Also, it is a good idea about the header-html option. I will have a closer look to it. Thank you!
Hi!
Would it be possible to create a #wkhtmltopdf to allow the user to pass custom options to wkhtmltopdf program? This options string could be appended to the string variable s in Converter.cs (line 62). The default values could still be kept in the variable s and the new options would be appended to it.
This way, the user could set new margins to the generated PDF with:
#wkhtmltopdf --margin-bottom 15 --margin-left 15 --margin-right 15 --margin-top 15
Right now, my workaround is saving the HTML contents and running the wkhtmltopdf command manually. By the way, there should be an option in Calcpad that forbid it to open the HTML/PDF files every time you save them.
The text was updated successfully, but these errors were encountered: