示例#1
0
 public void StoreValues(Data data, string path)
 {
     CompressColorAndGray.StoreValues(data, path + @"CompressColorAndGray\");
     CompressMonochrome.StoreValues(data, path + @"CompressMonochrome\");
     Security.StoreValues(data, path + @"Security\");
     Signature.StoreValues(data, path + @"Signature\");
     data.SetValue(@"" + path + @"ColorModel", ColorModel.ToString());
     data.SetValue(@"" + path + @"DocumentView", DocumentView.ToString());
     data.SetValue(@"" + path + @"PageOrientation", PageOrientation.ToString());
     data.SetValue(@"" + path + @"PageView", PageView.ToString());
     data.SetValue(@"" + path + @"ViewerStartsOnPage", ViewerStartsOnPage.ToString(System.Globalization.CultureInfo.InvariantCulture));
 }
示例#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("PageOrientation=" + PageOrientation.ToString());
            sb.AppendLine("PageView=" + PageView.ToString());
            sb.AppendLine("ViewerStartsOnPage=" + ViewerStartsOnPage.ToString());

            return(sb.ToString());
        }