Sign in

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

    bobzhang/pdflite/portfolio does not have a README file

    PdfBytes

    type PdfBytes = Bytes

    PDF byte strings and byte streams.

    This is an alias for MoonBit Bytes because PDF strings and streams are byte sequences, not Unicode text. Use String only after an explicit PDF text decoding step.

    PdfPortfolioEntry

    pub(all) struct PdfPortfolioEntry {
    filename : String
    data : Bytes
    relationship : String?
    description : String?
    } derive(Eq, ToJson,
    Debug
    )

    One file to embed in a PDF portfolio.

    filename is used for the portfolio name-tree key and its basename is used for the file specification names. data is the raw embedded-file payload.

    pdf_portfolio_entry

    fn pdf_portfolio_entry(filename : String, data : BytesView, relationship? : String?, description? : String?) -> PdfPortfolioEntry

    Construct a portfolio entry, copying the supplied data view.