有没有.dll支持?

解决方案 »

  1.   

    什么意思?
    往pdf文件里插入控件?
    这个基本上很难
      

  2.   

    是的,往pdf里写一个控件进去,
      

  3.   

    楼上, webfactory(jack) 
    不会没这个功能吧?
      

  4.   

    试试用 Adobe Acrobat 带的 Acrobat JavaScript ,看能不能实现!具体我没有用过!
      

  5.   

    呵呵,已经ok了,代码是:
    static void Main(string[] args)
    {
    try
    {
    PDFlib p = new PDFlib();
    if(p.begin_document("AddControls.pdf","")==-1)
    return ;
    p.begin_page(400,400);//begin_page_ext(400, 400, "");
    //p.create_field( 100, 100, 150, 150, "textName", "textfield", "");
    int textfield_font = p.load_font("Helvetica-Bold", "winansi", "");
    p.create_field(100,100,120,150, "date", "textfield","backgroundcolor {gray 0.8} font " + textfield_font.ToString());
    //p.create_field( 100, 100, 100, 150, "print_button", "pushbutton", optlist);
    p.end_page();//p.end_page_ext("");
    p.end_document("");
            }
            catch (PDFlibException e)
    {
    Console.WriteLine("PDFlib exception occurred in image sample:");
    Console.WriteLine("[{0}] {1}: {2}\n", e.get_errnum(),
    e.get_apiname(), e.get_errmsg());
    return;
    }
    }