zantins Posted May 1, 2014 Share Posted May 1, 2014 Hi Has anyone used MPDF or another html -> pdf library? My problem is as follows: I have written some software in PHP that allows a user to design invoices using the html canvas and jquery. The document on the screen is the exact dimensions of A5 paper. Once they finish the design needs do put on to A4 in a PDF with 2 x A5 next to each other. So basically the design is displayed twice on the pdf page to fill the A4 entirely. The problem is, and i think this is where i don't udnerstand how a print document like a PDF works. If i set the PDF quality to 300DPI, which is what i need it to be for high quality prints, the images are shrunk right down on the pdf, so they literally only cover about 1/4 of the A4 page... but in reality the dimensions of the image should fill half of the A4 twice (so to fill the whole A4 sheet) I don't understand why the PDF file is shrinking the image to the incorrect size...i mean it clearly looks the correct size on the screen...any ideas? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.