@apiverve/websitetopdf 1.2.4 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Website to PDF API
2
2
 
3
- Website to PDF renders any public web page into a PDF document from a submitted URL. It returns a temporary signed download link, unique filename, and expiration timestamp, with paid plans adding custom margins and landscape layout.
3
+ Website to PDF renders any public web page into a PDF document from a submitted URL. It returns a temporary signed download link, unique filename, and expiration timestamp, with paid plans adding the page count, paper size, custom margins, landscape layout and background printing control.
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@apiverve/websitetopdf.svg)](https://www.npmjs.com/package/@apiverve/websitetopdf)
6
6
 
@@ -139,6 +139,8 @@ async function makeRequest() {
139
139
  "marginTop": "0.4in",
140
140
  "marginBottom": "0.4in",
141
141
  "landscape": false,
142
+ "format": "A4",
143
+ "pageCount": 6,
142
144
  "pdfName": "128deceb-c515-444b-8863-82cb3f6ba632.pdf",
143
145
  "expires": 1766097122116,
144
146
  "url": "https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts",
package/index.d.ts CHANGED
@@ -30,6 +30,8 @@ declare module '@apiverve/websitetopdf' {
30
30
  marginTop: null | string;
31
31
  marginBottom: null | string;
32
32
  landscape: boolean | null;
33
+ format: null | string;
34
+ pageCount: number | null;
33
35
  pdfName: null | string;
34
36
  expires: number | null;
35
37
  url: null | string;
package/index.js CHANGED
@@ -30,7 +30,7 @@ class websitetopdfWrapper {
30
30
  this.baseURL = 'https://api.apiverve.com/v1/websitetopdf';
31
31
 
32
32
  // Validation rules for parameters (generated from schema)
33
- this.validationRules = {"url":{"type":"string","required":true,"format":"url"},"marginTop":{"type":"number","required":false,"default":"0.4"},"marginRight":{"type":"number","required":false,"default":"0.4"},"marginBottom":{"type":"number","required":false,"default":"0.4"},"marginLeft":{"type":"number","required":false,"default":"0.4"},"landscape":{"type":"boolean","required":false,"default":false}};
33
+ this.validationRules = {"url":{"type":"string","required":true,"format":"url"},"marginTop":{"type":"number","required":false,"default":"0.4"},"marginRight":{"type":"number","required":false,"default":"0.4"},"marginBottom":{"type":"number","required":false,"default":"0.4"},"marginLeft":{"type":"number","required":false,"default":"0.4"},"landscape":{"type":"boolean","required":false,"default":false},"format":{"type":"string","required":false,"default":"A4"},"printBackground":{"type":"boolean","required":false,"default":true}};
34
34
  }
35
35
 
36
36
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apiverve/websitetopdf",
3
- "version": "1.2.4",
4
- "description": "Website to PDF renders any public web page into a PDF document from a submitted URL. It returns a temporary signed download link, unique filename, and expiration timestamp, with paid plans adding custom margins and landscape layout.",
3
+ "version": "1.2.5",
4
+ "description": "Website to PDF renders any public web page into a PDF document from a submitted URL. It returns a temporary signed download link, unique filename, and expiration timestamp, with paid plans adding the page count, paper size, custom margins, landscape layout and background printing control.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "sideEffects": false,