what PDF creator do you use with laravel? [duplicate] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Can anybody advise on the best PDF generator class/library to use with PHP? Preferably one which is maintained.
I am aware that this is a duplicate of the following question, however, the accepted answer is over 3 years old and I want to know whether the answer has changed since this time.
Which one is the best PDF-API for PHP?
Thank you

Try TCPDF, have good features
http://www.tcpdf.org/examples.php
Also simple HTML to PDF Converter API in (PHP, C#, ASP.net C#, ASP VB.net, JAVA,...)
from "PDF CROWD"
http://pdfcrowd.com/html-to-pdf-api/
very simple to use, but I think this API may need to purchase even they provide a free test account..

Have you tried http://www.PDFnow.com?
Provides a powerful template engine, and is pretty easy to use.
Supports complex layouts, layouts for multiple pages, invoices spreading separate pages, pagenumbers, headers, footers, etc. Definitively much better than fpdf.
You can simply integrate it into your PHP code by:
generatePdf(<templateName>, <ParameterArray>);
very straightforward.

Have a look on http://wkhtmltopdf.org/ Convert HTML to PDF using WebKit engine.
It can be used from PHP easily. For example, there is a bundle for Symfony2: http://knpbundles.com/KnpLabs/KnpSnappyBundle

Best One is TCPDF
http://www.tcpdf.org/
Never Use DOMPDF

Related

Reports Codeigniter so hard code [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Right now, I am using CI 3.0 . And for create report like invoice, monthly report sales, I using dompdf which is so spending time to debug coz dompdf not really support JS.
I was wondering a tools like crystal report , drag and drop report. I am not sure that PHP have like that.
I found php-reports, it looks interesting. But I dont know how to integrate it.
Perhaps, someone out there have solution to this PHP Reports, or maybe if you are share how to simplified creating a report in CI.
Thank You
maybe look at; http://www.hkvstore.com/phpreportmaker/
this questions lightly talks about using it; here
CI is great in that you are allowed to break the rules if you want. if its painful working inside the M-V-C approach then bend some rules or look at another method; like writing a library, or have your model generate more than just the dataset and include html ready for your CSS that your view just has to output (rather than parse).

PHP Convert Word file to HTML without losing styling and images [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Is there an API for converting word files to HTML without losing the format?
Can the google documents API be used for this?
I tried saaspose but the returning result is always a server error.
Solutions that did not work for me:
Converting MS Word document to html in php
I've spent a bit of time loking into this, and the best solution that I've found was to install unoconv on the server, and using PHP to interface with it through system calls.
I would have loved to find a good native PHP solution for this, but unfortunately I couldn't.
Edit
Since originally answering this, I've come across a web service which presents an API for converting documents. I haven't tested it very thoroughly but it does seem to produce decent results at converting Word to HTML: CloudConvert.
PHPDocx has a solution. According to site you may extract data directly from any database or spreadsheet and export them to other popular formats (PDF, DOC, HTML, ODT, ...) with the help of the conversion plugin. These reports may include editable graphs (only docx), images, tables, headers, footers, etcetera.
Am not sure how good it can convert word to html

PHP library for SVG dynamic graphs [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I was (quite) happy to use jpgraph for graphs in PHP, and when in need of "dynamicity", I just added the image map, handled hover and click events etc. (a bit clumsy in jpgraph, but possible).
But now I've seen pretty cool graphs made in SVG. I didn't know this dynamicity is possible in SVG!
Can you recommend any SVG dynamic graph library for PHP that could replace jpgraph in this sense? Thanks a lot.
Many libraries are using <canvas> instead of SVG. Then, it will really depends on your needs, but D3 is very impressive.
D3
Flot
gRaphael
Try this Raphael js add-on for charting.
http://g.raphaeljs.com/
From a PHP perspective, have a look at this, which looks good, maintained and interactive. Not sure if it covers all your dynamicity needs.
Looking for an alternative for jpGraph which started to cause complaints after upgrading the 'P' part in MAMP, I stumbled upon SVGGraph. Didn't convert my graphs to it yet.

PHP and Javascript Documentation Generator [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm in the process of generating API docs for an in-house web app that's undergoing some expansion. It's a DHTML project, with a mix of both some OO and mostly procedural PHP, and purely procedural Javascript. At the moment, it's pretty much all documented for the appropriate doc generators (phpdocumentor and jsdoc), but the two were never "connected". I could go through and add manual link statements to the doc blocks, but managing all those links (like "../jsdoc/filename.html#function) is a real pain.
Any suggestions for documentation generators that handle both PHP and JavaScript, and allow something like #see functionName between languages?
If worst comes to worst, I can hack together a script to rewrite LINK URLs from some magic syntax (i.e. js: and php:), but I'd really rather have something that will allow a unified tree view of everything.
Thanks,
Jason
After looking at a number of options, I wrote a PHP script that parses JS files, pulls out the doc blocks and function definitions, and then writes it to a file that phpdoc can process. It just needs one line added to phpDocumentor.ini so it will parse .js files.
The blog post talking about it is at:
http://blog.jasonantman.com/2010/08/documentation-generation-for-web-apps-php-and-javascript/
And the script is at:
http://svn.jasonantman.com/misc-scripts/

Coverting DOC to PDF programmatically [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm looking for a library to help me convert DOC files to PDF using PHP.
I'm also open to using an external website if this functionality already exists elsewhere, as long as this website has a programmatic API and is free.
Any suggestions how to approach this?
I haven't looked at PHP in a very long time, but if you can make web service calls from it then try this product. It provides excellent conversion fidelity. It also supports additional formats including Infopath, Excel, PowerPoint etc and has Watermarking support as well.
Please note that I have worked on this product so the usual disclaimers apply.
Late but possibly useful as a general reference particularly in light of the "external website" option you mentioned - Docmosis provides a web-service api for creating doc + pdf + odt + other formats from any application that can invoke a REST web service (or HTTP post).
You can change the file extension of the word file to pdf,by using below code
$filename = preg_replace('".docx$"', '.pdf', $filename);

Categories