Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

heise.de can’t be transformed into a PDF #1531

Closed
JensKapitza opened this issue Dec 31, 2021 · 1 comment
Closed

heise.de can’t be transformed into a PDF #1531

JensKapitza opened this issue Dec 31, 2021 · 1 comment
Labels
crash Problems preventing documents from being rendered
Milestone

Comments

@JensKapitza
Copy link

JensKapitza commented Dec 31, 2021

weasyprint http://heise.de heise.pdf

ERROR: No anchor # for internal URI reference
Traceback (most recent call last):
  File "/usr/local/bin/weasyprint", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/weasyprint/__main__.py", line 214, in main
    html.write_pdf(output, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/weasyprint/__init__.py", line 180, in write_pdf
    self.render(
  File "/usr/local/lib/python3.8/dist-packages/weasyprint/document.py", line 1160, in write_pdf
    page.paint(stream, scale=scale)
  File "/usr/local/lib/python3.8/dist-packages/weasyprint/document.py", line 769, in paint
    draw_page(self._page_box, stream)
  File "/usr/local/lib/python3.8/dist-packages/weasyprint/draw.py", line 69, in draw_page
    draw_stacking_context(stream, stacking_context)
  File "/usr/local/lib/python3.8/dist-packages/weasyprint/draw.py", line 182, in draw_stacking_context
    draw_stacking_context(stream, child_context)
  File "/usr/local/lib/python3.8/dist-packages/weasyprint/draw.py", line 182, in draw_stacking_context
    draw_stacking_context(stream, child_context)
  File "/usr/local/lib/python3.8/dist-packages/weasyprint/draw.py", line 173, in draw_stacking_context
    draw_replacedbox(stream, block)
  File "/usr/local/lib/python3.8/dist-packages/weasyprint/draw.py", line 927, in draw_replacedbox
    box.replacement.draw(
  File "/usr/local/lib/python3.8/dist-packages/weasyprint/images.py", line 89, in draw
    self._svg.draw(
  File "/usr/local/lib/python3.8/dist-packages/weasyprint/svg/__init__.py", line 356, in draw
    self.draw_node(self.tree, size('12pt'))
  File "/usr/local/lib/python3.8/dist-packages/weasyprint/svg/__init__.py", line 423, in draw_node
    self.draw_node(child, font_size, fill_stroke)
  File "/usr/local/lib/python3.8/dist-packages/weasyprint/svg/__init__.py", line 416, in draw_node
    TAGS[node.tag](self, node, font_size)
  File "/usr/local/lib/python3.8/dist-packages/weasyprint/svg/defs.py", line 37, in use
    bytestring_svg = svg.url_fetcher(url)
  File "/usr/local/lib/python3.8/dist-packages/weasyprint/urls.py", line 238, in default_url_fetcher
    raise ValueError('Not an absolute URI: %r' % url)
ValueError: Not an absolute URI: '/icons/common-icons.svg#heiseplus-logo'
@liZe liZe changed the title heise.de kann man nicht in ein pdf wandeln heise.de can’t be transformed into a PDF Jan 1, 2022
@liZe liZe added the crash Problems preventing documents from being rendered label Jan 1, 2022
@liZe liZe added this to the 54.0 milestone Jan 3, 2022
@liZe liZe closed this as completed in 302f09d Jan 3, 2022
@liZe
Copy link
Member

liZe commented Jan 3, 2022

Thanks for the bug report! It should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Problems preventing documents from being rendered
Projects
None yet
Development

No branches or pull requests

2 participants