moonbitlang/pdflite/page does not have a README file

    PaperSize

    A paper size expressed in a declared unit.

    Width and height are stored as given; conversion to PDF points happens at page-construction boundaries.

    PdfError

    Error variants raised by pdflite parsing, writing, filtering, text, and encryption APIs.

    The variants intentionally stay specific enough for tests and callers to distinguish malformed input classes, while most public APIs expose them through the ordinary raise PdfError flow.

    PdfObject

    The core in-memory representation of a parsed PDF object.

    Strings and names are byte-oriented PDF values, not MoonBit Unicode strings. PdfIndirect(number) is an unresolved reference by object number; callers that need the referenced object should resolve it through a PdfDocument.

    PdfPage

    In-memory page description used by page-tree read and write helpers.

    content stores stream objects or indirect stream references. mediabox, resources, and rest preserve PDF objects so byte-oriented dictionary data is not forced through MoonBit strings.

    PdfPage::equal

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

    PdfPage::not_equal

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

    PdfPage::to_json

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

    PdfPage::to_repr

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

    PdfPageRotation

    pub(all) enum PdfPageRotation {
    Rotate0
    Rotate90
    Rotate180
    Rotate270
    } derive(Eq, ToJson,
    Debug
    )

    Page rotation normalized to the four rotations allowed by PDF page dictionaries.

    PdfPageRotation::equal

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

    PdfPageRotation::not_equal

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

    PdfPageRotation::to_json

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

    PdfPageRotation::to_repr

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

    pdf_page_blank

    Build a blank page for a named paper size.

    pdf_page_custom

    fn pdf_page_custom(rectangle :
    PdfObject
    ) -> PdfPage

    Build a blank page using an explicit PDF rectangle object as /MediaBox.

    pdf_page_int_of_rotation

    fn pdf_page_int_of_rotation(rotation : PdfPageRotation) -> Int

    Convert a normalized page rotation to the integer stored in /Rotate.

    pdf_page_rectangle_of_paper

    Build a PDF rectangle object for a named paper size.

    The rectangle is [0 0 width height] in points.

    pdf_page_rotation_of_int

    fn pdf_page_rotation_of_int(value : Int) -> PdfPageRotation raise
    PdfError

    Convert a PDF /Rotate integer to a normalized rotation.

    Multiples equivalent to 0, 90, 180, and 270 degrees are accepted. Other values raise PdfError::PageRotationExpected.