Beispiel #1
0
    public Stream method_7(int A_0, Document A_1, ImageFormat A_2)
    {
        MemoryStream stream = new MemoryStream();

        using (Class195 class2 = new Class195())
        {
            class2.method_20(this.method_0());
            class2.bool_2 = this.bool_0;
            class2.method_43(A_1);
            if (A_2 == ImageFormat.Emf)
            {
                return(class2.method_61(A_0, 1, ImageType.Metafile, null));
            }
            Image[] imageArray = class2.method_49(A_0, 1, ImageType.Metafile, null, true);
            if (((imageArray != null) && (imageArray.Length > A_0)) && (imageArray[A_0] != null))
            {
                imageArray[A_0].Save(stream, A_2);
            }
            else
            {
                return(null);
            }
        }
        return(stream);
    }
Beispiel #2
0
    private void method_29(Class195 A_0, Stream A_1)
    {
        sprḷ sprḷ = new sprḷ {
            ᜀ = new sprḷ.ᜀ(this, (IntPtr)this.method_28)
        };

        sprḷ.ᜂ(this.int_0);
        this.method_17(A_0.method_35().BuiltinDocumentProperties, sprḷ);
        spr᝸ r᝸ = new spr᝸(A_1, sprḷ);

        r᝸.ᜁ(new sprᡈ(this, (IntPtr)this.method_30));
        r᝸.ᜀ();
        this.method_15(A_0);
        int         count = A_0.method_0().Count;
        int         num4  = (count > 90) ? 3 : ((count > 60) ? 5 : ((count > 30) ? 10 : count));
        List <spr⠃> list  = new List <spr⠃>();

        for (int i = 0; i < count; i++)
        {
            list.Add(A_0.method_63(i, 1)[i]);
        }
        for (int j = 0; j < list.Count; j++)
        {
            spr⠃ r⠃ = list[j];
            r᝸.ᜀ(r⠃);
            if ((j % num4) == 0)
            {
                GC.Collect();
            }
        }
        r᝸.ᜄ();
        A_1.Flush();
        A_0.method_51();
    }
Beispiel #3
0
    private void method_12(Class195 A_0, Stream A_1)
    {
        this.method_9(A_0);
        int  count = A_0.method_0().Count;
        int  num3  = (count > 90) ? 3 : ((count > 60) ? 5 : ((count > 30) ? 10 : count));
        sprᵑ rᵑ    = this.method_10(A_0.method_35().BuiltinDocumentProperties);
        sprᵕ rᵕ    = this.method_8(rᵑ);

        for (int i = 0; i < count; i++)
        {
            using (MemoryStream stream = new MemoryStream())
            {
                A_0.method_60(i, 1, ImageType.Metafile, stream, false, false, GraphicsUnit.Point);
                spr⇬ r⇬ = new spr⇬(stream);
                spr᧷ r᧷ = new spr᧷();
                r᧷.ᜀ(A_0.method_34().method_0()[i].method_2());
                spr➓ r➓ = new spr⠀(r⇬, r᧷).ᜀ(this.method_0()[i].PageSize, true);
                spr⠃ r⠃ = new spr⠃(this.method_0()[i].PageSize.Width, this.method_0()[i].PageSize.Height);
                r⠃.ᜁ(r➓);
                rᵕ.ᜀ(r⠃);
                A_0.method_34().method_0()[i].method_0().Dispose();
                A_0.method_34().method_0()[i].method_1(null);
            }
            if ((i % num3) == 0)
            {
                GC.Collect();
            }
        }
        A_0.method_51();
        rᵕ.ᜄ();
        rᵕ.ᜁ().ᜀ(A_1);
    }
Beispiel #4
0
 private void method_9(Class195 A_0)
 {
     for (int i = 0; i < A_0.method_0().Count; i++)
     {
         Class500 class2 = A_0.method_0()[i];
         this.method_0().Add(class2.method_28());
     }
 }
Beispiel #5
0
    internal void method_3(Document A_0, ImageType A_1, ToPdfParameterList A_2)
    {
        Class195 class2 = new Class195();

        class2.method_20(A_2);
        class2.bool_2 = this.bool_0;
        class2.method_44(A_0);
        class2.method_50(A_1);
    }
Beispiel #6
0
 public Image[] method_5(Document A_0, ImageType A_1, MemoryStream A_2)
 {
     using (Class195 class2 = new Class195())
     {
         class2.method_20(this.method_0());
         class2.method_30(A_1);
         class2.bool_2 = this.bool_0;
         class2.method_43(A_0);
         return(class2.method_49(0, -1, A_1, A_2, true));
     }
 }
