Closed
Description
Bug Report
Description of the problem
When I add text in a column that flows over to the next page, then start a new column on the first page, the second column will not flow onto the second page but instead flows onto a new, third, page.
Code sample
`// create a document and pipe to a blob
var doc = new PDFDocument({ size: 'A4', layout: 'landscape', bufferPages: true, margin:28 });
var stream = doc.pipe(blobStream());
doc.text(lorem, 20, 200, {width:200});
doc.switchToPage(0);
doc.text(lorem, 300, 150, {width:200});
// end and display the document in the iframe to the right
doc.end();
stream.on('finish', function() {
iframe.src = stream.toBlobURL('application/pdf');
});`
Your environment
- pdfkit version: 0.11.0
- Node version: NA
- Browser version (if applicable): Firefox 84
- Operating System: Windows 10
Metadata
Metadata
Assignees
Labels
No labels