Sha256: 60e9b98dc171c4b2793daf519d0ccaf77c7e8bc0e3a58ebe99106993fbd34318

Contents?: true

Size: 426 Bytes

Versions: 9

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

module DocumentExporter
  module Pdf
    class Document < Pdf::Base
      def export
        content = super
        pdf = CombinePDF.parse(content)

        material_ids = @document.ordered_material_ids
        material_ids &= @document.gdoc_material_ids
        material_ids &= included_materials

        pdf = combine_pdf_for pdf, material_ids
        pdf.to_pdf
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 lib/document_exporter/pdf/document.rb
lcms-engine-0.5.4 lib/document_exporter/pdf/document.rb
lcms-engine-0.5.3 lib/document_exporter/pdf/document.rb
lcms-engine-0.5.2 lib/document_exporter/pdf/document.rb
lcms-engine-0.5.1 lib/document_exporter/pdf/document.rb
lcms-engine-0.5.0 lib/document_exporter/pdf/document.rb
lcms-engine-0.4.2 lib/document_exporter/pdf/document.rb
lcms-engine-0.4.1 lib/document_exporter/pdf/document.rb
lcms-engine-0.4.0 lib/document_exporter/pdf/document.rb