Skip to content

Text flowing over multiple pages in parallel columns skips a page #1201

Closed
@rexxmagnus

Description

@rexxmagnus

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

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions