Unable to Retrieve Work Document Height in Monday.com

We are currently working on a feature for our “PDF Exporter App” to export PDFs in a continuous, unbroken format that closely matches the look and feel of the work Doc. To do this, we need to retrieve the height of the workDoc programmatically. However, I have not found a direct method to get this information using the Monday SDK or GraphQL.

As a workaround, I considered getting the dimensions from the Monday workDoc canvas by targeting the .editor-content DOM element class to retrieve its scrollable height. Unfortunately, I am unable to access these dimensions within the PDF Exporter app.

Additionally, since our app is server-side rendered, we don’t have access to the document object or DOM methods like scrollHeight, which are only available in the browser. We tried calculating the height during rendering, but this approach doesn’t work in our environment.

Moreover, we cannot retrieve or set the height of Monday block elements like “Layout,” “Image,” or “Video,” as their height isn’t accessible from the Monday.com context within our app’s iframe, even when using the Monday GraphQL API or SDK.

Could you please let us know if there is a way to pass these dimensions from Monday to our plugin, or if there is an official API to access the workDoc’s height? Any suggestions or alternative solutions would be greatly appreciated.
Thank you for your help!

Market Place App link - PDF Exporter for monday.com - monday.com Marketplace

Feature requests monday_docs