Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Handle 404 from External Resources #32

Description

@sealocal

I'm trying to create a PDF from a URL that produces an HTML document that looks like the one below.

http://www.example.com/foo/bar/baz.png is a path to an image that does not exist. to_pdf fails for the URL that points to this HTML page. How would I go about generating a PDF with some placeholder like a "broken image" or an "X" icon like a modern browser would display? Or how would I display the alt text instead?

<html>
  <head>
    <title>Demo</title>
  </head>
  <body>
    <img alt="baz.png" src="http://www.example.com/foo/bar/baz.png">
  </body>
</html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions