I found the below example on your website and I am trying to implement it into my asp.net / C# project. I have a PDF of a form but I do not know how to locate the field names on the PDF so that I can input the data into specific fields. A few questions:
1. Where does the original PDF have to sit in order for the program to find it? / Can I enter a full path location for the document (for load and save)?
2. Do I have to create an interactive form and give the form a textbox name?
I am getting the following error while trying to run the below code:
Could not load file or assembly 'Aspose.Pdf, Version=6.4.0.0, Culture=neutral, PublicKeyToken=47b2d0fcacdd3eb6' or one of its dependencies. The system cannot find the file specified.
I was attempting to add an interactive field to an existing document. If there is a problem with this one, do you have a sample interactive pdf that I could use for testing?
Thanks for the template file, I have tested the scenario with your provided source code and original PDF document using Aspose.Pdf for .NET version 6.4.2.0.
First of all, I have to add a TextBox in the PDF document with name "Text1" and execute the same code provided by you except replacing "TextField1" with "Text1" (name of the textbox), everything is working fine and value is set in the resultant PDF. Source and resultant PDF documents are attached for your reference.
Please try to use Aspose.Pdf for .NET version 6.4.2.0 and in case the problem still persists, please feel free to contact. We apologize for your inconvenience.
I receive the following error while trying to download the files:
Unexpected Error
An unexpected error has occurred while we were trying to fetch your desired resource. We apologize for the inconvenience. An email has been sent to the webmaster with the error details.
Greetings:I was able to download the files. I also changed the text box field value to "Text1" and I am receiving the following error:
Could not load file or assembly 'Aspose.Pdf, Version=6.4.2.0, Culture=neutral, PublicKeyToken=47b2d0fcacdd3eb6' or one of its dependencies. The system cannot find the file specified.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Aspose.Pdf, Version=6.4.2.0, Culture=neutral, PublicKeyToken=47b2d0fcacdd3eb6' or one of its dependencies. The system cannot find the file specified.
Thank you for the information, I tried using your provided information to test your issue but I am unable to replicate the scenario at my end, every thing is working fine. Please create a sample application to show the issue. This will help us to figure out the issue and reply back to you soon.
I was able to figure out this issue. Thanks for all of your help!
One additional question, instead of saving the pdf to a specfic location on the pc, how can I instead prompt the user to enter the save location? This way when they go to the site and click on the doc link, they can either save or print the doc.
I am very sorry for the inconvenience caused due to this issue. However, I have requested the sale team to provide you temporary license as soon as possible.
Please do let us know if you need any further assistance.
Thank you! I did receive the temp license key. Also two posts ago, I mentioned that I was having difficulty getting a save dialog box to appear for the user. You responded with a code snippet and I tried it out but had no luck. Any other ideas?