-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text flowing over multiple pages in parallel columns skips a page #1201
Comments
I have a suggested fix that may work, but I haven't had time to study the codebase fully. in line_wrapper.js, the function instead of
|
Can you please check and accept the pull-request if that fixes the problem. I am having the same issue. |
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
The text was updated successfully, but these errors were encountered: