Versions in this module Expand all Collapse all v0 v0.8.2 Aug 24, 2026 v0.8.1 Aug 7, 2026 v0.8.0 Aug 7, 2026 Changes in this version + const HEADER_HEIGHT + const IMAGE_WIDTH + const SLIDE_HEIGHT + const SLIDE_WIDTH + var APP_XML string + var CONTENT_TYPES_XML string + var CORE_XML string + var PPTX_TEMPLATE []byte + var PRESENTATION_XML string + var RELS_PRESENTATION_XML string + var RELS_SLIDE_XML string + var ROOT_RELS_XML string + var SLIDEMASTER_RELS_XML string + var SLIDE_XML string + func Validate(pptxContent []byte, nSlides int) error + type AppXmlContent struct + D2Version string + SlideCount int + Titles []string + TitlesOfPartsCount int + type BoardTitle struct + BoardID string + LinkID string + LinkToSlide int + Name string + type ContentTypesXmlContent struct + FileNames []string + type CoreXmlContent struct + Creator string + Description string + LastModifiedBy string + Subject string + Title string + type Link struct + ExternalUrl string + Height int + ID string + Index int + Left int + SlideIndex int + Tooltip string + Top int + Width int + type Presentation struct + Creator string + D2Version string + Description string + Slides []*Slide + Subject string + Title string + func NewPresentation(title, description, subject, creator, d2Version string, includeNav bool) *Presentation + func (p *Presentation) AddSlide(pngContent []byte, titlePath []BoardTitle) (*Slide, error) + func (p *Presentation) SaveTo(filePath string) error + type PresentationSlideXmlContent struct + ID int + RelationshipID string + type PresentationXmlContent struct + SlideHeight int + SlideWidth int + Slides []PresentationSlideXmlContent + type RelsPresentationSlideXmlContent struct + FileName string + RelationshipID string + type RelsPresentationXmlContent struct + Slides []RelsPresentationSlideXmlContent + type RelsSlideXmlContent struct + FileName string + Links []RelsSlideXmlLinkContent + RelationshipID string + type RelsSlideXmlLinkContent struct + ExternalUrl string + RelationshipID string + SlideIndex int + type Slide struct + BoardTitle []BoardTitle + Image []byte + ImageHeight int + ImageId string + ImageLeft int + ImageScaleFactor float64 + ImageTop int + ImageWidth int + Links []*Link + func (s *Slide) AddLink(link *Link) + type SlideLinkXmlContent struct + Action string + Height int + ID int + Left int + Name string + RelationshipID string + Top int + Width int + type SlideXmlContent struct + Description string + HeaderHeight int + ImageHeight int + ImageID string + ImageLeft int + ImageTop int + ImageWidth int + Links []SlideLinkXmlContent + Title string + TitlePrefix []SlideXmlTitlePathContent + type SlideXmlTitlePathContent struct + Name string + RelationshipID string