|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
how to convert html page to PDF format?
Hi All,
Is there any function to convert html page to pdf format |
|
#2
|
|||
|
|||
|
RE: how to convert html page to PDF format?
Hi.
I hope that this post will be in help anyway. In general, there is no such direct,internal funcs for translating into PDF from other formats. But the solutions is still available. They are very welcome. Here I don`t assume that you want to transform a single or 2-3 pages manually. For this we have another instruments already ready for use. I suppose that you want to create a object transforming any given HTML/and not only/ page,even if that page is generated via server-side scripts, into PDF documents. Automatically. With a few clicks only. /or even without them in some cases maybe/ You will want to have precise and full control over the the process,including which parts of the given docs to be processed and with dependency of any given or unexpected /to some degree/ internal and external factors-dynamic or static. The idea behind the solution below is that you make some big effort at the beginning, /and little after that/ and then you gain the results and sweet fruits for a long period. In result you will have intelligent, scalable, powerful, and reliable solution that is working for you, making your life easer and giving you more than you invest - in time effort, money and so. You will code just once! It can be used by many people or objects at one time in different cases, and preferences. One /of the many/ possible ways to solve this is to create a quartet: reader writer master keeper The Reader:parsing-processing the desired text docs. / this include not only HTML files !!! / With capability for analyzing, and preformatting the data:back-end formatting so to say. Should be recognized the data itself, the structure,style and logic. Separately and with relationships. /And eventually recognizing the meaning of the JavaScript programs inside, and this is important too I think. / The Writer:For front-end formatting directly in PDF. There is a many PHP functions for generating PDF content.The Writer should organize them logicaly and automaticaly. It depend from the Reader and from the definitions. /and the goal/ Should be reprogrammable. The Master:Here we have dynamic environment and mediator-coordinator between all sub-structures inside,at one hand, and between the main program and the user-side point of view,in another. /this allows you to have a button on every single HTML/XHTML/SVG/MathML.... page saying "Get this page/s/ in PDF".../ In case of SVG/MathML you will need some rasterizer,but this is another task. Will work between the server and the user agent also. The Keeper:The very base. The previous three fully depend of this node. This mean: database/s/,definitions,syntax vocabularies, grammar, storage for ready to use objects and primitives, /including images/, orders to execute, constants, versions, /including space for future improvements in the languages that are in use for implementing the solution,or even new languages ! /, also and preferences, because more than one user will have access.With the last comes in the game and the restrictions - internal, external and personal,or group. About the languages. The first aspect is which coding languages will be used : PHP MySQL --- XHTML CSS JavaScript or others. The second is about internationalization and supported languages such as English,Deutsch,French, Greek,Spanish,Italian,Bulgarian,/my native/, and so.They are hundreds. About the interface. Intuitive and user friendly as a start point. About the hot water: All this is done already in the past by Napoleon itself, while being on St.Helena. Now he is promoting the newest hot enterprise pro+ .NET.FISH++#-*and_so_on version. For the only 9****golden napoleons/cash only please/ So why should you worry about whatever. Just go and take your copy.... the product.licenseAgreement.lenght=~~2365 pages floating-integer with 1.48 bit precision, font-size="1pt"... no warrancy at all. Apart of this joke /stupid for some people maybe/, I`m not aware for some products written in PHP and responding to the given criteria stated at the beginning. I wish you success! You can find me at i_v#mail.bg for a peach-juice or coca-cola... and both are mime-accepted :-)) |
|
#3
|
||||
|
||||
|
RE: how to convert html page to PDF format?
google fpdf
or http://www.htmldoc.org/ or http://fpdi.setasign.de/ or http://www.foolabs.com/xpdf/home.html They all help Cheers West |
|
#4
|
|||
|
|||
|
RE: how to convert html page to PDF format?
Check into the PDF Functions in the PHP manual, though you will probably have to do some intermediate work.
If it's a one time thing, I use PDFCreator from SourceForge (open source) like a "printer". |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Applications > how to convert html page to PDF format? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|