Ejemplo n.º 1
0
 public MarginSettings(MarginSettings margins)
 {
     Top    = margins.Top;
     Bottom = margins.Bottom;
     Left   = margins.Left;
     Right  = margins.Right;
 }
Ejemplo n.º 2
0
 public PdfSettings(PdfSettings settings)
 {
     Username             = settings.Username;
     Password             = settings.Password;
     JSDelay              = settings.JSDelay;
     WindowStatus         = settings.WindowStatus;
     ZoomFactor           = settings.ZoomFactor;
     BlockLocalFileAccess = settings.BlockLocalFileAccess;
     StopSlowScript       = settings.StopSlowScript;
     DebugJavascript      = settings.DebugJavascript;
     LoadErrorHandling    = settings.LoadErrorHandling;
     Proxy                      = settings.Proxy;
     PrintBackground            = settings.PrintBackground;
     LoadImages                 = settings.LoadImages;
     EnableJavascript           = settings.EnableJavascript;
     EnableIntelligentShrinking = settings.EnableIntelligentShrinking;
     MinimumFontSize            = settings.MinimumFontSize;
     PrintMediaType             = settings.PrintMediaType;
     DefaultEncoding            = settings.DefaultEncoding;
     UseExternalLinks           = settings.UseExternalLinks;
     UseLocalLinks              = settings.UseLocalLinks;
     ProduceForms               = settings.ProduceForms;
     IncludeInOutline           = settings.IncludeInOutline;
     PagesCount                 = settings.PagesCount;
     Orientation                = settings.Orientation;
     ColorMode                  = settings.ColorMode;
     UseCompression             = settings.UseCompression;
     DPI           = settings.DPI;
     PageOffset    = settings.PageOffset;
     Copies        = settings.Copies;
     Collate       = settings.Collate;
     OutlineDepth  = settings.OutlineDepth;
     DumpOutline   = settings.DumpOutline;
     DocumentTitle = settings.DocumentTitle;
     ImageDPI      = settings.ImageDPI;
     CookieJar     = settings.CookieJar;
     PaperSize     = settings.PaperSize;
     Margins       = new MarginSettings(settings.Margins);
 }