Beispiel #7
0
 public Image[] method_6(int A_0, int A_1, Document A_2, ImageType A_3)
 {
     using (Class195 class2 = new Class195())
     {
         class2.method_20(this.method_0());
         class2.method_30(A_3);
         class2.bool_2 = this.bool_0;
         class2.method_43(A_2);
         return(class2.method_49(A_0, A_1, A_3, null, true));
     }
 }
Beispiel #8
0
 public PdfNewDocument method_5(Document A_0)
 {
     using (Class195 class2 = new Class195())
     {
         A_0.OperationType = DocumentOperationType.Layout;
         class2.method_20(this.method_1());
         class2.method_6(true);
         class2.method_43(A_0);
         A_0.OperationType = DocumentOperationType.None;
         return(this.method_26(class2));
     }
 }
Beispiel #9
0
 public void method_3(Document A_0, Stream A_1)
 {
     using (Class195 class2 = new Class195())
     {
         A_0.OperationType = DocumentOperationType.Layout;
         class2.method_20(this.method_1());
         class2.method_8(true);
         class2.method_43(A_0);
         A_0.OperationType = DocumentOperationType.None;
         this.method_12(class2, A_1);
     }
 }
Beispiel #10
0
 private void method_27(Class195 A_0, int A_1, bool A_2)
 {
     if ((A_0 != null) && (A_0.method_9().Count > 0))
     {
         Dictionary <string, PdfBookmark> dictionary = new Dictionary <string, PdfBookmark>();
         for (int i = 0; i < A_1; i++)
         {
             this.pdfPageBase_0 = this.pdfNewDocument_0.get_Pages().get_Item(i);
             this.method_20(A_0.method_9(), dictionary, A_2);
         }
         dictionary = null;
     }
 }
Beispiel #11
0
 internal Queue <byte[]> method_2(Document A_0, ToPdfParameterList A_1)
 {
     this.toPdfParameterList_0 = A_1;
     this.toPdfParameterList_0.EmbeddedFontNameList.Add(BookmarkStart.b("昦嬨䈪䰬䌮ᄰ紲吴䔶䬸吺䨼", 1));
     using (Class195 class2 = new Class195())
     {
         A_0.OperationType = DocumentOperationType.Layout;
         class2.method_2(this.method_1().UsePSCoversion);
         class2.method_20(this.method_1());
         class2.method_43(A_0);
         A_0.OperationType = DocumentOperationType.None;
         return(this.method_4(class2));
     }
 }
Beispiel #12
0
 internal void method_51()
 {
     this.method_50();
     this.method_61();
     this.method_62();
     this.method_53();
     using (Class195 class2 = new Class195())
     {
         class2.method_38(this.TOCLevels);
         class2.method_42(this.UseTableEntryFields);
         this.TOCEntryPageNumbers = class2.method_83(base.Document);
         class2.method_51();
         this.method_74();
     }
 }
Beispiel #13
0
 internal void method_11(Document A_0, Stream A_1, ToPdfParameterList A_2)
 {
     this.toPdfParameterList_0 = A_2;
     this.toPdfParameterList_0.EmbeddedFontNameList.Add(BookmarkStart.b("申䐵儷嬹倻ḽ฿⍁㙃㑅❇㵉", 14));
     using (Class195 class2 = new Class195())
     {
         A_0.OperationType = DocumentOperationType.Layout;
         class2.method_2(this.method_1().UsePSCoversion);
         class2.method_20(this.method_1());
         class2.method_6(true);
         class2.method_43(A_0);
         A_0.OperationType = DocumentOperationType.None;
         this.class195_0   = class2;
         this.method_29(class2, A_1);
         this.class195_0 = null;
     }
 }
Beispiel #14
0
 // Token: 0x06001478 RID: 5240
 // RVA: 0x00068E88 File Offset: 0x00067088
 public Class189(int int_2, bool bool_1)
 {
     if (int_2 == -1)
     {
         int_2 = 6;
     }
     else if (int_2 < 0 || int_2 > 9)
     {
         throw new ArgumentOutOfRangeException("level");
     }
     this.class195_0 = new Class195();
     this.class191_0 = new Class191(this.class195_0);
     this.bool_0 = bool_1;
     this.method_6(Enum22.const_1);
     this.method_5(int_2);
     this.Reset();
 }
