# PDF Conversion Parameters

Source: https://docs.gopdf.pro/api-reference/pdf-conversion-parameters

| **resType** (string) | **Options: <code>display</code> or <code>download</code> or <code>buffer</code>** |
|---|---|
| **documentId** (string) | Document id which is situated beneath the document |
| **apiKey** (string) | Retrieve the API key from My Account section |
| **engine** (string) | **Options:** <code>1</code> or <code>2</code> or <code>3</code> |
| **data** (object) | An object containing informations.  **Options:**  <pre>&#123;&#10;        &#34;client&#34;&#58; &#34;Sample Client&#34;&#44;&#10;        &#34;products&#34;&#58; &#91;&#10;            &#123;&#10;                &#34;name&#34;&#58; &#34;Product A&#34;&#44;&#10;                &#34;unit&#34;&#58; 1&#44;&#10;                &#34;price&#34;&#58; &#34;20USD&#34;&#10;            &#125;&#10;        &#93;&#44;&#10;        &#34;total&#34;&#58; &#34;100USD&#34;&#44;&#10;        &#34;logo&#34;&#58; &#123;&#10;            &#34;type&#34;&#58; &#34;image&#34;&#44;&#10;            &#34;url&#34;&#58; &#34;&#91;image&#95;url&#93;&#34;&#44;&#10;            &#34;width&#34;&#58; &#34;200px&#34;&#10;        &#125;&#10;    &#125;</pre> |
| **sendTo** (object) | This will send generated PDF to email addresses automatically.  **Options:**  <pre>&#123;&#10;    &#34;email&#34;&#58; &#91;&#34;first&#95;email&#34;&#44; &#34;second&#95;email&#34;&#93;&#44;&#10;    &#34;subject&#34;&#58; &#34;&#91;email&#95;subject&#93;&#34;&#44;&#10;    &#34;message&#34;&#58; &#34;&#91;email text &#47; html&#93;&#34;&#10;&#125;</pre> |
