Sha256: 02e0923167397ac8a966dce968dde6fc176c97982bae6d8148c143f2f24c26b6
Contents?: true
Size: 610 Bytes
Versions: 3
Compression:
Stored size: 610 Bytes
Contents
# frozen_string_literal: true require 'pdf/inspector' example :typeB_page_size, 'Generate type B(JIS/ISO) size pages' do |t| report = Thinreports::Report.new layout: t.resource('B4_ISO.tlf') report.start_new_page inspector = PDF::Inspector::Page.analyze(report.generate) raise 'Invalid B4 ISO size' unless inspector.pages.first[:size] == [708.66, 1000.63] report = Thinreports::Report.new layout: t.resource('B4_JIS.tlf') report.start_new_page inspector = PDF::Inspector::Page.analyze(report.generate) raise 'Invalid B4 JIS size' unless inspector.pages.first[:size] == [728.5, 1031.8] end
Version data entries
3 entries across 3 versions & 1 rubygems