<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    零度空間

    To feel the crazy world

    PDF & iText

    最近要用到iText來處理PDF來提供User與服務器交互的途徑, 所以從Google和Baidu上翻了翻,學到了一點東西, 想Mark下來以后參考,同時也可以和大家交流一下.

    Project最主要是要解決三個方面的問題:

    1.用什么Software來生成可交互的Form?
    2.用什么Open source tools來Pre-fill Form?
    3.在User填完Data后,又以什么方式Submit 到Server處理?

    對于第一個問題,自然是用Adobe 的Software啦,但是用Acrobat Pro還是用Lifecycle Designer, 卻讓我費了不少勁.為什么咧?因為Acrobat Pro和Lifecycle Designer 處理的Form的格式是不一樣的. Acrobat Pro里面用的是AcroForm,是Acrobat3.0開始用的格式,而Lifecycle Designer里面用的是Xfa Form,是基于XML的, 兩者的不同請參考以下的摘錄:      

    Acroforms and XFA forms are different technologies

    The interactive forms that you create in LiveCycle Designer are different than the interactive forms that you create in Adobe Acrobat. If you create an interactive form in Acrobat, your form is based on Adobe’s Acroform technology. This technology dates back to Acrobat version 3, and Adobe provides the “Acrobat Forms API Reference” to provide the technical details for this technology. I would not recommend using Acroform technology because XFA is the better technology.
     
    If you are moving from Acroforms to XFA forms, you need to know a couple of important facts about these two technologies:

    1.LiveCycle Designer can edit a PDF form created in Acrobat, but Acrobat cannot edit a PDF form created in Designer.

    2.JavaScript works differently in these two technologies. Some of the JavaScript routines that work in Acroforms will not work in XFA forms. Adobe has documented these differences in a 43 page online PDF called, “Converting Acrobat JavaScript for Use in LiveCycle Designer Forms.” Designer is a much more robust tool for using JavaScript in your forms, so I recommend that you learn how to script with the XFA object model. See Chapter 4, “Form Scripting,” for more information.

    PS: you can find more in the below link: More info about XFA


            
















     

     







    Lifecycle designer 是后來才有的東西,自然是比Acrobat Pro更先進也更適合用于交互,但我的項目最終還是選了Acrobat Pro,因為我的第二個問題的答案是iText. iText可以用來Pre-fill XFA格式的Form,但是不知道為什么用iText Create的submit button不能submit XFA form(按了Button后沒有反應),后來上網查到原來iText不支持XFA Form, 所以也只能用Acrobat啦.

    而且用Acrobat Pro創建的Form有兩個我自己覺得不錯的優點(以TextFeild類型為例子):

        1. Acrobat Pro創建的AcroForm是沒有層次結構的,而LifeCycle Desinger創建的Form是有層次的.什么意思咧?舉個例子,同樣是Add一個TextFeild, 把它命名為CustomerName,在AcroForm里面的名字就是CustomerName啦,而在XFA Form里面就成了topmostSubForm[0].Page1[0].CustomerName[0],咋一看,還真是煩.而且你的PDF一改的話,那你的Feild name也相應改了,這樣Program也要改了....
        2. Acrobat Pro創建的AcroForm的TextFeild可以自適應大小,一個TextFeild總是有一定的長度,但要填的Value就不知有多長啦,有可能有個CustomerName真的很長咧,這在XFA Form里面就會有些Value Show不出來,但Acrobat Pro創建的AcroForm的TextFeild就可以根據Value的大小而改變字體的大小來適應TextFeild的長度.

    以上兩點是我自己的認識,也許Lifecycle Designer也可以做到以上的效果,但目前我是不會,因為接觸Lifecycle Designer比較少,如果有大蝦知道的話請多多指教.

    posted on 2009-04-15 11:32 KenLee 閱讀(713) 評論(2)  編輯  收藏

    評論

    # re: PDF & iText 2009-07-17 09:30 Z.G.

    我想問問,普通的PDF格式的form,要轉成acroform的話,能夠做到拋開acrobat,直接利用API來轉換么?  回復  更多評論   

    # re: PDF & iText 2009-07-17 10:25 Z.G.

    另外我想問問iText可以用來submit表格到server端么  回復  更多評論   


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     

    導航

    <2009年4月>
    2930311234
    567891011
    12131415161718
    19202122232425
    262728293012
    3456789

    統計

    常用鏈接

    留言簿(2)

    隨筆分類

    隨筆檔案

    Tech

    搜索

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲人成依人成综合网| 国产AV无码专区亚洲精品| 亚洲国产日韩女人aaaaaa毛片在线| 久久久WWW免费人成精品| 亚洲国产精品成人| 国产vA免费精品高清在线观看| 亚洲性在线看高清h片| 一级毛片免费在线观看网站| 久久精品7亚洲午夜a| 本道天堂成在人线av无码免费| 亚洲精品WWW久久久久久| 国产免费久久久久久无码| 亚洲综合网站色欲色欲| 国产亚洲免费的视频看| 亚洲最新永久在线观看| 毛片a级毛片免费观看免下载| 亚洲爆乳无码专区www| 亚洲国产婷婷综合在线精品| 91福利免费网站在线观看| 亚洲网站在线观看| 最近免费中文字幕大全视频| 国产精品亚洲天堂| 亚洲线精品一区二区三区影音先锋| 免费黄网站在线看| 亚洲一区二区三区写真| 又粗又大又猛又爽免费视频 | 国产乱子精品免费视观看片| 国产成人精品日本亚洲网址| 免费大黄网站在线看| 嫩草在线视频www免费看| 亚洲人成电影在线观看网| 免费国产a国产片高清网站| 男人天堂免费视频| 亚洲人成777在线播放| 亚洲精品成人在线| 亚洲精品在线免费看| 老子影院午夜伦不卡亚洲| 久久精品国产亚洲av四虎| 天天天欲色欲色WWW免费| 日本一区午夜艳熟免费| 天堂亚洲国产中文在线|