PHPOffice / PHPPresentation

A pure PHP library for reading and writing presentations documents
https://phpoffice.github.io/PHPPresentation
Other
1.3k stars 519 forks source link

RichText issue #506

Open nplesa opened 5 years ago

nplesa commented 5 years ago

Hi guys,

i have this code as part in my phppresentation.

   // // Create a shape (text)
   //  $oShapeRichText = $currentSlide->createRichTextShape(); 
   //  $oShapeRichText
   //      ->setHeight(400)
   //      ->setWidth($slide_width - 100)
   //      ->setOffsetX(50)
   //      ->setOffsetY(200);
   //  $oShapeRichText->getActiveParagraph()->getAlignment()->setHorizontal( Alignment::HORIZONTAL_CENTER );
   //  $textRun = $oShapeRichText->createTextRun($reportDescript);
   //  $textRun->getFont()->setBold(false)
   //      ->setSize(12)
   //      ->setColor( new Color( 'FFE06B20' ) );

$reportDescript has 200 characters..long text.. When i add this into my presentation all chars are written on single row. Do you have any idea about this?

PS: By the way, the presentation can not be opened in microsoft powerpoint 2007 .. I managed to open it with WPS Spreadsheets.

Best regards,

sujatasarmah commented 5 years ago

Bump! Facing the same issue.

attaching screenshots for reference

  1. First this box shows up untitled1

  2. On clicking ok, the slides appear white. untitled2

  3. After doing a ctrl+a and changing font color this is what appears. untitled3

camper5510 commented 5 years ago

Bump! Facing the same issue.

attaching screenshots for reference

  1. First this box shows up untitled1
  2. On clicking ok, the slides appear white. untitled2
  3. After doing a ctrl+a and changing font color this is what appears. untitled3

Do you fixed that?

Progi1984 commented 3 weeks ago

@nplesa @camper5510 @sujatasarmah Hi, Could you send me a sample file with error, please, for reproducing the bug ?