Beispiel #15
0
    private PdfNewDocument method_26(Class195 A_0)
    {
        this.method_15(A_0);
        int count = A_0.method_0().Count;
        int num3  = (count > 90) ? 3 : ((count > 60) ? 5 : ((count > 30) ? 10 : count));

        this.pdfNewDocument_0 = this.method_12();
        for (int i = 0; i < count; i++)
        {
            using (MemoryStream stream = new MemoryStream())
            {
                A_0.method_57(i, 1, ImageType.Metafile, stream, false, false, true);
                PdfNewPage page = this.method_13(this.method_0()[i]).get_Pages().Add();
                this.pdfPageBase_0 = page;
                using (PdfMetafile metafile = PdfImage.FromImage(A_0.method_34().method_0()[i].method_0()))
                {
                    metafile.set_Quality((long)this.int_0);
                    metafile.ᜀ(page, new RectangleF(PointF.Empty, page.get_Size()), true, this.method_1().EmbeddedFontNameList, this.method_1().IsEmbeddedAllFonts, this.method_2());
                }
                this.method_18(A_0.method_34().method_0()[i].method_2());
                A_0.method_34().method_0()[i].method_0().Dispose();
                A_0.method_34().method_0()[i].method_1(null);
            }
            if ((i % num3) == 0)
            {
                GC.Collect();
            }
        }
        this.method_27(A_0, count, false);
        if (!this.method_1().CreateWordBookmarks)
        {
            this.method_27(A_0, count, true);
        }
        else if (A_0.method_11().Count > 0)
        {
            PdfBookmark bookmark = this.pdfNewDocument_0.get_Bookmarks().Add(this.method_1().WordBookmarksTitle);
            bookmark.set_Color((PdfRGBColor)this.method_1().WordBookmarksColor);
            bookmark.set_DisplayStyle(this.method_24(this.method_1().WordBookmarksTextStyle));
            this.method_22(A_0.method_11(), bookmark);
        }
        this.method_16(A_0.method_35().BuiltinDocumentProperties);
        A_0.method_51();
        return(this.pdfNewDocument_0);
    }
Beispiel #16
0
    private Queue <byte[]> method_4(Class195 A_0)
    {
        this.method_3(A_0);
        int            count = A_0.method_0().Count;
        int            num3  = (count > 90) ? 3 : ((count > 60) ? 5 : ((count > 30) ? 10 : count));
        Queue <byte[]> queue = new Queue <byte[]>();

        for (int i = 0; i < count; i++)
        {
            spr⠃   r⠃    = A_0.method_63(i, 1)[i];
            byte[] bytes = Encoding.UTF8.GetBytes(this.method_5(ref r⠃, false));
            queue.Enqueue(bytes);
            if ((i % num3) == 0)
            {
                GC.Collect();
            }
        }
        A_0.method_51();
        return(queue);
    }
Beispiel #17
0
 private void method_30(object A_0, spr⌑ A_1)
 {
     if (this.method_3() != null)
     {
         Class195 class2 = this.method_3();
         sprᣍ     rᣍ     = A_1.ᜂ();
         A_1.ᜁ();
         int num   = A_1.ᜀ();
         int count = class2.method_34().method_0().Count;
         this.method_19(class2.method_34().method_0()[num].method_2(), rᣍ);
         this.method_21(class2.method_9(), rᣍ, count, num, false);
         if (this.method_1().CreateWordBookmarks)
         {
             this.method_23(class2.method_11(), rᣍ, count, num);
         }
         else
         {
             this.method_21(class2.method_9(), rᣍ, count, num, true);
         }
     }
 }
Beispiel #18
0
        public static List <MemberInfo> smethod_27(Type type_1, BindingFlags bindingFlags_0)
        {
            Func <MemberInfo, bool> predicate = null;
            Class195 class2 = new Class195 {
                bindingFlags_0 = bindingFlags_0
            };
            List <MemberInfo> source = new List <MemberInfo>();

            source.AddRange(smethod_35(type_1, class2.bindingFlags_0));
            source.AddRange(smethod_37(type_1, class2.bindingFlags_0));
            List <MemberInfo> list2 = new List <MemberInfo>(source.Count);

            if (func_1 == null)
            {
                func_1 = new Func <MemberInfo, string>(Class194.smethod_43);
            }
            foreach (IGrouping <string, MemberInfo> grouping in source.GroupBy <MemberInfo, string>(func_1))
            {
                int num = grouping.Count <MemberInfo>();
                IList <MemberInfo> list3 = grouping.ToList <MemberInfo>();
                if (num == 1)
                {
                    list2.Add(list3.First <MemberInfo>());
                }
                else
                {
                    if (predicate == null)
                    {
                        predicate = new Func <MemberInfo, bool>(class2.method_0);
                    }
                    IEnumerable <MemberInfo> collection = list3.Where <MemberInfo>(predicate);
                    list2.AddRange(collection);
                }
            }
            return(list2);
        }
Beispiel #19
0
    // Token: 0x06001068 RID: 4200 RVA: 0x0004A810 File Offset: 0x00048A10
    private void method_5(Class191 class191_0)
    {
        switch (class191_0.Type)
        {
        case (Enum13)1:
        {
            Class195 @class = (Class195)class191_0;
            this.binaryWriter_0.Write(Convert.ToDouble(@class.Value, CultureInfo.InvariantCulture));
            return;
        }

        case (Enum13)2:
        {
            Class197 class2 = (Class197)class191_0;
            this.method_6((string)class2.Value, class2.method_4(), new int?(class2.method_2() - 4));
            return;
        }

        case (Enum13)3:
        {
            Class192 class3 = (Class192)class191_0;
            this.binaryWriter_0.Write(class3.method_2());
            foreach (Class200 class4 in class3)
            {
                this.binaryWriter_0.Write((sbyte)class4.Value.Type);
                this.method_6((string)class4.Name.Value, class4.Name.method_4(), null);
                this.method_5(class4.Value);
            }
            this.binaryWriter_0.Write(0);
            return;
        }

        case (Enum13)4:
        {
            Class193 class5 = (Class193)class191_0;
            this.binaryWriter_0.Write(class5.method_2());
            ulong num = 0UL;
            foreach (Class191 class6 in class5)
            {
                this.binaryWriter_0.Write((sbyte)class6.Type);
                this.method_6(num.ToString(CultureInfo.InvariantCulture), Class79.smethod_0(num), null);
                this.method_5(class6);
                num += 1UL;
            }
            this.binaryWriter_0.Write(0);
            return;
        }

        case (Enum13)5:
        {
            Class198 class7 = (Class198)class191_0;
            byte[]   array  = (byte[])class7.Value;
            this.binaryWriter_0.Write(array.Length);
            this.binaryWriter_0.Write((byte)class7.method_4());
            this.binaryWriter_0.Write(array);
            return;
        }

        case (Enum13)6:
        case (Enum13)10:
            return;

        case (Enum13)7:
        {
            byte[] buffer = (byte[])((Class195)class191_0).Value;
            this.binaryWriter_0.Write(buffer);
            return;
        }

        case (Enum13)8:
            this.binaryWriter_0.Write(class191_0 == Class196.class196_1);
            return;

        case (Enum13)9:
        {
            Class195 class8 = (Class195)class191_0;
            object   value;
            long     value2;
            if ((value = class8.Value) is DateTime)
            {
                DateTime dateTime_ = (DateTime)value;
                if (this.method_0() == DateTimeKind.Utc)
                {
                    dateTime_ = dateTime_.ToUniversalTime();
                }
                else if (this.method_0() == DateTimeKind.Local)
                {
                    dateTime_ = dateTime_.ToLocalTime();
                }
                value2 = Class25.smethod_9(dateTime_, false);
            }
            else
            {
                DateTimeOffset dateTimeOffset = (DateTimeOffset)class8.Value;
                value2 = Class25.smethod_7(dateTimeOffset.UtcDateTime, dateTimeOffset.Offset);
            }
            this.binaryWriter_0.Write(value2);
            return;
        }

        case (Enum13)11:
        {
            Class199 class9 = (Class199)class191_0;
            this.method_6((string)class9.Pattern.Value, class9.Pattern.method_4(), null);
            this.method_6((string)class9.Options.Value, class9.Options.method_4(), null);
            return;
        }

        case (Enum13)16:
        {
            Class195 class10 = (Class195)class191_0;
            this.binaryWriter_0.Write(Convert.ToInt32(class10.Value, CultureInfo.InvariantCulture));
            return;
        }

        case (Enum13)18:
        {
            Class195 class11 = (Class195)class191_0;
            this.binaryWriter_0.Write(Convert.ToInt64(class11.Value, CultureInfo.InvariantCulture));
            return;
        }
        }
        throw new ArgumentOutOfRangeException("t", "Unexpected token when writing BSON: {0}".smethod_0(CultureInfo.InvariantCulture, class191_0.Type));
    }
Beispiel #20
0
 // Token: 0x06001485 RID: 5253
 // RVA: 0x00069178 File Offset: 0x00067378
 public Class191(Class195 class195_1)
 {
     this.class195_0 = class195_1;
     this.class192_0 = new Class192(class195_1);
     this.class181_0 = new Class181();
     this.byte_0 = new byte[65536];
     this.short_0 = new short[32768];
     this.short_1 = new short[32768];
     this.int_10 = 1;
     this.int_9 = 1;
 }
Beispiel #21
0
 // Token: 0x06001497 RID: 5271
 // RVA: 0x0006A044 File Offset: 0x00068244
 public Class192(Class195 class195_1)
 {
     this.class195_0 = class195_1;
     this.class193_0 = new Class192.Class193(this, 286, 257, 15);
     this.class193_1 = new Class192.Class193(this, 30, 1, 15);
     this.class193_2 = new Class192.Class193(this, 19, 4, 7);
     this.short_2 = new short[16384];
     this.byte_3 = new byte[16384];
 }
 public override void Visit(Class195 c) { }
 public abstract void Visit(Class195 c);