Skip to content

Regarding the usage of the loadDocument API #216

@YaoZhouZ

Description

@YaoZhouZ

Hello,

I'm very excited to use such a high-performance PDF preview library! I plan to integrate it into our enterprise project.

However, I've run into a few issues. Specifically, I couldn't find any documentation for the loadDocument API in the official docs, although I saw it being used in your examples.

In your provided examples, file selection and preview are handled via loaderProvider?.value?.openFileDialog(). For my use case, I need to load PDF documents directly from a URL, so I cannot use your file selection method.

I found that when I use loadDocument to load a second file, it causes two problems:

The text content of the document becomes unselectable.

It introduces rendering issues (as shown in my previous issue, where files overlap).

I will provide a video demonstrating this behavior. Could the author please help me resolve this?

This library is genuinely the most modern and best PDF library I've ever encountered!

Metadata

Metadata

Assignees

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