Beispiel #1
0
 protected void SetOptions(ConvertOptions 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;
 }
        protected void SetOptions(ConvertOptions 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.FooterLeft      = options.FooterLeft;
            this.FooterCenter    = options.FooterCenter;
            this.FooterRight     = options.FooterRight;
            this.FooterFontName  = options.FooterFontName;
            this.FooterFontSize  = options.FooterFontSize;
            this.FooterSpacing   = options.FooterSpacing;
            this.LocalDataPath   = options.LocalDataPath;
        }
 public void SetConvertOptions(ConvertOptions options)
 {
     this.SetOptions(options);
 }