I'm using WAMP and I would need to create PDF from php/html pages.
I had some trouble with DOMPDF since it seems unable to manage tables longer than a page, and I'm considering to use TCPDF.
I saw that I could install TCPDF with COMPOSER but I would prefer,if possible, to avoid a further installation.
Any chances to install TCPDF without composer?
thanks
Related
I am currently using mPDF to handle a couple of things. The problem I'm facing however is that mPDF uses a version of FPDI that is unable to handle files over PDF version 1.4. There is a (paid) commercial addon that makes handling newer PDF files possible though. The problem is:
I installed mPDF through composer.
I am unable to change the FPDI package, since mPDF is a package in and of itself, that uses another package.
My question is: How can I change mPDF to use the commercial (v2) version of FPDI?
Thanks in advance.
~Brendan
There's this pull request, that adds compatibility for FPDI v2. Because of BC breaks it will be merged in mPDF 8.
Until that just use the legacy version of the parser add-on. This can also be installed with composer.
A question concerning Joomla, Libraries and Composer.
I've developed a library locally using namespaces and composer autoload. My plugin then uses that library and everything works locally as I executed composer install inside the library.
Now my question is: How can I execute that composer install inside the library when installing the extension on a Joomla! site? (And at the same time: how to composer update on library update?)
Thanks for your help :)
[Fatal error: require_once(): Failed opening required '/.../joomla/libraries/vendorname/libraryname/vendor/autoload.php']
As per Joomla docs; Using Composer with Joomla, they do not yet support for additional libraries.
Can you install any extra libraries via Composer?
Not at the moment in Joomla! 3.4. In the longer term it is the CMS's aim that you
can download extra packages. To emphasize this, we will not yet be
releasing the composer.json file within the main Joomla! download.
What I can suggest you keep that package in a folder and require that autoloader file where you need it.
I'm currently using mpdf to merge together a few pdf files the users uploaded. I found myself to face the issue of mpdf using the free version of FPDI which gives a mPDF error: Unable to find xref table - Maybe a Problem with 'auto_detect_line_endings' error when trying to operate on files whose PDF version is higher than 1.4.
I don't have ssh access but just CPanel, so I can't install GhostScript. Having to tell users to manually re-save and downgrade their own PDFs before uploading them surely isn't the way to go at it.
tl;dr Is there some way to downgrade PDFs to 1.4, using PHP, without ssh access/relying on an external server to convert?
I found a PHP caching library that I'd like to use in CodeIgniter, but the docs only have instructions for installing / using with composer: http://www.php-cache.com/en/latest/
I inherited a project on a server that doesn't have Composer. Ideally I would like to use it without Composer. Does anyone have any knowledge of how to load this without it?
well, you could download the package itself and add it to your Codeignitter libraries autoload (if that's possible, sorry, dont know too much of CodeIgnitter). Though if i'd be you i'd go into Composer, it is revolutionary for php apps and you're loosing out so much by not using it... just composer init in main app folder & make sure that your CI is reading the autoloaded classes (i bet you'll find some tutorial for that)
by download I mean download and require in your php files where you're using it!
I use dompdf to make pdfs from html.
It works great apart from the fact that you cannot show svgs.
Apparently dompdf 0.7.0 has the ability to show svgs, but you need a special library called php-svg-lib. I know I have to use the img tags to show an svg in pdf which is fine, but it keeps saying "unknown image"
So I downloaded the php-svg-lib library from the github, but I have no idea how to install it.
My question is how do I install php-svg-lib into dompdf so that I can use svgs in my pdf documents?
The answer is that php-svg-lib comes with version 0.1 of dompdf.
You can update it via composer. Once composer is installed:
Open a cmd prompt window.
Enter the dompdf folder and type composer show. This shows you what version of the libraries are installed.
Type either composer update or composer install to update all libraries.