[Bug]: Upgrading to latest version of puppeteer causing extra blank pages. #12442
Labels
bug
disable-analyzer
Disables the automatic workflow that tries to reproduce bug reports
invalid
needs-feedback
not-reproducible
Minimal, reproducible example
Error string
No error but instead of getting 2 pages I get 4.
Bug behavior
Background
I am using a lambda function to generate a pdf and convert it to an image. Previously the function used node 16 and is still working fine with that version. But needed to upgrade to version 20 as AWS is removing support for 16. In doing that upgraded dependencies accordingly. Now everything works but the pdf is parsed to be 4 pages long but it is really 2 pages. After each page there is a blank page. I worked around this by only using pages 1 and 3 but the issue is that the generated pdf shows page number to be 1/4 and 3/4.
The pdf-parse package when checking gets 4 pages so the issue is above this.
Working fine with pupeteer version 17.1.3 and chromium 106.0.2 node 16
not working with pupetter 22.6.0 chromium 123.0.1 node 20
Expectation
Generate 2 page pdf without any blank pages.
Reality
Get 4 pages. 2 actual pages each having a blank page after it.
Puppeteer configuration file (if used)
No response
Puppeteer version
22.6.0
Node version
20.13.1
Package manager
npm
Package manager version
8
Operating system
Windows
The text was updated successfully, but these errors were encountered: