我正在尝试从页面打印图形,该图形是使用使用Flash Player的Fusion Charts制作的。将图表呈现在页面上后,结果为:
<div>
<embed type="application/x-shockwave-flash" src="../components/fusion_bar/swf/FCF_Bar2D.swf" width="800" height="400" id="productSales" name="productSales" quality="high" allowscriptaccess="always" wmode="transparent" flashvars="chartWidth=800&chartHeight=400&debugMode=0&DOMId=productSales&registerWithJS=0&scaleMode=noScale&lang=EN&dataXML=<graph caption='' subCaption='' yAxisMinValue='0' yAxisMaxValue='5' yaxisname='Number of documents' xaxisname='Directions' showZeroPlaneValue='1' showAlternateVGridColor='1' alternateVGridAlpha='10' alternateVGridColor='AFD8F8' numDivLines='4' decimalPrecision='0' canvasBorderThickness='1' canvasBorderColor='114B78' baseFontColor='114B78' hoverCapBorderColor='114B78' hoverCapBgColor='E7EFF6' formatNumberScale='1' thousandSeparator='.' decimalSeparator=','><set name='Test 1' value='3' color='AFD8F8' /><set name='Test 2' value='0' color='F6BD0F' /></graph>">
</div>
我尝试使用window.print()打印页面,然后使用html2canvas转换图像中的内容,但打印时图表未显示。还有其他打印某些Flash Player内容的选项吗?