Method: PDF::Core::Renderer#render_xref
- Defined in:
- lib/pdf/core/renderer.rb
#render_xref(output) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Write out the PDF Cross Reference Table, as per spec 3.4.3
249 250 251 252 253 254 255 256 257 258 |
# File 'lib/pdf/core/renderer.rb', line 249 def render_xref(output) @xref_offset = output.size output << "xref\n" output << "0 #{state.store.size + 1}\n" output << "0000000000 65535 f \n" state.store.each do |ref| output.printf('%<offset>010d', offset: ref.offset) output << " 00000 n \n" end end |