Sha256: 59e921e5c10fd77f52a19350d045cc3c689a471b8fa81697fc713ba8ce7c8492
Contents?: true
Size: 756 Bytes
Versions: 1
Compression:
Stored size: 756 Bytes
Contents
class PDF::Core::Page # Restore the new_content_stream method from PDF::Core::Page # # The prawn-templates gem relies on the new_content_stream method on # PDF::Core::Page, which was removed in pdf-core 0.3.1. prawn-templates is # used for importing a single-page PDF into the current document. # # see https://github.com/prawnpdf/pdf-core/commit/67f9a08a03bcfcc5a24cf76b135c218d3d3ab05d def new_content_stream return if in_stamp_stream? unless Array === dictionary.data[:Contents] dictionary.data[:Contents] = [content] end @content = document.ref Hash.new dictionary.data[:Contents] << document.state.store[@content] document.renderer.open_graphics_state end unless method_defined? :new_content_stream end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asciidoctor-pdf-1.5.0.alpha.14 | lib/asciidoctor-pdf/pdf-core_ext/page.rb |