Can anyone help me with resources on how to use HTML2PDF am a beginner, i just downloaded the library but not sure how to proceed can anyone helpout.
Thanks
I don't know HTML2pdf, but I recommend using tcpdf. Extract the files to your server and just work of one of the examples. Very easy.
Related
I've been looking around for a good HTML to PDF converter via PHP. But all the information I've gathered is from 2010 or earlier which gives distorted image in my opinion because ever since those libraries were made or used or whatever, HTML5 and CSS3 wasn't in the picture yet. So now I'm wondering which library is nowadays still working flawless and is worth trying out.
I've found a couple of libraries and I was wondering if these are good enough these days but if you have another example, library or script. Please do tell
DOMPDF
mPDF
fPDF (don't think this one is an option but I've seen a lot of scripts using fPDF as foundation)
HTML2PDF and HTML2PS
Thanks in advance!
You might want to try using phantomjs headless browser with some PHP library of your choice.
I have searched the depths of the internet for a solution but unfortunately all the posts discussing the issue are outdated and provide no solutions.
I need to be able to dynamically generate a screenshot from a SWF file and save it locally to the server. Some posts suggest the use of FFMPEG, but I don't think it supports the SWF format. Another suggested to use the Internet Explorer grabscreen function, but that's Windows only.
Any answers on how to do this are greatly appreciated.
If you own a server, you can install extension for PHP (http://php.net/manual/en/swf.setup.php) however, this is a little overkill for getting one frame.
Other solution is using this class:
http://www.sephiroth.it/swfreader.php
Also, you can write your own parser, in this case refer to Adobes flasg format specification:
http://www.adobe.com/content/dam/Adobe/en/devnet/swf/pdf/swf_file_format_spec_v10.pdf
If I understand you correctly you need to generate an image on server side. Please look at the solution described here: http://techblog.floorplanner.com/post/20528549445/server-side-png-rendering-of-swf-images-using-gnash
I didn't try it myself but hopefully it will help. Also if it is possible to generate an image after the first user opens the swf and there is a possibility to change the code of the SWF, I'd recommend you to look at this article: http://www.flepstudio.org/forum/tutorials/507-swf-png-actionscript-3-0-bytearray-class.html
I'm looking for some help..
I need to create a web page (PHP) that will read an uploaded PDF, and save inside a database all the pdf's textarea/checkbox etc..
Someone can suggest a good PHP class? I tried the FDF library.. but is not working on PHP 5.3
If you're used to using frameworks, then the Zend PDF library might be just right for you.
Have you tried PDF Reader? It works with PHP 5
I think that reporting in PHP is very hard. I tried the raw methods of FPdf or R&OS but i would like to know if there is something more friendly to use like JasperReport or Adobe LiveCycle.
I saw somewhere the php javabridge to run jasperreport from php, but i don't like very much this solution.
What do you use for php reporting? Don't you think that fPdf or smiliar are not very friendly for standard reports?
Thank you.
Personally I use PHPExcel for creating Excel files and TCPDF for PDF. Both are very well written object oriented libraries and don't need any external extensions.
What do you mean by php reporting?
For generating PDF files I use and highly recommend mPDF, which does not require any special extensions on the server.
I'm faced with having to generate some fairly basic PDFs on a server which is running php 4.3.2 unfortunately.
So that pretty much renders most things impossible such as google's domPDF etc.. PDFlib is not compiled in so I can't use any of that either.
Does anyone have any suggestions?
Thanks!
use this R&OS PDF Class to achieve this task.. This is fairly simple and light weight class and requires no module etc to be installed on the server.
You could try out DocRaptor.com, which is a webservice that will let you convert html to pdf.
I ended up using an older version of fpdf and HTML2PDF (from the link below.) It's certainly not ideal, but then neither is a 7 year old version of php.
http://www.macronimous.com/resources/Converting_HTML2PDF_using_PHP.asp
You didn't mention if you were generating these from scratch or from existing PDF data. pdftk is a handy PDF manipulation library. You can shell out to it from PHP.