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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Create a labelled destination within the document. The label is the name which will be used for &lt;c:ilink&gt; destinations.
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "XYZ:"
    body: The viewport will be opened at position <tt>(left, top)</tt> with <tt>zoom</tt> percentage. <tt>params</tt> must have three values representing <tt>left</tt>, <tt>top</tt>, and <tt>zoom</tt>, respectively. If the values are &quot;null&quot;, the current parameter values are unchanged.
  - !ruby/struct:SM::Flow::LI 
    label: "Fit:"
    body: Fit the page to the viewport (horizontal and vertical). <tt>params</tt> will be ignored.
  - !ruby/struct:SM::Flow::LI 
    label: "FitH:"
    body: Fit the page horizontally to the viewport. The top of the viewport is set to the first value in <tt>params</tt>.
  - !ruby/struct:SM::Flow::LI 
    label: "FitV:"
    body: Fit the page vertically to the viewport. The left of the viewport is set to the first value in <tt>params</tt>.
  - !ruby/struct:SM::Flow::LI 
    label: "FitR:"
    body: Fits the page to the provided rectangle. <tt>params</tt> must have four values representing the <tt>left</tt>, <tt>bottom</tt>, <tt>right</tt>, and <tt>top</tt> positions, respectively.
  - !ruby/struct:SM::Flow::LI 
    label: "FitB:"
    body: Fits the page to the bounding box of the page. <tt>params</tt> is ignored.
  - !ruby/struct:SM::Flow::LI 
    label: "FitBH:"
    body: Fits the page horizontally to the bounding box of the page. The top position is defined by the first value in <tt>params</tt>.
  - !ruby/struct:SM::Flow::LI 
    label: "FitBV:"
    body: Fits the page vertically to the bounding box of the page. The left position is defined by the first value in <tt>params</tt>.
  type: :NOTE
full_name: PDF::Writer#add_destination
is_singleton: false
name: add_destination
params: (label, style, *params)
visibility: public
