Sha256: 06a15734c031e4cda7e88ff1ac7d0ad9cd43cc4fb42286efa95fb28eec561693

Contents?: true

Size: 1014 Bytes

Versions: 11

Compression:

Stored size: 1014 Bytes

Contents

# encoding: utf-8
#
# (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 File.expand_path(File.join(File.dirname(__FILE__),
                                   %w[.. example_helper]))

Prawn::Document.generate("print_scaling.pdf",
                         :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

11 entries across 11 versions & 2 rubygems

Version Path
prawn-2.1.0 manual/document_and_page_options/print_scaling.rb
prawn-git-2.0.1 manual/document_and_page_options/print_scaling.rb
prawn-2.0.2 manual/document_and_page_options/print_scaling.rb
prawn-2.0.1 manual/document_and_page_options/print_scaling.rb
prawn-2.0.0 manual/document_and_page_options/print_scaling.rb
prawn-1.3.0 manual/document_and_page_options/print_scaling.rb
prawn-1.2.1 manual/document_and_page_options/print_scaling.rb
prawn-1.1.0 manual/document_and_page_options/print_scaling.rb
prawn-1.0.0 manual/document_and_page_options/print_scaling.rb
prawn-0.15.0 manual/document_and_page_options/print_scaling.rb
prawn-0.14.0 manual/document_and_page_options/print_scaling.rb