Forum


Replies: 13   Views: 3233
Add section and change page orientation with htmlextended
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by gmakstutis  · 23-05-2019 - 07:49

Hi,

I can see that addSection is available via htmlExtended, but I'm not having much luck in getting the syntax correct.

I would like to be able to do something like:

<phpdocx_addSection dataPaperType="A4-landscape" data-marginRight="1077" data-marginBottom="850" data-marginLeft="1077" />

but this isn't working.

Is there a way to do this in the HTML?

I'm using the namespaced version of the Drupal plugin (for Drupal 8) and the Premium version of phpdocx.

Many thanks