If we want to print the background, we need to set printBackground to true. printBackground: By default, the background graphics is not printed.margin: It’s an object that lets us customize the PDF’s margin.The other options are A3, A4, A5, Legal, Tabloid and an array of. format: We can set the page format with this parameter.If a relative path is specified, it will be resolved relative to the current working directory. path: The path (relative to the current working directory) where the PDF will be written.Some of the optional parameters in detail: For example, you canĬontrol the page size and margins with the width, height, and margin options.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |