1 3 4 5 6 7 Previous Next 269 Replies Latest reply: Nov 6, 2014 10:58 PM by jyoshna09 Go to original post RSS
      • 200. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
        Community Member

        I can't post the code on this site, because, XML doesn't display correctly.

         

        Visit the following site and send me your email address:

        http://www.nk-inc.com/support/sales/

         

        I will reply with the XFDF file you can inspect.

        • 201. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
          Community Member

          you can also check out:

          http://fdftoolkit.codeplex.com

           

          FDFToolkit.net is open source, and uses iTextSharp technologies.

          • 203. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
            anand.padmanabhan Community Member

            I have done this with iTextSharp already. But, I want to try without using any third party library.

            • 206. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
              anand.padmanabhan Community Member

              My xfdf is like below,

               

              <?xml version="1.0" encoding="UTF-8" ?>

              <xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">

              <fields>

              <field name="First_Name"><value>Jack</value></field>

              <field name="Last_Name"><value>Shephered</value></field>

              </fields>

              <f href='http://localhost:53296/Documents/8a754934-c983-4a50-b00f-d291be59aeaf.pdf'/>

              </xfdf>

               

              context.Response.ContentType = "application/vnd.adobe.xfdf";

              context.Response.Write(xmlData);

               

              It now opens up an empty PDF file in the iFrame without populating the data from xfdf file.

               

              Same XFDF file when imported manually from Acrobat, populates the data in the PDF file.

              • 207. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                tarekahf Community Member

                Hi Anand,

                 

                Any reason why you are using Acrobat Forms and not XFA (LiveCycle PDF) ?

                 

                I can help you with XFA Forms, not much with Acrobat forms.

                 

                Tarek.

                • 208. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                  anand.padmanabhan Community Member

                  HI Tarek,

                   

                  Could you please explain the differences between Acrobat and XFA forms? What is the benefit of going with XFA forms?

                   

                  Also, let me know the licensing & software required to create and maintain XFA forms from ASP.NET web application.

                   

                  I have static PDF forms, which i opened in Acrobat PRO 9 and converted to interactive forms. No special reason for going with Acrobat forms.

                   

                  Regards,

                  anand

                  • 209. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                    tarekahf Community Member

                    Hi Anand,

                     

                    (Note: any information mentioned here is based on my own experience and investigation. If any one finds any error, please let me know)

                     

                    XFA is the new technology for Forms from Adobe. It allows dynamic layout, and has better ways for connecting to external data sources. There are some advantages for Acrobat Forms, such as they are Static, and hence may render faster. But I am not the expert to tell the difference, this is just based on a research I have done long time ago.

                     

                    Using XML to generate PDF and read data from PDF is wonderful. You can work with XML in any platform, since it is text based. Not to mention that you will find XML APIs in almost any platform, even in Javascript form inside the Browser on the client side. You do not have such advantage in Acrobat Forms.

                     

                    For Web Enabled PDF Forms Processing, here is what you need:

                     

                    Developer:

                    1. Adobe LiveCycle Designer ES,

                     

                    2. Web Server like IIS 5,

                     

                    3. Server Based Development Framework like ASP.NET,

                     

                    4. Optional: Adobe Acorbat. This can be used to Reader-Enable the PDF. It will allow the client to do some additional things if he is using only Adobe Reader.

                     

                    5. Optional: Adobe LiveCycle Reader Extensions Server (RES) to Reader-Enable the PDF. Same like 4 above, and the client will be able to do almost anything with the PDF as if he is using Acrobat.

                     

                    Client:

                    1. Web Browser that has full support for XFA Forms. Google Chrome for example does not support XFA forms (as per my recent findings, if I did not miss anything).

                     

                    2. Adobe Reader (appropriate version) installed properly. Sometimes you need to repair/reinstall to make it work. The version used must match that used in Adobe LiveCycle Designer.

                    If the PDF is not Reader-Enabled, the client will face a lot of limitation, like he cannot save the PDF nor he will be able to save the data.

                     

                    3. Optional: Adobe Acrobat. With Acrobat installed on the client, he will not face any limitation. Keep in mind that things may not work as expected due to conflict in used version. This setup is very much sensitive to version compatibility. Always make sure the client has the proper version of Adobe Acrobat/Reader and that it is installed and working properly inside and outside the Browser.

                     

                    What are the differences between Acrobat and RES for Reader-Enable the PDF? This is very difficult to answer (at least from my side). If you have Acrobat, give it a shot, and if you face any limitation, then we can assess the need to go for RES. Remember that RES is part of a full blown Enterprise Level Solution.

                     

                    I hope this helps.

                     

                    Tarek.

                    • 210. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                      anand.padmanabhan Community Member

                      Thanks Tarek.

                       

                      Let me try to create a Livecycle XFA form. It looks like there is no special component required on the web server and client (other than adobe reader) required to process XFA form.

                       

                      Basically, I want to do the following,

                       

                      1. Upload the PDF form and store as binary in the database

                      2. Retrieve the saved binary data and render as PDF in an iFrame in the browser

                      3. While rendering the PDF, fill some of the form fields automaticallly with data in the database

                      4. User can fill the remaining fields from the browser and click Submit button.

                      5. The save PDF should be saved as binary in the database.

                      6. User should also be able to download, print, reset the form.

                       

                      I have done all these things with Acrobat forms and iTextSharp.

                       

                      But, I want to remove the dependency on iTextSharp and create a custom code that does not depend on any third party libraries. Thats where the merging of XFDF and PDF came up.

                       

                      Do you have sample to fill data in Livecycle PDF form?

                      • 211. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                        tarekahf Community Member

                        I have started a while back to prepare a full guide on how to do just exactly what you have mentioned (1->6) with except storing the PDF in Database, since I don't advise you to do so, becuase the natural home for any file is the File System. But it is truely up to you.

                         

                        Kindly check this link which has a shared folder on Google Docs:

                         

                        https://docs.google.com/open?id=0B97clwYte2SHYWE1M2QyMzYtYTM0ZC00NTNlLWE0ZTMtMjAzNmRkNDYwO Dk3

                         

                        I have not yet developed a complete guide. This has the code base for a DLL (Business Object CSLA .NET) which allows you to process a PDF form using resuable code. The code has not been updated since then (May-2011), and I can provide the updated version if you like. It will save you a lot of the time to code.

                         

                        You can improve the Business Object to write the PDF Binary in a Database Table/Field. I think this is a good idea.

                         

                        Let me know if you want me to develop the developer guide to use such busness objects.

                         

                        Tarek.

                        • 212. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                          anand.padmanabhan Community Member

                          Thanks Tarek. I have just downloaded the files from the link. I will go through it and get back to you.

                          • 213. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                            tarekahf Community Member

                            I am putting some instructions in the User Guide. Check it after a while, and let me know if you have any quesiton.

                             

                            The user guide is open for public editing. You can open the file, add comments, and do shared editing. I think you need to create a Google Account to get all features.

                             

                            Tarek.

                            • 214. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                              anand.padmanabhan Community Member

                              Just noticed that the PDF document contains a signature field, so, that shud also be supported...

                              • 215. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                tarekahf Community Member

                                There is nothing special I have done in the code that has to do with Digital Signatures. They are just supported if you install Adobe Reader/Acrobat and if you put a Singature Field using LiveCycle Desinger.

                                 

                                The only thing is that if the PDF Form is not Reader Enabled, you will not be able to sign the form using only Reader.

                                 

                                What I have done inside the PDF to track if signatures are signed, I simply change the value of a Status Field that indicates that the form "may" have been signed. Any way, I do not find any value for the process to keep a record on the server if the form is actaully signed or not. In my opinion, Digital Signatures are for the end-users. It is a kind of a security feature to assure who is the author of the document, confirm if the document was changed after it was signed, and finally, display the signed version.

                                 

                                To sign the form, the client (user) must "click" on the signature and he can create a Local Signature using Adobe Reader. I usually instruct the users to create a Local Signature integrated with Windows Certificate Store. This will avoid the need for the user to specify a password. All of our users are very happy using digital signature.

                                 

                                If you want to sign the form using code, then I cannot help you, because I have not done that before. If you know a way, please let us know.

                                 

                                Tarek.

                                • 216. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                  anand.padmanabhan Community Member

                                  Ok fine. actually, I'm planning to go with a third party component for digital signatures...

                                   

                                  Thanks for all the details, Tarek.

                                  • 217. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                    Leena Jain123 Community Member

                                    Hi Tarek,

                                     

                                    I have a pdf file and on click of SUbmit ,I want to submit it to a webservice which has to save the entire PDF.I need to use Dot Net for teh webservice.Sample of the code will really help.

                                     

                                    Thanks and Regards,

                                    Leena

                                    • 218. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                      anand.padmanabhan Community Member

                                      Add a "HTTP Submit Button" control in the PDF form.

                                       

                                      In the submit URL property of the button, set a URL like http://localhost/PDFManagement/PdfProcessor.aspx?SubmittedFormPart=1 and set the "submit as" property for the button as PDF.

                                       

                                      In the PDFProcessor.aspx web form page load event handler, you can get the full PDF using the below code,

                                       

                                      if (Request.QueryString["SubmittedFormPart"] != null && Request.QueryString["SubmittedFormPart"].ToString() == "1")

                                                  {

                                                      Stream fs = this.Page.Request.InputStream;

                                                      BinaryReader br = new BinaryReader(fs);

                                                      Byte[] bytes = br.ReadBytes((Int32)fs.Length);

                                                  }

                                      • 219. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                        Leena Jain123 Community Member

                                        Thanks Anand,

                                         

                                        But when i choose Http Submit Button", I do not get an option to Set the Submit As Property in Designer9.Am i missing something?

                                         

                                        Regards,

                                        Leena

                                        • 220. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                          anand.padmanabhan Community Member

                                          Add a Button objectUntitled.png

                                          like in the above screen shot.

                                           

                                          Set the control type as submit.

                                           

                                          You will see a submit tab.

                                           

                                          In the submit tab, you will need to set the submit to URL property and submit as property.

                                           

                                          This will work in livecycle designer

                                           

                                          if your form is acrobat form, steps will be slightly different

                                          • 221. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                            Leena Jain123 Community Member

                                            Thanks Anand,

                                             

                                            I could achive the desired functionality.

                                             

                                            Only one issue , after the PDF is saved it opens a blank PDF, is there some script with which we can have the same PDF in view?

                                             

                                            Regards,

                                            Leena

                                            • 222. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                              anand.padmanabhan Community Member

                                              Do you display the form online? Where do you store the PDF? in database or file system?

                                              • 223. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                                Leena Jain123 Community Member

                                                There is a ASP page on which the form is opened ,then we click Save and the form gets saved in Document Repository(Using Sharepoint Portal).After clicking teh submit, a blank PDF with the title of that URL( asp url) is opening.

                                                 

                                                Regards,

                                                Leena

                                                • 224. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                                  tarekahf Community Member

                                                  Hi Leena,

                                                   

                                                  I just want to make sure I understnad your original question. You wanted to submit the PDF to a Web Service or a Web Page ?

                                                   

                                                  A Web Service ASP.NET has ".asmx" file extension, and a Web Page has ".aspx" file extension.

                                                   

                                                  See this Google Docs Folder. In case you are submitting to ".aspx" web page it will be of a greate help to you.

                                                   

                                                  In case you want to submit to a Web Service ".asmx" then we have to work on this, as I have never done it before. As a matter of fact, I have to develop this fearture, since submitting to ASPX web page has some limitations like:

                                                   

                                                  1. All changes made by the user before submit will be lost, if the server side validation has failed due to violation of business logic.

                                                   

                                                  2. All changes made by the user before submit will be lost, if there is a technical probelm on the server.

                                                   

                                                  First, we need to know if this is possible?

                                                   

                                                  Tarek.

                                                  • 225. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                                    Leena Jain123 Community Member

                                                    Thanks Anand and Tarek..

                                                     

                                                    I was able to achieve this.I had to have a ASP Page at the Server end instead of a webservice and submitted the Form as PDF to it which inturn saved the file to a specific  server location.

                                                     

                                                     

                                                    Regards,

                                                    Leena

                                                    • 226. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                                      junaid_83 Community Member

                                                      Hi Tarekahf,

                                                      I am trying to automate the PDF submission process for the organization.

                                                       

                                                      I have an iframe in which I am displaying the fillable pdf. The PDF is created using the live cycle designer.

                                                      On the  PDF I have a Submit button. In the submit to URL I have the path to my asp.net server page and on the "submit as" dropdown I have "PDF" selected.

                                                       

                                                      When I run the application and click on the submit button nothing happens (I am not able to hit the break point on the page load of server page).

                                                      Submit button works when I select the option of XDP or XML. I have tried to save the PDF as both static PDF and dynamic xml form but nothing seems to work.

                                                       

                                                      I would appreciate a lot if you could help.

                                                       

                                                      Thanks

                                                      • 227. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                                        Leena Jain123 Community Member

                                                        Please ensure that your PDF is reader extended

                                                        Regards,

                                                        Leena

                                                        • 228. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                                          junaid_83 Community Member

                                                          Hey Leena

                                                          Thanks for the reply but how am I supposed to make the PDF reader extensible? Can I do this from live cycle designer es2 version 9.0.X.X  or do I have to use Acrobat Pro X.

                                                          I tried the Acrobat Pro X but I was not able to find the 'Advanced' menu option. I am using trial versions for both live cycle and acrobat pro.

                                                          Thanks,

                                                          Junaid

                                                          • 229. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                                            tarekahf Community Member

                                                            Hi Junaid,

                                                             

                                                            You can reader-enable the PDF using:

                                                             

                                                            1. Adobe  LiveCycle Reader Extensions Server (LCRES)

                                                             

                                                            or

                                                             

                                                            2. Acrobat. Each version may have different way to reader-enable. But to submit from the Browser, you need LCRES. Acrobat can "reader-enable" but provides limited functionality.

                                                             

                                                            See my Google Docs Workspace to see a screen shot of LRES.

                                                            Tarek.

                                                            • 230. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                                              Leena Jain123 Community Member

                                                              Hi Tarek,

                                                               

                                                              The asp page is now on HTTPS.When I am trying to submit the form as PDF,it is being recieved as 0 bytes.The same is working with HTTP.

                                                              Any idea?

                                                               

                                                              Thanks,

                                                              Leena

                                                              • 231. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                                                tarekahf Community Member

                                                                Hi Leena,

                                                                 

                                                                I never faced this situation before. I will do some search. But, most likely, it is related to client/server are setup properly to support HTTPS. Most likely you need to change Web.config to enable support for HTTPS.

                                                                 

                                                                Check this:

                                                                 

                                                                http://stackoverflow.com/questions/539732/how-to-use-https-in-an-asp-net-application

                                                                 

                                                                Tarek.

                                                                • 232. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                                                  robin_p

                                                                  Hi Tarek,

                                                                   

                                                                  I need your help in designing my document solution in PDF.

                                                                   

                                                                  The requirement is :

                                                                  1. Business User will define a PDF template and will store in a location.
                                                                  2. Say for example : The template has 4 fields First Name, Middle Name, Last Name, and Location.
                                                                  3. Say Location is the field which will be editable to user other all the fields will be filled by data present in database and based on some input criteria which will be driven by BUSINESS RULE.
                                                                  4. The flow would be: User will fill the required data from .NET web page UI.
                                                                    1. Once the user click submit, the required template generated in step 1 should be selectd and data retrived from D/B should get embedded.
                                                                    2. The PDF with data once gets generated should be transferred to UI as a PDF document.
                                                                    3. The end user should be able to save the pdf in local folder and edit it as well the "LOCATION FIELD".
                                                                    4. Once the end user EDIT the generated PDF should be able to save the updated PDF in local location as well.
                                                                    5. Note : The Template has got three 4 fields as mentioned above, but based on input criterai if i get three or more records that may PDF pages should get generated with LOCATION as a editable field in each page.

                                                                   

                                                                  Kindly advice how to attain this functionality.

                                                                   

                                                                  Note: We are using .NET 4.0 with N Layer architecture using WCF as a mode of communication between layers. Its going to be web based application.

                                                                   

                                                                  TIA

                                                                   

                                                                  Robin

                                                                  • 233. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                                                    tarekahf Community Member

                                                                    Hi TIA,

                                                                     

                                                                    Sure I will try to help.

                                                                     

                                                                    I think I understand your requirements, but need more clarification as follows:

                                                                     

                                                                    1. It seems that point 4.3 and 4.4 you have mentioned the requirements to "Save" in a local folder in both paragraphs, right ? You mean the user can "Save" in a  local folder before and after he has edited the "LOCATION FIELD"?

                                                                     

                                                                    2. Point 4.5 is not clear at all. Please rewrite this paragraph again. What do you meant by "... three 4 ..."?

                                                                     

                                                                    2. Point 4.5 again, do you mean that you are executing a query against a back-end Database, and you may get 3 or 4 records, so each record will be redndered in a new Page inside the Dymanic PDF, right? Please clarify.

                                                                     

                                                                    In any case, if you check my Google Workspace, you will find that what I have done seems to be a perfect match for your requirements, if you want to use ASP.NET.

                                                                     

                                                                    Also, check this thread post, it should give you more insight about possible implementaiton methods.

                                                                     

                                                                    Tarek.

                                                                    • 234. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                                                      robin_p Community Member

                                                                      Hi Tarek,

                                                                       

                                                                      Thanks for your quick response. Here are my response

                                                                       

                                                                      1. It seems that point 4.3 and 4.4 you have mentioned the requirements to "Save" in a local folder in both paragraphs, right ? You mean the user can "Save" in a  local folder before and after he has edited the "LOCATION FIELD"?

                                                                       

                                                                      Ans: Yes, user should be able to SAVE the pdf file locally after editing it.

                                                                      2. Point 4.5 is not clear at all. Please rewrite this paragraph again. What do you meant by "... three 4 ..."?

                                                                       

                                                                      Ans: Let me put it in this way say as per my example i have a template of 1 page which has 4 fields and it can accomodate data of one person in it.

                                                                      Say tommorow i get similar data of more than 1 person say 3 persons( each having 4 fields of data) then in that case i should be able to create 2 copies of original template and populate data of remaining 2 persons. so finally it will be a 3 page document.

                                                                       

                                                                      2. Point 4.5 again, do you mean that you are executing a query against a back-end Database, and you may get 3 or 4 records, so each record will be redndered in a new Page inside the Dymanic PDF, right? Please clarify.

                                                                       

                                                                      Ans : Yes , you are  right

                                                                       

                                                                      Sorry i forgot to add one more requirement as per the above example all the pages should be merge to a single pdf file. So as per above example all the 3 pdf files should be rendered as a single pdf file with 3 pages.

                                                                       

                                                                      Thanks ,

                                                                      Robin

                                                                      • 235. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                                                        tarekahf Community Member

                                                                        Hi Robin,

                                                                         

                                                                        First, make sure to check this thread post, it should give you more insight about possible implementaiton methods.

                                                                         

                                                                        Following is my feedback:

                                                                         

                                                                        1. To save locally, the best option is to educate the user how to save locally. Simply ask the user of the form to click File-->Save As or click on the "Save" icon. This will prompt the user with a save dailog, and to avoid this dialog, it reuires edditional effort, which I recommend you to avoid doing so.

                                                                         

                                                                        Note: The local copy saved by the user, will be used by the user to fill the required updates later even when there is no Internet. Also, it can be used for local archiving and tracking by the user, only for his convenience. But, eventually, the updates are of no value unless they are submitted back to updating the source.

                                                                         

                                                                        2. To save, you have two options:

                                                                          2.1. Save the Data only: If you want to save the Data only back to the Server Database, then I think it is better that you use traditional HTML or Web Forms.

                                                                         

                                                                          2.2. Save the Data and the PDF. Usually you save PDF and Data in one file, if you want to have off-line support and to protect the intellectual property of the Company and the protect the Data Entered by the user, using Digital Signature.

                                                                         

                                                                        Note: if you save the Data with/without the PDF, you must think of a way to update the Server Database with the updates made by the user. This way, next time the same Form is rendered back to the user, to incorrporate the new changes made on the Database (new records), so the old records will have the new updates made on the user on the form, otherwise, you will end-up loosing the Data entered by the user.

                                                                         

                                                                        If you are thinking to merger the Data from the Server with the updates made by the user on the cleint, without any kind of updating the data back on the server, then this is a very complex process. In this case, I advice you to chage this approach and make it more simple.

                                                                         

                                                                        3. The first time the PDF is Generated using XDP and rendered back to the client browser, now the Form is disconnected from the server. Following are the options/points to consider for reliable implementation:

                                                                         

                                                                          3.1.  First, you must ensure that the Data entered by the user (client updates) is saved back to the server. You can do that using a Web Service Call or by Submitting the Form to the Server, where you have to receive the XML Data, parse it using ASP.NET APIs, and save the data to the Database Server.

                                                                         

                                                                          3.2. Ensure to update the back-end Database with the client changes ASAP.

                                                                         

                                                                          3.3. You can retreive the new records from the Database and merge them with the PDF: 1) Ask the user to re-generate the Form from scratch by clicking on the same link to open the PDF and Merger with data from back-end Database, of course, he must first ensure that any updates he made on the old records are updated back on the Database, or, 2) Use a Web Server to "Retreive New Records only" and execute this web service on a click of a button.

                                                                         

                                                                        4. You must use Adobe LiveCycle Desinger ES and make sure the Form is Dynamic, and the Subform used has flowable layout. For more info, check this Youtube Channel

                                                                         

                                                                        5. Check my Google Workspace, and you will find a Sample PDF Form for Medical Cards, and Sample XML Data.

                                                                         

                                                                        I hope I have answered your questions.

                                                                         

                                                                        Tarek.

                                                                        • 236. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                                                          robin_p Community Member

                                                                          Hi Tarek,

                                                                           

                                                                          Thanks for your response. Let me just put down my requirement once more to be more clear and get final view from you.

                                                                           

                                                                          Step 1: The Business user will generate a PDF template-T1 , which they will store in some location or sever. [Please advice do i need to use static form or dynamic form based upon the below explanantion]

                                                                           

                                                                          Say for ex : The template has three field :

                                                                          FirstName

                                                                          LastName

                                                                          Location: A drop down field which user will update once he receives the PDF

                                                                           

                                                                          Note : The Reader extension should be enabled here becuase my business requirement is the end user should be able to save the PDF locally if any modification done.

                                                                           

                                                                          Step 2 : Accept Key input params from the user using a .NET application (request object). User submits the data.

                                                                           

                                                                          Step 3: Fetch the relevant form data (data sets) from the database for the INPUT params. [Please advice do i need to use XDP /XML ]

                                                                           

                                                                          Step 4: Once data is received, the template - T1 need to be initialized and the required data fetched at step 3 need to be filled in Template T1.

                                                                           

                                                                          Thus we receive say three sets of records

                                                                          Record 1: FirstName : Adam,LastName:ABC,Location:<To be filled by end user>

                                                                          Record 2: FirstName : Joseph,LastName:XYZ,Location:<To be filled by end user>

                                                                          Record 3: FirstName : John,LastName:PQR,Location:<To be filled by end user>

                                                                           

                                                                          The Generated PDF should be having following:

                                                                          * The final PDF should have three pages. One Page for each record.

                                                                          *Reader extension should be enabled for the entire PDF so that if user chnages any location in any of the 3 pages it should get saved.

                                                                           

                                                                          Step 5:Now show the browser (response object) with Reader Enabled generated PDF of Steop 4.

                                                                           

                                                                          Step 6 : ENd user should be able to save the file in Location folder say he stored in C:\\MyPDF.

                                                                           

                                                                          Step 7 : User open the PDF and udpate the location for all three records and then should be able to save the file locally.

                                                                           

                                                                          Note : My business doesnt need to update the data back to application, let it be in PDF alone.

                                                                           

                                                                           

                                                                          Design Approach:

                                                                           

                                                                          * Should i have to use Adobe LiveCycle Designer 7.1 to design the form,?

                                                                           

                                                                          *Adobe LiveCycle Reader Extensions Server 7.2 to Reader Enable the form, If yes the is it my server side deployment component?

                                                                           

                                                                          *Adobe Reader which is Licensed free should be used by end user to view / read the PDF and modify the PDF as well as mentioned in step 7?

                                                                           

                                                                          *All the above processing until step 6 need to be happening in server side, do i need anything at my UI layer as well. Any suggestion from your end?

                                                                           

                                                                          Thanks

                                                                          Robin

                                                                          • 237. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                                                            tarekahf Community Member

                                                                            I think you have now clear requirements, and it should be easy to implement.

                                                                             

                                                                            I have the following feedback:

                                                                             

                                                                            1. The form generation should be done using server side web technology like ASP.NET or similar way. Steps:

                                                                             

                                                                              - Accept Key to lookup,

                                                                              - Run Query against the database,

                                                                              - Get results and convert to XML,

                                                                              - Merge XML with empty template (XDP) and render the result to the client.

                                                                             

                                                                            2. If you decide to let the user save the generated PDF Form locally, this is fine, but I don't see the value of this step, if you don't want to collect the data later one.

                                                                             

                                                                            3. To be on the safe side, when you generate the PDF, make sure to include Unique Primary Key with each record (where each record will represent a PDF Page on the form). This will allow you to easily update back the records when required.

                                                                             

                                                                            4. You should use the latest possible version of Adobe LiveCycle Desinger.

                                                                             

                                                                            5. I "think" you need only Adobe Acrobat Prof. 9 or higher which will allow you to reader enable the PDF Form which will allow to save the forms locally. Please try this to confirm. You need this version for the developer who will desing, then reader-enable and deploy the form on the server.

                                                                             

                                                                            6. If you use Adobe Reader to open a reader-eabled PDF, you will be able to fill and save the PDF on client.

                                                                             

                                                                            7. To generate the PDF Form and prepopulate it with data, you only need to give the user the link to the ASPX Page, and probably some nice HTML Screen to give him some instructions.

                                                                             

                                                                            Tarek.

                                                                            • 238. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                                                              robin_p Community Member

                                                                              Hi Tarek,

                                                                               

                                                                              Thanks for the reply.

                                                                               

                                                                              Could you please advice on following:

                                                                              • Should i use Acrobat SDK or PDF SDK. What version should be used.
                                                                              • For reader extension , should the required DLL be installed at Server only? If yes what version should be installed.
                                                                              • How best the design and code be made very geneic?

                                                                               

                                                                              Thanks

                                                                              Robin

                                                                              • 239. Re: Using Adobe LiveCycle Designer with ASP.NET to populate PDF Forms from Server Database.
                                                                                Jun_1234

                                                                                Hi,

                                                                                I have a standalone PDF from which I need to call a web service to autopopulate the pdf. The PDF should work in Adobe Reader.

                                                                                The call to the webservice works in Adobe Acrobat.

                                                                                I have downloaded a trial version of ADEP to use the reader extensions but not sure how.

                                                                                I have looked at the screenshot 

                                                                                https://docs.google.com/file/d/0B97clwYte2SHYjQ0OWMzNjQtMmE3Mi00MzE5LTkzMWMtZjM5Nzc5ZTkwYT Uy/edit?pli=1

                                                                                and have a few questions.

                                                                                1) Is the screenshot from livecycle? If yes then how to navigate to this screen. I have Livecycle version 8.2 on my machine.

                                                                                2) If I have to do this from reader extensions server component (LCRES) then can you send me the navigation steps. Again I have installed the adobe digital enterprise platform trial version using the jar file.

                                                                                 

                                                                                Thanks,

                                                                                Junaid

                                                                                1 3 4 5 6 7 Previous Next