Jump to content

Anyone Used MPDF of similar? Problem ...


zantins

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/288152-anyone-used-mpdf-of-similar-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.