Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
pagedjs
pagedjs
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 161
    • Issues 161
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 12
    • Merge Requests 12
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Tools
  • pagedjspagedjs
  • Issues
  • #257

Closed
Open
Opened Oct 09, 2020 by Andrea@andrea
  • Report abuse
  • New issue
Report abuse New issue

Issue when printing a big document with puppeteer

I don't think it's a pagedjs issue, but I'm here to ask if there is a way to know when pagedJS finish the client side generation.

Or is there a way to generate the output via CLI?

I have a document with 52 pages and big images. Sometimes when converting it to PDF using Puppeteer the page is printed before pagedjs finish the DOM manipulation.

Is there a way to let Puppeteer say...: Ok. The manipulation ended. Print now.

Looks like networkidle2 it's not enough cause the network is idle but the client side manipulation is not finished.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: tools/pagedjs#257