Joomla content to pdf - php

Hi I'm trying to convert a joomla page into pdf so far the things I tried keep failing or fell short. I tried PhocaPDF but I get tons of errors upon install and It would require me to change the jore of joomla. also tried Root pdf content problem is I have some php codes in the articles that would output too. So I'm only left with hard coding it. Would anyone help me on how should I approach this? Should I use PHP on my articles or Javascript? Thanks.

you can try to use following extension
http://forum.joomla.org/viewtopic.php?f=624&t=808593

Related

how to fill in excel table from PHP

I need some library or good documentation of xlsx files for writing out xls files from website. all I need to do is fill in content into predefined and styled table. I have considered writing everything directly from php but could't get hang of merging cells and if I could it would be a hell writing code for changing any style into a document instead its much better if I have predefined file uploaded and then just fill in.
Please redirect me or help me find some proper documentation.
Project is in early stage and can consider switching to other language like Node.js if it makes this part super easy but trying to keep it low profile prefer using PHP so i'm open to all ideas.
Thanks in advance to everyone.
PS. this is my first question on stackoverflow
Kindly do a Google search before posting questions like this. But answering your question, PHPExcel is a nice place to start. Just go through their documentation.

how do i display pdf in html (responsive/crossbrowser solution)

i need to display a pdf on the website. i've tried many ways but none of it worked for me.
let me explain what i've tried and why this is not ok for me.
i tried to insert pdf into html with <object> and <embed> tags. its ok if client browser has flash. but android phones don't have it so this is not a solution. plus iphone streching pdf so it is not readable.
then i tried to use just an <iframe> element. works fine only if browser has pdf plugin. in other cases browser starts file downloading. so this is not a solution too.
then i tried to use https://docs.google.com/gview?embedded=true&url=myfile.pdf. well and here i got troubles because there is some bug in in google docs because file displays only one in for times. the rest attempts ended with error code 200 from google. so as you already understood this is not a solution too.
then i tried to download php libs which should convert pdf to html (or image) but none of them worked beacuse i'm not that good at php and sometimes it asked to install third party libs so at this point i've failed too.
so now i'm stuck. i need to do something to display pdf on the page. i need some crossbrowser/responsive solution. it would be great if you help me to find some service like https://docs.google.com/gview which is gonna work without bugs or suggest any other solution. may be some small php lib with good documentation.
any help appriciated!
You can achieve by using PDF.js
https://github.com/mozilla/pdf.js/
for usage you can check this example http://mozilla.github.io/pdf.js/examples/index.html#interactive-examples.

PHP: Generating PDF by fetching data from database

I Have just started to learn PHP. As a task,
I submitted a form which sent the values to the MySQL database, Now, I want to fetch these values from the database and display it in a letterhead format and then have to output that letterhead as a PDF file.
Please suggest me a way to do that from the basic level, I tried to follow 1-2 questions here but couldnt get any results. I need a step-by-step procedure...
Thanks in advance!
Your work can't be done by us. so please search and research again. PHP itself provides a good way to generate pdf. If you don't like it you can go for a library such as fpdf.
You should google it first. try some code. Then you will get most errors. If you can't find a solution for that errors. You can post a question seeking help. We can help you.
Here is the link for Php pdf documentation
Here is the link for fpdf php library website

Tcpdf is not able to write thousands of records

I am using tcpdf library in my one of the project and the issue i am facing is while trying to add more than 1000 records using with table structure using writeHtml or Writhtmlcell function of tcpdf, it is not going to outcome as pdf. it crashed all the time and shows white page instead.
Tried lots of way but didn't work any.
Please suggest any solution if it is there.
Any help will truly be appreciated.
Regards,
Jenish
Solve the problem by installing XCACHE, It really speeds up the operation.
or,
You can also use MPDF, give it a try.

php mosaic script

I'm using a script that I downloaded from google code to dynamically generate mosaic images with the GD library. The script seems a bit convoluted. I've messed around with it quite a bit, but I'm sort of confused since it's written in German and I don't speak deutsch. I know that in order for it to work, I need to have 121 different images. But, I'm not sure if they needs to be in the directory or in mysql. Does anyone have a clue as to how to use this? Or does anyone have some suggestions for a better script for generating mosaic images with the php GD library?
The script can be found here: http://code.google.com/p/phpmosaic/
Thanks,
Lance
The images you like to use as thumbnails have to be inside a directory. You must add them to the db using the methods
phpMosaicImageParser::parseImageFolder() or
phpMosaicImageParser::parseImage()
However: there is no fix number of required thumbnails, it will depend on the SourceImage and the used options how much thumbnails you'll need at least.

Categories