Conversation
Signed-off-by: Maxim Solodovnik <solomax@apache.org>
Signed-off-by: Maxim Solodovnik <solomax@apache.org>
|
@solomax Maybe implement EmbeddedJRReport as InlineFrame?
Other idea... use a lazy loading panel... So, that PDF is only asked after the page was rendered,. |
| tag.put("data", getResponse().encodeURL(urlForListener(null))); | ||
| protected void onComponentTag(ComponentTag tag) { | ||
| checkComponentTag(tag, "object"); | ||
| tag.put("data", RequestCycle.get().urlFor(ref, null)); |
There was a problem hiding this comment.
Try also putting type
<object data="path/to/your/document.pdf" type="application/pdf" width="100%" height="600px">
<p>Alternative text - include a <a href="path/to/your/document.pdf">link to the PDF</a> if it cannot be displayed.</p>
</object>
this might do the trick. but I wonder: why main page top loading on this sub-request? |
|
Could you please try an iframe? And do something similar to InlineFrame? |
|
Well While investigating this one I've tried to check code of I'm frustrated :( @martin-g maybe you can help? :)) |
https://www.dofactory.com/html/object#:~:text=The%20element%20embeds%20external,to%20embed%20videos. according to this iframe is recommended to embed PDF/HTML |
Signed-off-by: Maxim Solodovnik <solomax@apache.org>
This reverts commit f6c4a27.
|
Hello @reiern70, According to what I can read from the code In case |
Signed-off-by: Maxim Solodovnik <solomax@apache.org>
I didn't say use it but use it as inspiration... |

Everything is compilable and "sort of" working
The only issue as far as I can tell:
SimplePdfPageexample look incomplete:I can see "Before"
I can see contents of PDF
but there is no "After" and link :(((
Any help is highly appreciated! :)