protected void SetOptions(GeneratePdfOptions options) { this.PageMargins = new Margins(); this.PageSize = options.PageSize; this.PageWidth = options.PageWidth; this.PageHeight = options.PageHeight; this.PageOrientation = options.PageOrientation; this.PageMargins = options.PageMargins; this.IsLowQuality = options.IsLowQuality; this.Copies = options.Copies; this.IsGrayScale = options.IsGrayScale; this.HeaderHtml = options.HeaderHtml; this.HeaderSpacing = options.HeaderSpacing; this.FooterHtml = options.FooterHtml; this.FooterSpacing = options.FooterSpacing; }
public GeneratePdfService(IViewRenderService engine, IOptions <GeneratePdfOptions> options) { _engine = engine; _options = options.Value; }