MartinPacker / md2pptx

Markdown To PowerPoint converter
MIT License
210 stars 32 forks source link

Create functions to return dimensions of title and content areas #66

Closed MartinPacker closed 3 years ago

MartinPacker commented 3 years ago

Right now it's a little haphazard. But functions to return rectangles would be good. Something like

titleRect = getTitleRect()

and

contentRect = getContentRect(titleRect)

In the latter case passing in None for titleRect sizes the content as if there were not title.

MartinPacker commented 3 years ago

getTitleRect() isn't really necessary as code-in-progress formatTitle() returns 0.1 inches below the bottom of the title, in addition to the title shape.

MartinPacker commented 3 years ago

getContentRect ended up with different parameters but was successfully used in cleaning up layout code.

Shipped in 1.9.1.