I created a little application which receives a form via POST
method and in return generate a pdf file using the form data.
I would like to load the response pdf file into a <iframe>
for printing purposes.
All i found works only if you know your pdf file source or you can set your pdf generator url.
<iframe src='yourpdf.pdf'>
or
<iframe src='path/to/your/script'>
My issue is that i have to post my form first to generate the pdf file.
Is there any way to do it?
If not how should i pass the form data else since via the url would be really messy.
感谢Glegan的想法,我将表格加载到iframe中,因此不必加载pdf文件。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.