示例#1
0
        public void ReplaceWith(PdfSettings source)
        {
            CompressColorAndGray.ReplaceWith(source.CompressColorAndGray);
            CompressMonochrome.ReplaceWith(source.CompressMonochrome);
            Security.ReplaceWith(source.Security);
            Signature.ReplaceWith(source.Signature);
            if (ColorModel != source.ColorModel)
            {
                ColorModel = source.ColorModel;
            }

            if (DocumentView != source.DocumentView)
            {
                DocumentView = source.DocumentView;
            }

            if (EnablePdfAValidation != source.EnablePdfAValidation)
            {
                EnablePdfAValidation = source.EnablePdfAValidation;
            }

            if (NoFonts != source.NoFonts)
            {
                NoFonts = source.NoFonts;
            }

            if (PageOrientation != source.PageOrientation)
            {
                PageOrientation = source.PageOrientation;
            }

            if (PageView != source.PageView)
            {
                PageView = source.PageView;
            }

            if (ViewerStartsOnPage != source.ViewerStartsOnPage)
            {
                ViewerStartsOnPage = source.ViewerStartsOnPage;
            }
        }