Miscellaneous topics

Quick reference

Calling styles:

  • Positional: func(param1, param2, param3)

  • Named: func({name1: param1, name2: param2})

Common objects:

  • Rectangle: [left, top, right, bottom] in points

  • Color: ["RGB", r, g, b] or ["CMYK", c, m, y, k]

  • Span: {text: "string", fontWeight: 700}

Key measurements:

  • 72 points = 1 inch

  • Letter page = 612 x 792 points

  • Origin at bottom-left, Y increases upward

Moving forward

These conventions and objects are foundational to working with PDFs in Revu. Understanding coordinate systems, units, and calling conventions will help you write cleaner, more maintainable code as you build interactive PDF solutions.

Resources

Revu 21

Revu JavaScript

JavaScript

Review miscellaneous JavaScript topics.