render (PDF::Writer)

         # File lib/pdf/writer.rb, line 703
    703:   def render(debug = false)
    704:     add_page_numbers
    705:     @compression = false if $DEBUG or debug
    706:     @arc4.init(@encryption_key) unless @arc4.nil?
    707:
    708:     check_all_here
    709:
    710:     xref = []
    711:
    712:     content = "%PDF-#{@version}\n%âãÏÓ\n"
    713:     pos = content.size
    714:
    715:     objects.each do |oo|
    716:       cont = oo.to_s
    717:       content << cont
    718:       xref << pos
    719:       pos += cont.size
    720:     end
    721:
    722: #   pos += 1 # Newline character before XREF
    723:
    724:     content << "\nxref\n0 #{xref.size + 1}\n0000000000 65535 f \n"
    725:     xref.each { |xx| content << "#{'%010d' % [xx]} 00000 n \n" }
    726:     content << "\ntrailer\n"
    727:     content << "  << /Size #{xref.size + 1}\n"
    728:     content << "     /Root 1 0 R\n /Info #{@info.oid} 0 R\n"
    729:       # If encryption has been applied to this document, then add the marker
    730:       # for this dictionary
    731:     if @arc4 and @encryption
    732:       content << "/Encrypt #{@encryption.oid} 0 R\n"
    733:     end
    734:
    735:     if @file_identifier
    736:       content << "/ID[<#{@file_identifier}><#{@file_identifier}>]\n"
    737:     end
    738:     content << "  >>\nstartxref\n#{pos}\n%%EOF\n"
    739:     content
    740:   end