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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.