moonbitlang/pdflite/writer 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.

    PdfEncryptionMethod

    Encryption method detected from or requested for a document.

    AES entries carry the effective EncryptMetadata flag. The PdfEncryptionAlreadyEncrypted value is used by writer paths that preserve existing encrypted object data rather than decrypting and re-encrypting it.

    PdfPermission

    Permission that may be denied by a PDF standard security handler.

    These values are expressed as a "ban list" in the public API: passing PdfNoPrint means printing is denied. They are converted to and from the PDF /P permission bit mask by pdf_p_of_permissions and pdf_permissions_of_p.

    PdfWriteEncryption

    pub(all) struct PdfWriteEncryption {
    encryption_method :
    PdfEncryptionMethod

    user_password : Bytes
    owner_password : Bytes
    denied_permissions : Array[
    PdfPermission
    ]
    } derive(Eq, ToJson,
    Debug
    )

    Encryption options for pdf_write_document_options.

    Passwords are stored as owned PDF bytes so callers can pass borrowed BytesView values safely.

    PdfWriteEncryption::equal

    #deprecated("implicit trait-method promotion is being removed; call via the trait")
    fn PdfWriteEncryption::equal(PdfWriteEncryption, PdfWriteEncryption) -> Bool

    PdfWriteEncryption::not_equal

    #deprecated("implicit trait-method promotion is being removed; call via the trait")
    fn PdfWriteEncryption::not_equal(x : PdfWriteEncryption, y : PdfWriteEncryption) -> Bool

    PdfWriteEncryption::to_json

    #deprecated("implicit trait-method promotion is being removed; call via the trait")
    fn PdfWriteEncryption::to_json(PdfWriteEncryption) -> Json

    PdfWriteEncryption::to_repr

    #deprecated("implicit trait-method promotion is being removed; call via the trait")
    fn PdfWriteEncryption::to_repr(PdfWriteEncryption) ->
    Repr

    PdfWriteMode

    pub(all) enum PdfWriteMode {
    PdfWriteClassic
    PdfWriteXRefStream
    PdfWriteCompressedXRefStream
    } derive(Eq, ToJson,
    Debug
    )

    Cross-reference format used when serializing a document.

    Classic writes a traditional xref table and trailer. XRefStream writes an uncompressed xref stream, and CompressedXRefStream wraps that stream in Flate compression.

    PdfWriteMode::equal

    #deprecated("implicit trait-method promotion is being removed; call via the trait")
    fn PdfWriteMode::equal(PdfWriteMode, PdfWriteMode) -> Bool

    PdfWriteMode::not_equal

    #deprecated("implicit trait-method promotion is being removed; call via the trait")
    fn PdfWriteMode::not_equal(x : PdfWriteMode, y : PdfWriteMode) -> Bool

    PdfWriteMode::to_json

    #deprecated("implicit trait-method promotion is being removed; call via the trait")
    fn PdfWriteMode::to_json(PdfWriteMode) -> Json

    PdfWriteMode::to_repr

    #deprecated("implicit trait-method promotion is being removed; call via the trait")
    fn PdfWriteMode::to_repr(PdfWriteMode) ->
    Repr

    pdf_write_encryption

    fn pdf_write_encryption(encryption_method :
    PdfEncryptionMethod
    , user_password : BytesView, owner_password : BytesView, denied_permissions : ArrayView[
    PdfPermission
    ]) -> PdfWriteEncryption

    Build owned encryption options for the writer options API.