Sha256: afbb07f1ab02f2034e1773713500e9045ae6364cf00d6107105961891c25eb04

Contents?: true

Size: 952 Bytes

Versions: 1

Compression:

Stored size: 952 Bytes

Contents

# frozen_string_literal: true

# (Optional; PDF 1.6) The page scaling option to be selected when a print dialog
# is displayed for this document.  Valid values are <code>None</code>, which
# indicates that the print dialog should reflect no page scaling, and
# <code>AppDefault</code>, which indicates that applications should use the
# current print scaling.  If this entry has an unrecognized value, applications
# should use the current print scaling.  Default value: <code>AppDefault</code>.
#
# Note: If the print dialog is suppressed and its parameters are provided
# directly by the application, the value of this entry should still be used.

require_relative '../example_helper'

filename = File.basename(__FILE__).gsub('.rb', '.pdf')
Prawn::Document.generate(
  filename,
  page_layout: :landscape,
  print_scaling: :none
) do
  text 'When you print this document, the scale to fit in print preview '\
    'should be disabled by default.'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
prawn-2.4.0 manual/document_and_page_options/print_scaling.rb