Menu

How to create new paragraphs with PHPRtfLite?

PhpRtf
2012-05-10
2013-04-30
  • Sophie Fromage

    Sophie Fromage - 2012-05-10

    How to create new paragraphs such that the following writeText creates new paragraphs?  What to substitute for [seperator[?

    $sect->writeText ("This is first paragraphThis is second paragraph", $font, $parFormat);

    Thank you.

     
  • Steffen Zeidler

    Steffen Zeidler - 2012-05-10

    Why not writing:

    $parFormat = new PHPRtfLite_ParFormat();
    $sect->writeText('This is first paragraph', $font, $parFormat);
    $sect->writeText('This is second paragraph', $font, $parFormat);

    When $parFormat is not NULL, writeText() will generate the text as paragraph.

    I hope, this was helpful for you.
    SigmaZ

     

Log in to post a comment.