I am using html2pdf library in order to generate pdf from html file.
I don’t know how to check out width arrangements.
I had this library from source forge. If anyone has idea about it or manual about html2pdf?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think what you are asking is how to change the page width of the outputted PDF file. The answer is to change the width in the settings before you call AddPage(). Here is an example of how to do so:
Here are the settings you will need:
Basically, it would look something like this:
This, if I am getting the code right, would output a PDF called my.pdf that is formatted as a legal-size page in portrait mode.