momijizukamori / bookbinder-js

A JS application to format PDFs for bookbinding.
Mozilla Public License 2.0
99 stars 26 forks source link

Actually WAIT for the PDF to load #31

Open sithel opened 1 year ago

sithel commented 1 year ago

Thanks to Kameron for raising this issue by finding it with a 784 page PDF....

In async openpdf(file) { we have this.currentdoc = await PDFDocument.load(this.input); and I can see us hit that, pause, and then wait for... yikes, it took ~60 seconds on my machine? With no UI updates (looks broken) and then we eventually progress beyond that step.

Need to add some sort of UI to reflect this progress

sithel commented 1 year ago

Rhi saw some weird switching-between-PDFs behavior, I think might also be caused by this?

When addressed, reference this msg to see if resolved: https://discord.com/channels/726108551428440206/953709370267541634/1068385723583041637