June 28, 2006
I have put a demo implementation of my Url2PdfReport Classs in the web. Many users asked me their problems using the Class. This demo is for their better understanding. My demo is here:
http://phpresource.bdwebwork.com/pdf_test
[Choose your PDF reader's version in the demo.]
If you are facing any kind outputting problem, please see the demo outputs from this link. In failure, feel free to contact me.
Regards,
$Rupom
Leave a Comment » |
CURL, General, PHP, PHPClasses, Sharing Experiences |
Permalink
Posted by Rupom
June 27, 2006
Yesterday I released version 1.1 of Url2PdfReport Class. Changes that come with this version are simple but helpful. Because of some user-queries, I added the following methods to the class:
———————————————————–
/**
* Sets PDF version (added on 06/23/2006)
* @param pdf version
* @return none
*/
function setPdfVersion($pdfVersion)
{
/*
$pdfVersion = 1.3 for Adobe Acrobat Reader 4
$pdfVersion = 1.4 for Adobe Acrobat Reader 5
$pdfVersion = 1.5 for Adobe Acrobat Reader 6
*/
$this->pdfVersion = $pdfVersion;
}
/**
* Sets PDF header (added on 06/26/2006)
* @param pdf header
* @return none
*/
function setPdfHeader($pdfHeader)
{
$this->headerHtml = $pdfHeader;
}
/**
* Sets PDF footer (added on 06/26/2006)
* @param pdf header
* @return none
*/
function setPdfFooter($pdfFooter)
{
$this->footerHtml = $pdfFooter;
}
———————————————
I got some mails from some members of phpclasses.org. They suggested me to give a pdf version option so that they can choose their version option according to their available pdf reader. I did so.
And yesterday one of the phpResource members asked if header and footer can be added to the pdf. I added so to the class.
To use the latest options with your PDF, use the class as following :
——————————————————————
require_once(‘Url2PdfReport.class.php’);
$obj = new Url2PdfReport();
//pdf version
$pdfVersion = ‘1.4′; //change it according to your need
/*
$pdfVersion = 1.3 for Acrobat Reader 4
$pdfVersion = 1.4 for Acrobat Reader 5
$pdfVersion = 1.5 for Acrobat Reader 6
*/
//set PDF version
$obj->setPdfVersion($pdfVersion);
//set Pdf Header
$headerHtml = “put whatever you want to put in header”;
$obj->setPdfHeader($headerHtml);
//set Pdf Footer
$footerHtml = “put whatever you want to put in footer”;
$obj->setPdfFooter($footerHtml);
//sets URL of the HTML file which will be converted to PDF
//change this according to your URL
$obj->setUrl(“http://localhost/phpclasses/url2pdfreport/first_test.html”);
//gets the pdf report of the URL data
$obj->getPdfReport();
——————————————————————-
Hopefully programmers using this class will get some more helps by these changes.
Regards,
$Rupom
Leave a Comment » |
CURL, PHP, PHPClasses, Sharing Experiences, phpResource |
Permalink
Posted by Rupom
June 23, 2006
Paul Stamatiou shares with us five ways to speed up your site, some quick and easy recommendations to making your site fly.
He pointed out these five ways:
1) Reduce Overall Latency by Reducing HTTP Requests
2) Properly Save Your Images
3) Compression
4) Avoid _JavaScript Where Possible
5) Strip Extraneous PHP Calls
See his nice article:
http://paulstamatiou.com/2006/06/22/5-ways-to-speed-up-your-site/
My thanks to Paul Stamatiou for such nice knowledge-sharing.
$Rupom
Leave a Comment » |
General, PHP, Sharing Experiences, phpResource |
Permalink
Posted by Rupom
June 21, 2006
Yesterday phpResource reached to 300 members. We are really very happy seeing this number. We always wait to deal with a big community, to be with a big community so that we can help and exchange our views vastly. I appreciate the great contributions of our great and awesome moderators and members. They are making our goal successful.
If you are not a member of phpResource Group, please Join phpResource to share your views with us all. Hopefully you will be impressed by phpResource’s activities.
Join phpResource and Enjoy PHPing !!
Regards,
$Rupom
Leave a Comment » |
PHP, PHP Helps, Sharing Experiences, phpResource |
Permalink
Posted by Rupom
June 20, 2006
I just covered my blog’s images by Lightbox JS v2.0. It’s a great JS tool to overlap the current page by an image. See my test here :
You can download it from Here.
What you will need is read the “index.html” example and guideline file (that comes with Lightbox JS v2.0). Don’t forget to edit the values of “var fileBottomNavCloseImage” and “var fileLoadingImage” in js/lightbox.js file.
And finally you will see the JS heaven.
Keep enjoying on !!
Regards,
$Rupom
1 Comment |
PHP, PHP Helps, PHP/MySQL, Sharing Experiences, Web Development, phpResource |
Permalink
Posted by Rupom
June 16, 2006
Today is the happy birthday of the awesome guy Shimul. Happy Birthday To You Shimul. I am Wishing Many Many Returns Of This Day In Your LIFE. Just keep going ahead as of now…
Happy Birthday To YOU AGAIN…
Take care..
Regards,
$Rupom
Leave a Comment » |
Friends, General, Sharing Experiences |
Permalink
Posted by Rupom
June 14, 2006
I have installed Ubuntu Linux in my PC on day before yesterday. Ubuntu means “Humanity to Others”. Ubuntu is contributing the open source community by Ubuntu itself. We, the open source enthuasists, should appreciate its activities.
I didnt get any complexity during Ubuntu installation in my PC. The installation system just reminded me the Debian installation system. Both Ubuntu and Debian have approximately same installation steps. I am trying to get life in Ubuntu.
Ubuntu’s slogan reminded me the popular Bengali song “Manush Manusher Jonno, Jibon Jiboner Jonno – Ektu Sohanuvuti Ki Manush Pete Parena..O Bondhu… …”
Your OS Life is Easy and Virus Free When You Use Linux…
$Rupom
Leave a Comment » |
General, Linux, Sharing Experiences |
Permalink
Posted by Rupom