How to set margin in converter ?

How to set margin in converter ?

Forum member · Mar 3, 2014
Hi What to do to set margin excetly 1 inch at all (left,right,top,bottom) site, I am using the evaluation copy of the converter, and write the below code HtmlConversionOptions objHtmlConversionOptions = new HtmlConversionOptions(PageSize.Letter, PageOrientation.Portrait, 0); objHtmlConversionOptions.LeftMargin = 96; objHtmlConversionOptions.RightMargin = 96; objHtmlConversionOptions.TopMargin = 96; objHtmlConversionOptions.BottomMargin = 96; But I am not sure what value to set and which unit converter component is consider ? can you please tell me what value do i need to set for excetly 1 inch all side? Thanks

Re: How to set margin in converter ?

Support · Mar 3, 2014
Hello, DynamicPDF Converter for .NET uses a coordinate system based on points. There are 72 points in an inch. Please set margin value to 72 to get the 1 inch margin for the converted output. Thanks, ceTe Software Support Team.