Forum


Replies: 1   Views: 863
Height left in document
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 Exorion  · 14-02-2022 - 12:10

Hello!

I want to insert some photos after the end of commercial offer - but i want to understand should i use next page or i can put images on this one!

Is it possible to detect how much space left till the end of the page in pixels?

Thanks

Posted by admin  · 14-02-2022 - 13:43

Hello,

There's no method to get the remaining space to the end or bottom of the page.

You can use the options relativeToHorizontal and relativeToVertical available in addImage with DOCXPath to insert images using absolute positions in the last section and other positions of the document.

Regards.