⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 applybaiyulanfund.cs

📁 PDF文件格式解析库源代码
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using AnotherPDFLib.Forms;
using AnotherPDFLib.XFA;

namespace AnotherPDFLibTest
{
    public partial class ApplyBaiYuLanFund
    {
        public static XdpDocument CreateDocument()
        {
            XdpDocument xdp = new XdpDocument();
            xdp.Form.Name = "ApplyBaiYuLanFund";
            xdp.Form.Locale = "zh_CN";
            xdp.Form.Layout = Layout.Flow;

            Page page = Page.A4;
            page.Name = "A4Page";
            page.Margin = 30;
            PageNumber pageNum = new PageNumber("- {0} -", new Font("宋体", 9));
            pageNum.Alignment = Alignment.BottomCenter;
            pageNum.X = page.Size.Width / 2;
            pageNum.Y = page.ContentArea.Bottom;
            page.PageArea.Add(pageNum.BuildXfaNode());
            xdp.Form.PageSet.Add(page);

            Form cover = Cover.CreateForm(page);
            Form fillinginstruction = FillingInstruction.CreateForm(page);

            xdp.Form.Controls.AddRange(new Control[]{
                cover,fillinginstruction
            });
            return xdp;
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -