How do I get the height of the footer for an ISlide?
@dberkman,
Thank you for posting the question.
The footer is an object of a class implemented from the IShape interface. You should find the shape and get the height of the shape like this:
var height = shape.getHeight();
Please let us know if this does not help you and describe the issue in more detail with a sample presentation.
Is there way to determine the foot from other IShape objects? Only by name, as in ‘Footer placeholder…’?
Thanks,
David
@dberkman,
You can check if a shape on a presentation slide is the footer like this:
if (shape.getPlaceholder() != null &&
shape.getPlaceholder().getType() == PlaceholderType.Footer) {
// ...
}
Aspose.Slides also allows you to check if a presentation slide has the footer like this:
var isFooterVisible = slide.getHeaderFooterManager().isFooterVisible();
Documents: Presentation Header and Footer
API Reference: IShape interface, IPlaceholder interface
Thank you.
David