Developer forum

Forum » CMS - Standard features » IronPdf settings

IronPdf settings

Jesper Holm Damgaard
Reply

Hi guys

I have some trouble with IronPdf sometimes scaling my content, is it possible to get access to the FitToPaperWidth setting?  

All the best, Jesper


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Jesper,

You can specify the settings like this...

var settings = new PdfRendererSettings() { FitToPaperWidth = false };
var renderer = new PdfRenderer(settings);
var pdf = renderer.RenderFromUrl(url);

Best regards,
Morten

 
Jesper Holm Damgaard
Reply

Hi Morten

Thanks, i have done that and seems to solve the problems have had with scaling.

It would be nice have it as a standard option when using standard DW to generate pdf's, and not having to implement all that in a parallel and almost identical service ;-)

All the best,
Jesper

 
Jesper Holm Damgaard
Reply

Do you think it is possible to get this option in a release in a near future?

 
Jesper Holm Damgaard
Reply

Yes, no, maybe? :)

 

You must be logged in to post in the forum