Skip to content

Can't render PDF #591

Closed
Closed

Description

@cashew22

Hi,

I'm trying to open a page like: https://www.orimi.com/pdf-test.pdf which is a simple PDF file. However, Cog seems to not be able to load pdfjs, it displayed the viewer.html code in the display instead of the actual PDF. I compared with Epiphany and we can see with the remote inspector that the two browser seems to behave differently.

My webkit is compiled with:
-- ENABLE_PDFJS ON

there a screen shot of the webinspector downloaded content:
image
Versus what I got on Epiphany
image

It seems that way more content is dowloaded.

I also have some message in the console, but it looks like it's in reaction of the fact that the pdfjs files are missing
image

I'm open to suggestion if someone has an idea

Thanks

Activity

  1. cashew22 commented on Jul 17, 2023

    @cashew22
    Author

    Turn's out that you need to have the MIME database somewhere on the client side which is not a given when building from buildroot.

  2. locked and limited conversation to collaborators on Oct 27, 2023
  3. converted this issue into a discussion #633 on Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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