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

    source

    The image source as defined in the song

    fileURL

    The optional URL of the song file

    Return Value

    <#description#>

Export a single Song to PDF

  • Export a single song to PDF

    Declaration

    Swift

    static func export(
        song: Song
    ) async throws -> (pdf: Data, toc: [PDFBuild.TOCInfo])

    Parameters

    song

    The Song to export

    Return Value

    The song as PDF Data and the TOC as a TOCInfo array

Get all the PDF elements for a Song