SongExport
enum SongExport
Export a single Song to a PDF
-
Load an image from the cache if found or else from an URL
Declaration
Swift
static func loadImage(source: String, fileURL: URL?) async -> NSImage?Parameters
sourceThe image source as defined in the song
fileURLThe optional URL of the song file
Return Value
<#description#>
-
Export a single song to PDF
Declaration
Parameters
songThe
Songto exportReturn Value
The song as PDF
Dataand the TOC as aTOCInfoarray
-
Declaration
Swift
static func getSongElements( song: Song, counter: PDFBuild.PageCounter ) async -> [PDFElement]Parameters
songThe
SongcounterThe
PageCounterclassReturn Value
All the PDF elements in an array
-
Calculate the type of divider for a section
Note
If the label is empty, a spacer is returned, else a dividerDeclaration
Swift
static func labelDivider(section: Song.Section) -> PDFElementParameters
sectionThe
Section
View on GitHub