代码之家  ›  专栏  ›  技术社区  ›  Max Boy

cfdocument不显示数据:image/svg+xml;base64

  •  1
  • Max Boy  · 技术社区  · 6 年前

    我有一个格式为data的图像:image/svg+xml;base64

    <img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iMzEwIiBoZWlnaHQ9Ijg2Ij48cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkPSJNIDEgODAgYyAwIC0wLjEgLTAuMzUgLTQuMjQgMCAtNiBjIDAuMjYgLTEuMzEgMS4wOCAtMi45MSAyIC00IGMgNC4yIC00Ljk5IDkuMTggLTEwLjY0IDE0IC0xNSBjIDEuODkgLTEuNzEgNC45NCAtMy40NCA3IC00IGMgMS4wNSAtMC4yOSAzLjA4IDAuMzkgNCAxIGMgMC44IDAuNTQgMS45MSAxLjk4IDIgMyBjIDAuNSA1Ljk1IDAuNSAxNC43NSAwIDIxIGMgLTAuMTEgMS4zMyAtMS43MSAyLjcgLTIgNCBjIC0wLjMyIDEuNDYgLTAuMzcgNS4xMiAwIDUgYyAwLjY5IC0wLjIzIDMuNzggLTQuNzggNiAtNyBjIDEyLjQxIC0xMi40MSAzMC45MSAtMzAuODUgMzcgLTM2IGMgMC40MyAtMC4zNiAyLjIyIDIuMTkgMiAzIGMgLTAuOCAzLjAyIC00LjY3IDguMjMgLTYgMTIgYyAtMC41IDEuNDEgLTAuMzIgMy41NCAwIDUgYyAwLjI5IDEuMyAxLjA1IDMuNDcgMiA0IGMgMS41IDAuODMgNC43OCAwLjQ1IDcgMSBjIDEuNjkgMC40MiAzLjQxIDEuODkgNSAyIGMgMi45NyAwLjIgNy44MiAwLjU1IDEwIC0xIGMgNC42MiAtMy4yNyAxMy43MiAtMTUuNzUgMTQgLTE2IGMgMC4xNCAtMC4xMiAtNS44NiA3LjU4IC02IDkgYyAtMC4wNyAwLjY3IDMuNyAwLjM1IDUgMSBjIDEuMDggMC41NCAzLjE0IDIuMTIgMyAzIGMgLTAuMzYgMi4zMyAtMy42NyA2LjY3IC01IDEwIGMgLTAuNjEgMS41MiAtMS43IDQuNTQgLTEgNSBjIDEuMzcgMC45MSA2LjU5IDAuOTYgMTAgMSBjIDI5LjE0IDAuMyA1OC43OSAxLjc1IDg2IDAgYyA3LjYxIC0wLjQ5IDE1LjA3IC00Ljg3IDIzIC03IGMgNi4wOCAtMS42MyAxMS43NyAtMi43OSAxOCAtNCBjIDYuMTYgLTEuMiAxMS44NiAtMi4yOCAxOCAtMyBjIDUuMzkgLTAuNjMgMTEuNzcgLTAuMTEgMTYgLTEgYyAxLjEyIC0wLjI0IDIuMzMgLTEuODMgMyAtMyBjIDExLjE0IC0xOS41NyAzNCAtNjIgMzQgLTYyIi8+PC9zdmc+" width="60" height="60">
    

    在我的coldfusion html页面中,它显示得很好,但是在cfdocument PDF格式中,图像不显示。有人知道为什么吗?

    <cfdocument format="PDF" marginLeft=.50 marginTop=.6 pageWidth=8 PageHeight=4 localUrl=yes overwrite="Yes">
    

    谢谢

    0 回复  |  直到 6 年前