Sha256: 0343c8701fe1c048f5e2246a15e25bb8bb40fada61b9d1e6a32143a7ee7090b3

Contents?: true

Size: 919 Bytes

Versions: 3

Compression:

Stored size: 919 Bytes

Contents

# (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

3 entries across 3 versions & 1 rubygems

Version Path
prawn-2.2.2 manual/document_and_page_options/print_scaling.rb
prawn-2.2.1 manual/document_and_page_options/print_scaling.rb
prawn-2.2.0 manual/document_and_page_options/print_scaling.rb