【发布时间】:2020-05-27 12:25:56
【问题描述】:
我正在使用显示 js 来显示一些使用 iframe 本地托管的 plotly 图表。
除了导出为 pdf 的能力之外,这很好用。当我转到http://localhost:138/presentations/pres1/?print-pdf (as described here) 时,我可以导出文本,但不会出现绘图图表。我认为这是由于 plotly 库未加载。
有没有办法加载本地的html文件,以便导出为pdf?
我在幻灯片中使用了以下内容:
#### Slide with iframe
<iframe data-src="http://localhost:138/html/localpage.html" width="900" height="500" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:0px solid #666; margin-bottom:5px; max-width: 600%;" allowfullscreen=true></iframe>
我正在保存 plotly 图表using export interactive html
【问题讨论】: