Sign in

    This version of the module is deprecated: Use moonbitlang/pdflite instead

    bobzhang/pdflite/bookmark does not have a README file

    PdfBookmark

    pub(all) struct PdfBookmark {
    level : Int
    text : Bytes
    target :
    PdfDestination

    is_open : Bool
    colour : PdfBookmarkColour
    flags : Int
    } derive(Eq, ToJson,
    Debug
    )

    One bookmark in the flattened outline representation.

    Bookmarks are ordered in preorder. level is zero-based nesting depth, text is the raw PDF title string bytes, and target is the parsed destination or preserved action.

    PdfBookmarkColour

    pub(all) struct PdfBookmarkColour {
    red : Double
    green : Double
    blue : Double
    } derive(Eq, ToJson,
    Debug
    )

    Bookmark display colour from the PDF outline /C entry.

    PDF stores these as RGB real numbers, normally in the range 0.0 to 1.0.

    pdf_bookmark_black

    let pdf_bookmark_black : PdfBookmarkColour

    Default black bookmark colour.