How to set desired output page size when converting a file to PDF using C# .NET

Is there an easy way, possibly in converter settings or PdfConversionOptions to set the desired output page size. I want my conversions to come out as a standard A4 page.

Or do I need to define this myself using the below?

//These are correct settings for A4. Source:
var options = new PdfConvertOptions();
options.Dpi = 300;
options.Height = 3508;
options.Width = 2480;



We are investigating this scenario. Your investigation ticket ID is CONVERSIONNET-4824. You’ll be notified in case of any update.


The following snippet shows how the page size can be set when converting to a PDF:

const string source = "sample.docx";

using (var converter = new Converter(source))
    var options = new PdfConvertOptions
        PageSize = PageSize.A4
    converter.Convert("converted.pdf", options);

We’d recommend you to use latest version of the API.

The issues you have found earlier (filed as CONVERSIONNET-4824) have been fixed in this update. This message was posted using Bugs notification tool by nikola.yankov