如题!另Acrobat SDK里到底有些什么东东啊~~~~~~~~,干嘛都是英文呢,有人能指点指点迷津吗?急咧?_?

解决方案 »

  1.   

    我正准备做这件事.http://partners.adobe.com/asn/acrobat/forms.jsp交流.
      

  2.   

    插入adobe Acrobat 的activex控件,对控件点右键添加变量,自动会生成一个包装类,用包装类的成员函数可以进行读取或创建pdf文件的操作。
      

  3.   

    to gjd111686(数字金刚):请问你有什么头绪吗?.cn,交流交流吧^_^
      

  4.   

    你可以参考http://www.vckbase.com/code/viewcode.asp?id=2297,有原代码例子
      

  5.   

    void CPDFAppDlg::OnConvert() 
    {
    // TODO: Add your control notification handler code here
    try
    {
    int iFont;
    PDFlib pPDF;
    CFileDialog m_FileDlg(FALSE,"pdf","",OFN_OVERWRITEPROMPT,"Adobe Acrobat PDF 文件(*.pdf)|*.pdf|所有文件(*.*)|*.*||",this);
    char pFileName[255];

    CEdit* pPDFText=(CEdit*)GetDlgItem(IDC_EDITPDF);
    CString strPDFText;
    pPDFText->GetWindowText(strPDFText);
    char pPDFInfo[1024];
    sprintf(pPDFInfo,"%s",strPDFText); char pAttachFileName[255];
    sprintf(pAttachFileName,"%s",m_AttachFileName);
    if(m_FileDlg.DoModal()==IDOK)
    {
    m_PDFFileName=m_FileDlg.GetFileName();
    sprintf(pFileName,m_PDFFileName);
    if(pPDF.open_file(pFileName)==-1)
    {
    //
    }
    pPDF.set_parameter("hypertextencoding","host");
    pPDF.set_info("Creator","DigitalSky");
    pPDF.set_info("Author","DigitalTitan");
    pPDF.set_info("Title","Title");
    pPDF.begin_page((float)a4_width,(float)a4_height);
    iFont=pPDF.load_font("Helvetica-Bold","host","");
    pPDF.setfont(iFont,12);
    pPDF.set_text_pos(50,a4_height-50);
    pPDF.setcolor("fill","rgb",0,0,1,0);
    pPDF.show("Version 1.0 (C) CopyRight By Digitaltitan");
    iFont=pPDF.findfont("STSong-Light","GB-EUC-H",0);
    pPDF.setcolor("fill","rgb",0,0,0,0);
    pPDF.setfont(iFont,24);
    pPDF.continue_text("转换文档生成为");

    pPDF.setcolor("stroke","rgb",0.24f,0.51f,0.047f,0);
    pPDF.moveto(50,a4_height-80);
    pPDF.lineto(a4_width-50,a4_height-80);
    pPDF.moveto(50,a4_height-78);
    pPDF.lineto(a4_width-50,a4_height-78);
    pPDF.stroke();
    pPDF.attach_file(a4_width-50,0,0,a4_height-90,pAttachFileName,"DigitalSky","DigitalTitan","doc","paperclip"); pPDF.set_text_pos(50,a4_height-100);
    iFont=pPDF.findfont("STSong-Light","GB-EUC-H",0);
    pPDF.setcolor("fill","rgb",0,0,0,0);
    pPDF.setfont(iFont,12);
    pPDF.continue_text(pPDFInfo); pPDF.end_page();
    pPDF.close();
    }
    }
        catch(PDFlib::Exception &ex)
    {
    //
        }
    }
      

  6.   

    void CPDFAppDlg::OnWord() 
    {
    // TODO: Add your control notification handler code here
    CFileDialog m_FileDlg(FALSE,"pdf","",OFN_OVERWRITEPROMPT,"Adobe Acrobat PDF 文件(*.pdf)|*.pdf|所有文件(*.*)|*.*||",this);
    if(m_FileDlg.DoModal()==IDOK)
    {
    FDFDoc pFDF=NULL;
    FDFErc pError;
    INITIALIZE_FDF_THREADSAFE;
    pError=FDFCreate(&pFDF);
    FDFSetValue(pFDF,"DigitalSky","DigitalTitan", false);
    pError=FDFSetFile(pFDF,m_FileDlg.GetFileName());
    FDFSave(pFDF,"-");
    FDFClose(pFDF);
    }
    }
      

  7.   

    to gjd111686(数字金刚):
    我安装了Acrobat 5.0 SDK包,运行里面的Activeview是弹出对话框说“failed to create object :<”,请问知道为什么吗?
      

  8.   

    编译时并无错误也无警告,可是执行时就弹出那个对话框,真是不知道为什么>_<
      

  9.   

    Acrobat 5.0 SDK是受费的,http://www.vckbase.com/code/viewcode.asp?id=2297有下载免费的LIB