Versions in this module Expand all Collapse all v0 v0.6.5 Apr 17, 2024 v0.6.4 Apr 11, 2024 v0.6.3 Dec 16, 2023 v0.6.2 Dec 7, 2023 v0.6.1 Sep 26, 2023 v0.6.0 Jul 31, 2023 v0.5.1 Jun 10, 2023 v0.5.0 Jun 9, 2023 v0.4.2 May 2, 2023 v0.4.1 Apr 18, 2023 Changes in this version + const HEADER_HEIGHT + const IMAGE_ASPECT_RATIO + const IMAGE_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 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 + Created string + Creator string + Description string + LastModifiedBy string + Modified 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) *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