Skip to content

Bug: page layout/zoom scale not kept/wrongly initiated after loading a new PDF #3

@xiaohanyu

Description

@xiaohanyu

Hello,

I am coming from react-pdf-viewer because it seems dead and not maintained any more.

I am doing a LaTeX based resume builder product called PPResume, my use case here:

  1. the resume builder has a form input pane on the left and a PDF preview pane on the right
  2. when user input things in the form, the resume builder would generate a new PDF and show it to users (internally, we pass the generated PDF in base64 encoded blob)

Recently I am trying to migrate to react-pdf (I already bought the license), almost everything looks OK however I do have one serious bug which is the only show stopper for me.

Please take the following demo:

2025-03-26_13-10-15-compressed.mp4

At 00:00:40 and 00:00:60, the pages layout are completed overlapped, at 00:00:90, some zoom options (page fit) are not functional as expected.

I thought this may be due to my setup/configuration issue. However I found even the official next.js demo has these issues, again, demo:

2025-03-26_13-08-02-compressed.mp4

At 00:00:20, when use the PDF viewer to open a new file for the second time, the pages layout is broken, margins between pages is way too large and some page zoom functions stops working again.

I tried to pass initialScale={ZoomLevel.PAGE_FIT} to RPProvider to stablize the zoom scale in next.js demo, however this seems not working.

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions