Closed divsbhalala closed 6 years ago
Hello divsbhalala, I have checked this options on our code:
This file is without set margin (a4, portrait, rotation 0 on file): https://expirebox.com/download/343c7bf3d65c40fcd69b784efc29b3f3.html This file is with margin (margin 100, a4, portrait, rotation 0 on file) https://expirebox.com/download/22030df528afb67bf517e9e71ba9f032.html This is the same file on your site (nice work): https://expirebox.com/download/250f922d16652d400a89ae6971e4e8cd.html
Maybe you should check if( $withMargin===true ) because i think it's adding always the 40px margin you set.
@maztch I am telling that margin on top and on Bottom is not adding when we set margin
Have you seen the difference between the three pdf listed? Your PDF (using your website, with your form setting to "no margin") result have a margin, you can compare it with the first one that doesn't have margin. You are adding margin always.
@maztch that I am telling if I am adding margin alway then why margin in not apply on Top and Bottom on the PDF
divsbhalala, can you try diferent margin sizes, please? try to set it to 0, 40, and 100, to compare pdf outputs, and check if there is any difference on top and bottom between output files.
@maztch it's working now. thanks
on Image to PDF add margin is not adding margin o the top and bottom of the page. Here is the request params. http://prntscr.com/h77qfa Here is the code
If you want to check, you can check here https://www.tweak.com/convert-to-pdf/