Skip to content

Error handling when pdf.js fetch data from another server #10928

@LOGANLEEE

Description

@LOGANLEEE

I'm using viewer.html?file=\APICall\ and it works really well.
But sometimes server will return corrupted file or encoded file on purpose.
In that case, i want to execute window.location.href = \APICall\ to download that file.

summaries of this question) if viewer.html has any kind of error then execute window.location.href script to download directly.

can i get help?

Really appreciate of your effort that built this lib.
thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions