Skip to content

Commit

Permalink
fixed example parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
apexdodge authored Dec 19, 2018
1 parent 1b6114a commit 8bd32ba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ a2pClient.wkhtmltopdfFromHtml('<p>Hello, World</p>', inline = true, filename = '

```
var options = { orientation: 'landscape', pageSize: 'A4'};
a2pClient.wkhtmltopdfFromHtml('<p>Hello, World</p>', options = options).then(function(result) {
a2pClient.wkhtmltopdfFromHtml('<p>Hello, World</p>', inline = true, filename = 'test.pdf', options = options).then(function(result) {
console.log(result);
});
```
Expand All @@ -119,7 +119,7 @@ a2pClient.wkhtmltopdfFromUrl('https://www.github.com', inline = true, filename =

```
var options = { orientation: 'landscape', pageSize: 'A4'};
a2pClient.wkhtmltopdfFromUrl('https://www.github.com', options = options).then(function(result) {
a2pClient.wkhtmltopdfFromUrl('https://www.github.com', inline = true, filename = 'test.pdf', options = options).then(function(result) {
console.log(result);
});
```
Expand Down Expand Up @@ -148,8 +148,8 @@ a2pClient.headlessChromeFromHtml('<p>Hello, World</p>', inline = true, filename
[View full list of Headless Chrome options available.](https://www.api2pdf.com/documentation/advanced-options-headless-chrome/)

```
var options = { landscape: true, pageSize: 'A4'};
a2pClient.headlessChromeFromHtml('<p>Hello, World</p>', options = options).then(function(result) {
var options = { landscape: true };
a2pClient.headlessChromeFromHtml('<p>Hello, World</p>', inline = true, filename = 'test.pdf', options = options).then(function(result) {
console.log(result);
});
```
Expand All @@ -174,8 +174,8 @@ a2pClient.headlessChromeFromUrl('https://www.github.com', inline = true, filenam
[View full list of Headless Chrome options available.](https://www.api2pdf.com/documentation/advanced-options-headless-chrome/)

```
var options = { landscape: true, pageSize: 'A4'};
a2pClient.headlessChromeFromUrl('https://www.github.com', options = options).then(function(result) {
var options = { landscape: true };
a2pClient.headlessChromeFromUrl('https://www.github.com', inline = true, filename = 'test.pdf', options = options).then(function(result) {
console.log(result);
});
```
Expand Down

0 comments on commit 8bd32ba

Please sign in to comment.