--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: self if block_given?
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Creates a new PDF document as a writing canvas. It accepts three named parameters:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:paper</tt>:"
    body: Specifies the size of the default page in PDF::Writer. This may be a four-element array of coordinates specifying the lower-left <tt>(xll, yll)</tt> and upper-right <tt>(xur, yur)</tt> corners, a two-element array of width and height in centimetres, or a page name as defined in PAGE_SIZES.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:orientation</tt>:"
    body: The orientation of the page, either long (:portrait) or wide (:landscape). This may be used to swap the width and the height of the page.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:version</tt>:"
    body: The feature set available to the document is limited by the PDF version. Setting this version restricts the feature set available to PDF::Writer. PDF::Writer currently supports PDF version 1.3 features and does not yet support advanced features from PDF 1.4, 1.5, or 1.6.
  type: :NOTE
full_name: PDF::Writer::new
is_singleton: true
name: new
params: (options = {}) {|self if block_given?| ...}
visibility: public
