struct PDF::Document::CrossRef::Entry

Included Modules

Defined in:

pdf/document/crossref.cr

Constant Summary

EOL = "\r\n"

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(target : Int32, generation : Int32 = 0, using : Bool = true) #

[View source]

Instance Method Detail

def entry #

[View source]
def generation : Int32 #

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

The format of an in-use entry is as follows:

nnnnnnnnnn ggggg n eol

where

  • nnnnnnnnnn is a 10-digit byte offset
  • ggggg is a 5-digit generation number
  • n is a literal keyword identifying this as an in-use entry ,for a free entry use f
  • eol is a 2-character end-of-line sequence

because a n EOL is just "\r\n",you won't need to add a newline manually


[View source]
def using : Bool #

[View source]