There are preformatted pdf files on the server, i need to create a web service using c#, which can open this pdf and manipulate it ( edit it ) with the recieved parameters, and generate a new pdf at the client. Can Aspose.pdf fulfill my requirement.
We have a product named Aspose.Pdf.Kit which can be used to edit already created Pdf files. But before I can assure you that either our product full fills your need, can you please add few lines to your requirement, i.e. what sort of modifications you need to make in the file?
Thanks for the reply. I went through the Aspose.Pdf.Kit, and saw the demos, but still I am not able to solve my problem, as i am new to this , can you help me in getting a better documentation or manual for usgae of the various methods. My exact requirement is to build a web service in C#, which opena a pdf form and fill the fields with the arguments passed while calling the webservice and as a result the filled pdf should be displayed on the browser of the client.
We are currently looking into the details of your requirements, please spare us a little time so that we can communicate to you that either we are in a position to fulfill your requirements right now or we need to suggest some other solution.
Thanks for the mail. I have gone through the demos, and my requirement is similar to the demo of formsdemo, but in the code of that there are only methods defined. i cant see where and how the methods are called. Can you please tell me from where those methods are called.
Thanks for the help, now i am able to generate PDF but it is saved in the server, can i send the generated PDF to client browser without saving on server? If yes can you guide me in doing so.
I resolved the problem. Thanks for the support. I want to know that can i use the forms designed in adobe livecycle designer 8.0 as the template pdf, because i designed some forms and in the pdf generated i cant see the fields filled while using the sample student.pdf form it is working.
I think there are some feaures in adobe livecycle designer 8.0 which are not supported by Aspose.Pdf.Kit. We will investigate this issue and reply to you.
Please find attached the PDF Template i generated in adobe lifecycle designer 8.0 and here is the code
Random RandomClass = new Random(); int num = RandomClass.Next(1, 100); string templatePdf; string output = "mynew" + num; string Mydir = "C://Manish/"; templatePdf = Mydir + doc_type + ".pdf";
Form form = new Form(templatePdf, Mydir + output + ".pdf"); //Fill the field "Name" with "Mike". form.FillField("Name", name); //Choose the field "Gender" with "Male". form.FillField("Gender", "Male"); //Fill the field "Telephone". form.FillField("Telephone", tel); //Fill the field "Address". form.FillField("Address", address); //Choose the item "GradeTwo" of the Combo field "Grade". form.FillField("Grade", "GradeTwo");
//use case for checking the checkbox "Lodging". //form.FillField("Lodging","Yes"); //use case for unchecking the checkbox "Lodging". //form.FillField("Lodging", "Off"); //Fill the image button field. //form.FillImageField("Photo", path + @".\Resources\lovely.jpg");
As I explained in <A href="https://forum.aspose.com/t/127014</A>, in Kit 3.0.0.0 Form.FillField() only works with valid license. A good news is that we have open the function to unlicensing users from the next coming version, which will be released before the end of this month. But before that, we can provide you a trail version in advance if you need it so urgently.</P>
<P>Best regards.</P>