Closed Ar-Nai closed 2 years ago
First you should generate PDF file and print PDF
`async createPDF() {
let options = {
html: "<h1>Hello world!</h1>",
fileName: "file_pdf",
directory: "Documents",
width: 165, //In points
height: 765, //In points
};
let file = await RNHTMLtoPDF.convert(options);
await RNPrint.print({ filePath: file.filePath })
}`
How can I set custom paper size?