danfickle / danfickle/openhtmltopdf

Fail to reder pdf because of recursive rendering image resource in html content

Open
#467 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.2k
Forks
423
PR merge metrics
No merged PRs in 30d

Description

Hi Dan,

Something I encountered lately when playing around with openhtmltopdf lib. I don't know if this a known (if so sorry for this duplicate ticket) or even an issue. Following scenario example: I am rendering HTML content to a PDF file. In the HTML content there is an image tag, with com.openhtmltopdf.load -> com.openhtmltopdf.match -> com.openhtmltopdf.load -> com.openhtmltopdf.match ...

This is happening because the scenario looks like it tries to load image/pdf into image/pdf recursively.

The question is, should openhtmltopdf detects this recursive call and catch with an exception or is this something the service application needs to handle?

![image](https://user-images.githubusercontent.com/1552246/79919806-5dc8ee00-842f-11ea-9a21-215f5866038f.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.