Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 months ago.
Improve this questionI'm not so experienced a programmer ... only in C # not PHP or HTML.
I want to create a URL link to a pdf file, I will do a certif开发者_运维知识库icate when they have passed a quiz and for this quiz, I would create a URL link.
This needs to be in PHP or HTML.
[Later edits from comments:- emphasis is mine. KJ]
I want to generate a link to the pdf file. so the user can show that it passed the quiz and is certified – BeGeek Apr 4, 2011 at 8:04
The user has a certificate on the web site where they can download it to the computer.. but my boss want to have so you can put it on a CV... by a url/link... he want me to write a module for this... and I have no idea how to do it... – BeGeek Apr 4, 2011 at 8:09
when I took the link road so it was only in download format .. I want it to view the certificate when you click on the link. – BeGeek Apr 4, 2011 at 8:22
I wrote the direct link to that pdf file ... and then it became a download ... I want generea allowing the user to click on a URL / link and then display pdf file in the browser ... – BeGeek Apr 4, 2011 at 10:25
Have a look at PrinceXML.
It's definitely the best HTML/CSS to PDF converter out there, although it's not free (But hey, your programming is not free either, so if it saves you 10 hours of work, you're home free.)
Oh yeah, did I mention that this is the first (and probably only) HTML2PDF solution that does full ACID2!?
http://princexml.com/samples/
from Convert HTML + CSS to PDF with PHP?
There are 2 cases:
If you want to show the result after the quiz as HTML, there's no need to mention about PDF.
But if you want to show the result as PDF and let the quiz taker download this PDF result, you will need to create a PDF file by your own code, kind of PDF library:
For PHP, you may use this standard PDF library:
http://php.net/manual/en/book.pdf.php
Example for using PDF library of PHP:
http://www.php.net/manual/en/pdf.examples-basic.php
After creating the PDF file, you can easily create an URL (a string starts with http) to that PDF file, depends on your domain, and the directory route to the just created PDF file.
精彩评论