class PDF::NumberTree

Overview

A number tree is similar to a name tree (see Section 3.8.4, “Name Trees”), except that its keys are integers instead of strings, sorted in ascending numerical order. The entries in the leaf (or root) nodes containing the key-value pairs are named Nums instead of Names as in a name tree. Table 3.24 shows the entries in a number tree’s node dictionaries.

Included Modules

Defined in:

pdf/data/numbertree.cr

Constructors

Instance Method Summary

Instance methods inherited from module PDF::Renderable

render_to_pdf(io : IO) : IO render_to_pdf

Constructor Detail

def self.new(type : PDF::NumberTree::Type, kids : Array(PDF::NumberTree), nums : Array(Tuple(String, Int64))) #

[View source]

Instance Method Detail

def limits : Array(String) | Nil #

An array of two integers, specifying the (numerically) least and greatest keys included in the Nums array of a leaf node or in the Nums arrays of any leaf nodes that are descendants of an intermediate node.


[View source]
def render_to_pdf(io : IO) : IO #

for mixing-in module Renderable


[View source]