Support of merging cells in PhpRtf Lite

PhpRtf Lite 0.3.0 released. The main feature added is support of merging cells in table. This feature is implemented in Table->mergeCells() method. Library can be downloaded from Download page.

Usage of cells merging can be found in Sample scripts.

16 Responses to “Support of merging cells in PhpRtf Lite”

  1. Roman Gaag Says:

    Guys, thank you a lot!!!
    You library is very helpful.

    By the way, is it possible to make an image text wrapping “behind text”?

  2. Denis Says:

    No, current version has no such possibility. Maybe, future versions will have.

  3. Mox Says:

    How can one help with developing?

  4. Denis Says:

    I have plans to move project to www.sourceforge.net. I will inform here when it hapens.

  5. peho Says:

    Whay not suport Cyrillic?

  6. Denis Says:

    I get a lot of e-mails with question, how to insert variuos non english characters. When the resource is not utf-8, you have to use iconv function to convert your text to utf-8 encoding.

  7. Mox Says:

    Any chance of moving the files over to PHP5 - Once again I’m more than willing to help.

    Let me know.

  8. Denis Says:

    It happened. I moved project to sourceforge. So it’s possible to create subproject for moving PhpRtf over to PHP 5, but also there are more other jobs that could be done, etc: implementing styles, possibility to use templates and others.

  9. pooja Says:

    Hi All ,

    I am using this phprtf for my project . It works fine .
    But its not printing in landscape . I have to create a page to print in landscape .How to do that ??
    any help ?? I donno if there is a forum to discuaa all these .so posting it here
    Please help me out

    Thanks

  10. Denis Says:

    You have to use Rtf::setPaperHeigh() and Rtf::setPaperWidht() methods. Using Rtf::setLandscape() is not enough, because it says to printer that page is landscaped.

  11. Lloydie T Says:

    phprft really helped me out of a spot. I made one little change to the sendRtf function so that I could use file names with spaces.
    From:
    header(’Content-Disposition: attachment; filename=’.$fileName.’.rtf’);

    To:
    header(’Content-Disposition: atachment; filename=”‘.$fileName.’.rtf”‘);

    Usage:
    $rtf->sendRtf(”Quotation for $cust_name”);

    Silly addition, but some users wanted it.

  12. Peter Says:

    This script is fantastic, it works really well. Although I am experiencing a little problem I would like to ask help with and it occurs when I publish the script from a windows based apache webserver to a linux based apache webserver. The problem is the line breaks doesn’t work on a linux webserver. On windows it looks great, I have tested this with the sample scripts as well and experiencing teh same problem. Can I please ask your help?

    Thank you

  13. Maarten Says:

    Is it possible to add the total number of pages? I found you can add the pagenumber with the tag, but I don’t see anything for the total number of pages.

  14. Angel Says:

    Hello,
    everything works fine until you start using ñ?, a, e, i, o, u
    I do not accept these characters.

    What can I do that?

    Angel!

  15. Denis Says:

    To Angel.
    I think iconv function would solve your problem.

  16. Peter Says:

    Hello,

    I have posted a message previously, is there a way to make the line breaks work the same way on a Linux/Apache as it works on the following link?
    http://www.phprtf.com/samples/document_sections.php

    On this sample the titles and the paragraphs line breaks works fine, but when I would run the same script from a Linux Apache the following text looks like this:

    Sample RTF documentAs an example, the following RTF code:\rtf1\ansi\fonttbl\f0\fswiss Helvetica;\f0Hello!\par\parThis is some \b bold text.\parwould be rendered like this when read by an appropriate word processor:Hello!This is some bold text.

    instead of this:

    Sample RTF document

    As an example, the following RTF code:

    \rtf1\ansi\fonttbl\f0\fswiss Helvetica;\f0
    Hello!\par\par
    This is some \b bold text.\par

    would be rendered like this when read by an appropriate word processor:

    Hello!

    This is some bold text.

    #######

    Can I ask your help in what could cause this problem?

    Thank you,

Leave a Reply