Skip to content

Commit

Permalink
Generate PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
fredsted committed Jul 16, 2024
1 parent 94a9ec6 commit 83c82e4
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 7 deletions.
45 changes: 39 additions & 6 deletions docs/api/action-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ The following is a list of the API names for Action Types, along with a list of




### `auth_basic`
- `username`: string
- `password`: **required**, string

### `auto_json`
- `source`: string
- `jsonpath`: string
- `variable_name`: **required**, string
- `variable_name`: string

### `aws_cf_invalidate`
- `provider_id`: **required**, int
Expand Down Expand Up @@ -51,7 +56,7 @@ The following is a list of the API names for Action Types, along with a list of
- `action`: **required**, string, in:stop,continue,noop

### `database`
- `type`: **required**, in:mysql,pgsql
- `type`: **required**, in:mysql,pgsql,sqlsrv
- `host`: **required**, string
- `port`: number, min:1, max:65535
- `database`: **required**, string
Expand Down Expand Up @@ -89,7 +94,9 @@ The following is a list of the API names for Action Types, along with a list of
### `dropbox_get_link`
- `provider_id`: string, **required**
- `path`: string, **required**
- `variable_name`: string, **required**
- `variable_name`: string
- `type`: string, in:share_link,temporary
- `share_audience`: string, in:public,team,no_one

### `dropbox_upload_file`
- `provider_id`: string, **required**
Expand Down Expand Up @@ -152,8 +159,8 @@ The following is a list of the API names for Action Types, along with a list of
- `content`: nullable, string
- `method`: nullable, in:POST,GET,OPTIONS,PUT,DELETE,PATCH,TRACE
- `mode`: nullable, in:text,json,multipart,urlencoded,forward
- `auth`: nullable, object
- `auth.mode`: string, in:basic,digest,ntlm
- `auth`: nullable, array
- `auth.mode`: nullable, string, in:basic,digest,ntlm
- `auth.username`: string
- `auth.password`: string
- `multipart`: array, **required**_if:mode,multipart
Expand All @@ -168,6 +175,15 @@ The following is a list of the API names for Action Types, along with a list of
- `skip_ssl_verification`: nullable, bool
- `variable_name`: string
- `timeout`: nullable, numeric, max:15
- `retry`: array
- `retry.enabled`: nullable, bool
- `retry.retries`: nullable, numeric, min:1, max:10
- `retry.delay`: nullable, numeric, min:0, max:10
- `retry.require_status`: nullable, string

### `hubspot_create_contact`
- `provider_id`: **required**, string
- `properties`: **required**, array

### `image_resize`
- `source`: string, **required**
Expand Down Expand Up @@ -217,8 +233,16 @@ The following is a list of the API names for Action Types, along with a list of
### `ntfy`
- `topic`: string, **required**
- `title`: string
- `icon`: string
- `message`: string, **required**

### `pdf_generate`
- `content`: string
- `mode`: string, in:html,markdown
- `paper`: string, in:a4,letter
- `orientation`: string, in:portrait,landscape
- `variable_name`: string

### `pushed_send`
- `app_key`: string, **required**
- `app_secret`: string, **required**
Expand Down Expand Up @@ -288,6 +312,15 @@ The following is a list of the API names for Action Types, along with a list of
### `set_variable`
- `name`: **required**, string
- `value`: nullable, string
- `mode`: nullable, in:text,random,date
- `random`: array
- `random.*.length`: int, max:10000, **required**_if:mode,random
- `random.*.characters`: array, in:lowercase,uppercase,digits,symbols,user
- `random.*.alphabet`: string
- `date`: array
- `date.*.input`: string
- `date.*.format`: string, in:iso8601,mysql,unix,unixmicro,user
- `date.*.user_format`: string

### `sftp_upload`
- `provider_id`: string
Expand Down Expand Up @@ -338,7 +371,7 @@ The following is a list of the API names for Action Types, along with a list of
### `text_split`
- `delimiter`: **required**, string
- `source`: **required**, string
- `variable_name`: **required**, string
- `variable_name`: string
- `repeat`: boolean

### `twitter_tweet`
Expand Down
6 changes: 5 additions & 1 deletion docs/custom-actions/action-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,11 @@ There are three modes:

Saves (or overwrites) a Global Variable that's saved permanently and available to all URLs in your account. If you don't need to save the variable permanently, you should use the *Set Runtime Variable* instead.

## Image Handling
## Multimedia

### Generate PDF

Takes either HTML or markdown input and generates a variable (`$pdf$`) containing the PDF file contents. You can enter this variable in e.g. an Send Email attachment content field, or with the Modify Response action (remember adding a `Content-Type: application/pdf` content type header!)

### Resize Image

Expand Down
4 changes: 4 additions & 0 deletions docs/news.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ Subscribe below to receive updates about improvements and new features on Webhoo
</form>
</div>

## 16 July 2024

* New Custom Action: Generate PDF, working with either Markdown or HTML content, can be used in e.g. Send Email, Modify Response actions. [More info here](/custom-actions/action-types.html#generate-pdf)

## 15 July 2024

* As of version 0.2.0, the Webhook CLI `forward` command now works bidirectionally, forwarding the response back to your Webhook.site URL, acting as a proxy. [More info here](/cli.html#bidirectional-forwarding)
Expand Down

0 comments on commit 83c82e4

Please sign in to comment.