have any php free pdf library support css float property - php

i used dompdf as php pdf library with codeigniter project but it doesn't support css float property. But i need this property supported free pdf library.
And other hand if i use lot of table then it takes to much time to generate pdf.

in its latest version (which is 0.6 beta 3) you can enable it in the config. It's still experimental but it worked fine for me

Look at this answer of mine
cezpdf is alternative and easy to use
cezPDF in Codeigniter 2
Also here is a simple tutorial to use it
http://www.christophermonnat.com/2008/08/generating-pdf-files-using-codeigniter/

Related

SSRS Set the generated PDFs version to 1.3

I am using SSRS version 15.0.1102.897. When I generate PDF files using this version the PDF gets set to version 1.7.
I have another instance of SSRS running version 13.0.2216.0 and when I generate PDF files using this version, the PDF gets set to version 1.3.
The issue I'm running into is that I'm using a FPDI PDF-Parser Library to merge the generated files together but this library only supports up to PDF version 1.4 for merging.
Is there a way to force the generated PDF in the v15 SSRS instance to be PDF version 1.3 or 1.4 instead of 1.7?
Thanks in advance
Looking through RSReportServer.Config description that value seems not to be accessible (pun) to configurators.
SSRS as you note is now designed for features found in version 1.7 upwards but may work primarily using 1.3 compatible objects.
The simplest solution may be to use a binary/hex patchier to replace the 8 bytes %PDF-1.7 header string with %PDF-1.3 (do NOT use an ascii string find and replace such as sed/grep), if you want to try the dirty way you need either https://sourceforge.net/projects/bbe- or other equivalent to hexdump then modify then hex2bin and verify no byte change in file size (not even one byte +/- since the trailer would be corrupted)
However there is no guarantee that any 1.5 or above objects will not break FPDI so for best compatibility you could parse through Ghostscript to "down-level"
for more details see related question and old link here https://stackoverflow.com/a/51002675/10802527
Do follow the link to iconic blog but the modern command line can be shorter so try the traditional
<?php
exec('gs -sDEVICE=pdfwrite -o="'.$srcfile_new.'" "'.$srcfile.'"');
?>
and also try for comparison using 9.55 additional -dNEWPDF

Is it possible to convert pdf to svg in Laravel

I am looking for any package in laravel which provides functionality to convert pdf to svg and, it should also provides functionality of download and store.
Laravel is just a framework built on PHP, so whatever PHP implementation is viable - it will be viable on Laravel.
I have asked a quite different question, but the answer may lead you to positive results. Ghostscript PDF file compression using PHP's exec (Laravel on Docker)
You can use my implementation and combine it with this: How to convert 10MB PDF to SVG quickly with appropriate size for web
Good luck.

Suitable library to write PDF using Code igniter

Which library is best to write PDF from HTML using Code Igniter?
Right now I'm using TCPDF, and it's taking much time to load a library.
Following are some useful PDF libraries & Tutorials for Codeignitor
PDF generation using dompdf
TCPDF-CodeIgniter Integration
Generating PDF files using CodeIgniter
mPDF with CodeIgniter
generating PDF files
Check out this article. The PDF library used there is quite fast and easy to use.
Since you're looking to convert HTML to a PDF, I highly recommend the wkhtmltopdf. It uses Qt and WebKit to generate PDF files of rendered markup, and even handles moderately complex JavaScript and AJAX. This makes it really useful for generating PDFs of pages that you have already created views and templates for, with the added benefit of being able to tweak and debug these pages with your browser. It works great for generating platform agnostic print views in your web app by normalizing the many nuances of various combinations of operating systems, web browsers, and printer drivers.
It's a stand-alone binary, so you may have trouble implementing it on shared hosting, but I used it recently on a project and could not have been more happy with it.
wkhtmltopdf: http://code.google.com/p/wkhtmltopdf/
My personal favorite PHP Library and API for it:
https://github.com/mikehaertl/phpwkhtmltopdf
Check out R&OS library R&OS pdf
i find it easy to implement

PDF generation in PHP 4.3.2 :(

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.

How can I generate a PDF from HTML without the PDFlib library?

I need to dinamicaly generate a PDF from HTML, but I have PDF Support disabled on my hosting, so is it possible to do without PDFlib GmbH library?
Thanks
There are many packages, but as I gather you're not able to install extra libs on your hosting. Options would be FPDF if you feel like rewriting your whole HTML into blocks, TCPDF if you feel a bit less masochistic, which has some limited html/css support.
The most common alternative is FPDF. It is pure PHP and needs no installed extensions.
An other nice option is dompdf, which is a HTML to PDF converter and is (almost) CSS 2.1 compliant. It can be used either using PDFLib or the R&OS CPDF class
You could also checkout htmldoc:
Project page

Categories