Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to validate a pdf file embedded with in iframe? I have embedded the pdf file as follows:
<iframe id="fred" style="border:1px solid #666CCC" title="PDF in an i-Frame" src="PDF FILES/funds-transfer-cash-demand-form.pdf" frameborder="1" scrolling="auto" height="1100" width="850" ></iframe>
There are textbox controls for contact no:,Age,DOB etc. I want to validate those. Its a web platform (asp.net with C#)
Posted
Comments
ZurdoDev 5-May-14 12:47pm    
I cannot understand any of your questions.

1 solution

stop using iframe :)

what you load in an iframe is a seperate document and therefore it doesn't related to the harbouring page an you therefore cannot use one to validate the other with and generally shouldn't attempt to use the output format pdf as anything beyond that, to the possible exclusion of editable pdfs, but that's another talk. Any validation should happen before you make the pdf available, that would be a standard approach.

My suggestion solution to problem at hand is to make the pdf available for download using a link and then list the links based on your form dataand abandon iframe idea (so if you want to open the pdf (why) you could make a viewpdf page that would take the pdf to show as parameter
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900