Demo Of Url2PdfReport Classs

June 28, 2006 § Leave a comment

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

    Advertisements

    phpResource Feeds

    June 27, 2006 § Leave a comment

    Yesterday I added phpResource Feeds to phpResource Website (http://www.phpresgroup.org). From now on, lastest posts of phpResource Group will be available in these URLs:

  • http://services.phpresgroup.org/phpResourceFeed/
  • http://services.phpresgroup.org/
  • I used my XmlToArray Class to parse the RSS of phpResource Group.

    Visit the URLs to see the feeds.

    Rupom

    Version Update :: Url2PdfReport Class

    June 27, 2006 § Leave a comment

    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

    Being The Top Downloaded Author At phpclasses.org

    June 23, 2006 § Leave a comment

    i am the top downloaded author for this week at phpclasses.org. Three of my classes are now in the top ten (10) list. These three classes made me the top downloaded author for this week:

  • SQL2PDFReport
  • HTML2PDFReport
  • Grab Gmail Address Book
  • I am happy getting this top position.

    My special thanks to the phpclasses members.

    Life is really enjoyable in programming!!

    $Rupom

    Five(5) Ways to Speed Up Your Site

    June 23, 2006 § Leave a comment

    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

    300 Members Of phpResource Group

    June 21, 2006 § Leave a comment

    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

    Lightbox JS Covered

    June 20, 2006 § 1 Comment

    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

    Where Am I?

    You are currently viewing the archives for June, 2006 at Rupom Here.