Developer forum

Forum » CMS - Standard features » Pdf=true VS print page

Pdf=true VS print page

Nuno Aguiar
Reply

Hi,

 

We developed a page to look like a A4 letter, if we print it, looks great, but if we try to force the pdf=true parameter to force download, looks odd.

 

We tried using the pdf parameter for margins with either no or bad results.

 

I am trying to understand what it does differently that triggering the print to pdf (browser), so the user get's prompt to download.

 

Check the differences in attach.

 

Best Regards,


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Nuno

pdf=true is an instance of an IE on the server showing the page. So it is also just a browser. But it does not like javascript. You can change it to use Firefox on the server, see abcpdf how to. Or change the HTML/CSS untill it works - it is simply a cross browser issue.

BR Nicolai

 
Nicolai Høeg Pedersen
Reply

Or use something like this: https://parall.ax/products/jspdf

 
Nuno Aguiar
Reply

Hi Nicolai,

 

How would I change it to Firefox? I see nothing in the GlobalSettings that would allow me to do that.

 

Best Regards,

Nuno Aguiar

 
Nicolai Høeg Pedersen
Reply

You cannot. Thought you could change it on the server, but it seems you cannot.

What version of IE is the server running?

 
Nuno Aguiar
Reply

Hi Nicolai,

 

I am not sure. It's a server I don't have direct access to, but being a crossbrowsing issue I can try and simulate IE until it looks like the pdf and we can fix it.

 

Thanks,

Nuno Aguiar

 

You must be logged in to post in the forum