示例#1
0
        public PdfSettings Copy()
        {
            PdfSettings copy = new PdfSettings();

            copy.CompressColorAndGray = CompressColorAndGray.Copy();
            copy.CompressMonochrome   = CompressMonochrome.Copy();
            copy.Security             = Security.Copy();
            copy.Signature            = Signature.Copy();
            copy.ColorModel           = ColorModel;
            copy.DocumentView         = DocumentView;
            copy.FastWebView          = FastWebView;
            copy.PageOrientation      = PageOrientation;
            copy.PageView             = PageView;
            copy.ViewerStartsOnPage   = ViewerStartsOnPage;

            return(copy);
        }
示例#2
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("[CompressColorAndGray]");
            sb.AppendLine(CompressColorAndGray.ToString());
            sb.AppendLine("[CompressMonochrome]");
            sb.AppendLine(CompressMonochrome.ToString());
            sb.AppendLine("[Security]");
            sb.AppendLine(Security.ToString());
            sb.AppendLine("[Signature]");
            sb.AppendLine(Signature.ToString());
            sb.AppendLine("ColorModel=" + ColorModel.ToString());
            sb.AppendLine("DocumentView=" + DocumentView.ToString());
            sb.AppendLine("FastWebView=" + FastWebView.ToString());
            sb.AppendLine("PageOrientation=" + PageOrientation.ToString());
            sb.AppendLine("PageView=" + PageView.ToString());
            sb.AppendLine("ViewerStartsOnPage=" + ViewerStartsOnPage.ToString());

            return(sb.ToString());
        }