public static void AddMargins(string packagedFile, Package package, Config config) { PdfFileEditor fileEditor = new PdfFileEditor(); var pageMargin = PageSetting.GetBodyMargin(package, config); fileEditor.AddMargins(packagedFile, packagedFile, null, pageMargin.LeftPoints, pageMargin.RightPoints, pageMargin.TopPoints, pageMargin.BottomPoints); }