question

MalamMalam-4042 avatar image
0 Votes"
MalamMalam-4042 asked AgaveJoe commented

Display PDF Fillable Form Without using Adobe

Is there a way to bring up a fillable pdf form in asp.net without using Adobe?
My user will not have Adobe Reader but I still want them to view and fill it.

dotnet-aspnet-webforms
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

As far as I know, the clients must have Adobe Acrobat to display PDF files. Adobe support is better place to learn Adobe features and if there is a path to integrate Adobe into your application.

Otherwise, design an standard Web Forms application to capture user inputs.

0 Votes 0 ·
MalamMalam-4042 avatar image
0 Votes"
MalamMalam-4042 answered YijingSun-MSFT commented

I have the following code that supposed to download Adobe Reader automatically but it does not work; I get "Initializing..." forever.

         string embed = "<object data=\"{0}\" type=\"application/pdf\" width=\"500px\" height=\"300px\">";
         embed += "If you are unable to view file, you can download from <a href = \"{0}\">here</a>";
         embed += " or download <a target = \"_blank\" href = \"http://get.adobe.com/reader/\">Adobe PDF Reader</a> to view the file.";
         embed += "</object>";
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Is this a new question? Are you asking how to provide a link to install Acrobat Reader? Or is there a problem rendering the HTML in Web Forms???

https://get.adobe.com/reader/

0 Votes 0 ·

Hi @MalamMalam-4042 ,

I have the following code that supposed to download Adobe Reader automatically but it does not work; I get "Initializing..." forever.

Whether there are problems when you are downloading or just response slowly? Could you post to us?

Best regards,
Yijing Sun

0 Votes 0 ·
MalamMalam-4042 avatar image
0 Votes"
MalamMalam-4042 answered AgaveJoe commented

Actually, I just need the link "http://get.adobe.com/reader" clicked automatically and download if it is already not installed.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Actually, I just need the link "http://get.adobe.com/reader" clicked automatically and download if it is already not installed.

The browser does not allow web sites to install arbitrary software on the client's machine. The user must chose to install Acrobat Reader.



0 Votes 0 ·
MalamMalam-4042 avatar image
0 Votes"
MalamMalam-4042 answered AgaveJoe edited

We should be able to download it using a hidden button programmatically clicked in code behind. It is just like a button click event without user interaction.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

We should be able to download it using a hidden button programmatically clicked in code behind. It is just like a button click event without user interaction.

You are mistaken. It is certainly possible to do an HTTP get from JavaScript and download an file but the user still has to click to install the software. Typically you explain that a PDF reader is needed to view PDF content on your site with a link to the PDF software. The user gets to determine if they want to install the software or not.






0 Votes 0 ·
MalamMalam-4042 avatar image
0 Votes"
MalamMalam-4042 answered AgaveJoe commented

That makes sense...

Any link to a site where I can find a simple asp.net code that will let export asp page to pdf?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I provided one approach in your other thread related to PDFs.

https://docs.microsoft.com/en-us/answers/questions/734634/export-entire-user-input-form-to-pdf-in-c.html

But most likely you need to learn how to use a PDF library to get a nice looking document.

0 Votes 0 ·