SongExport
enum SongExport
Export a single Song
to a PDF
-
Export a single song to PDF
Declaration
Swift
static func export( song: Song, chordDisplayOptions: ChordDefinition.DisplayOptions ) throws -> (pdf: Data, toc: [PDFBuild.TOCInfo])
Parameters
song
The
Song
to exportgeneralOptions
The general options
chordDisplayOptions
The chord display options
Return Value
The song as PDF
Data
and the TOC as aTOCInfo
array
-
Declaration
Swift
static func getSongElements( song: Song, chordDisplayOptions: ChordDefinition.DisplayOptions, counter: PDFBuild.PageCounter ) -> [PDFElement]
Parameters
song
The
Song
generalOptions
The general options
chordDisplayOptions
The chord display options
Return Value
All the PDF elements in an array