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

📄 fillinginstruction.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 class FillingInstruction
        {
            public static Form CreateForm(Page page)
            {
                Form fillinginstruction = new Form("fillinginstruction");
                fillinginstruction.Location = page.ContentArea.Location;
                fillinginstruction.Size = page.ContentArea.Size;

                Label title = CreateTitle();
                title.Top = 30;
                fillinginstruction.ApplyAlignment(Alignment.Center, title);
                fillinginstruction.Controls.Add(title);

                Label subtitle = CreateContent();
                subtitle.Top = title.Bottom + 20;
                fillinginstruction.ApplyAlignment(Alignment.Center, subtitle);
                fillinginstruction.Controls.Add(subtitle);

                return fillinginstruction;
            }

            private static Label CreateTitle()
            {
                Label title = new Label();
                title.Name = "title";
                title.Text = "填 报 说 明";
                title.Font = new Font("仿宋_GB2312", 20);
                title.TextAlign = Alignment.MiddleCenter;
                title.LineHeight = 24;
                title.CalculateSize();
                return title;
            }

            private static Label CreateContent()
            {
                Label subtitle = new Label();
                subtitle.Name = "content";
                subtitle.Text =
@"一、本申请表供申报上海市白玉兰科技人才基金使用;
二、申请人应根据填报说明要求,逐项认真填报,表达要
  明确严谨;
三、白玉兰科技人才基金项目采用网上申报方式,网上填报
  后打印,由依托单位审核盖章,核对无误后网上提交。
  报送市科委书面材料和网上提交的材料必须完全一致,
  否则无效;
四、网上申报的入口信息为:申请人、依托单位、密码
  在正式提交后申请表不能再修改,不能上传附件资料;
五、报送的附件资料必须形成JPG文件在网上填报时上传,
  每个文件不得超出1M,最多可上传10个JPG文件;
六、依照提示选择申请基金项目的分类:
  1)讲学
  2)科研
  3)在沪召开国际会议
  4)出国参加国际会议
七、☆部分为必须填报的内容,系统作提交有效性检查;
八、邀请函件、近期主要工作成果及奖励情况等材料的复印件
  在上传附件后随书面材料上报。";
                subtitle.Font = new Font("仿宋_GB2312", 18);
                subtitle.TextAlign = Alignment.MiddleLeft;
                subtitle.LineHeight = 32;
                subtitle.CalculateSize();
                return subtitle;
            }
        }
    }
}

⌨️ 快捷键说明

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