Skip to content

Conversation

@phili67
Copy link

@phili67 phili67 commented Jan 14, 2022

Description

  • Problem with : Message: Cannot add TextRun in TextRun (resolution)
  • html.php is updated too to manage (options)
  • manage the image width and height (CSS)

Now You can declare your code like this :

 $options['styles'] = [ 'head1' => ['name' => 'Tahoma', 'size' => 14, 'color' => '1B2232', 'bold' => true], 'paragraph' => ['name' => 'courier', 'size' => 10, 'color' => '00FF00', 'bold' => true], 'font' => ['name' => 'courier', 'size' => 10, 'color' => '111111', 'bold' => true] ]; \PhpOffice\PhpWord\Shared\Html::addHtml( $section, MiscUtils::replace_img_src($html) , false, false, $options); 

Fixes # (issue)

Problem with : Message: Cannot add TextRun in TextRun (resolution)

Checklist:

  • I have run composer run-script check --timeout=0 and no errors were reported
  • The new code is covered by unit tests (check build/coverage for coverage report)
  • I have updated the documentation to describe the changes
- Problem with AddTextRun inclusion in other
@phili67 phili67 changed the title Update AbstractContainer.php Better Word export and options style modifications Jan 14, 2022
@PowerKiKi PowerKiKi changed the base branch from develop to master November 16, 2022 21:09
@Progi1984 Progi1984 force-pushed the master branch 3 times, most recently from 2d9f999 to e458249 Compare August 30, 2023 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant