question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set page content with multiple PDF pages

See original GitHub issue

Is it possible to have multiple PDF pages on a single file?

I am thinking of doing:

const page1 = await browser.newPage();
await page1.setContent(html1);

const page2 = await browser.newPage();
await page2.setContent(html2);

const page3 = await browser.newPage();
await page3.setContent(html3);

and then print them all in just one single PDF file but with multiple pages?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:6

github_iconTop GitHub Comments

5reactions
itereshchenkovcommented, Mar 2, 2020

It’s a wrong approach to use Page for this case. You can consider Page object as a tab in the browser. Please use css page-break to split the content into several pages, see https://css-tricks.com/almanac/properties/p/page-break/

2reactions
LordRampantHumpcommented, Feb 17, 2021

@itereshchenkov but what if you want the content from multiple 3rd party pages in one pdf document? I have one for example that is over 800 pages. As one file with css inline and images base64, it weighs in at 255mb

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to insert PDF pages for free | Adobe Acrobat
Drag and drop a PDF file, then insert pages. Select a PDF, then insert pages. Select a PDF, then insert pages. ... Your...
Read more >
Printing multiple PDF pages onto one page - YouTube
Sometimes you may find a PDF which has been created from a lecture or a presentation and has each slide filling a whole...
Read more >
View PDF Pages Side by Side in Adobe Acrobat - YouTube
This video shows you how to view PDFs more like how they would be printed with left and right pages setup side by...
Read more >
Repeat PDF Page Content Multiple Times on a Single Page ...
Use the "Repeat Page Content" dialog to configure how the repeated content will appear in the output. First, select the number of pages...
Read more >
Multiple pages per sheet online & free
PDF Layout: You can easily set multiple pages per sheet (e.g. for printing) in your PDF with this online tool - just in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found