예제 #1
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);
    }
예제 #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();
    }
예제 #3
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();
     }
 }
예제 #4
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);
    }
예제 #5
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);
    }