如果我在html文件中编写以下代码,将其转换为PDF与王子工厂它不能正常工作。
<a href="http://example.com">http://google.com</a>上面的这个pdf格式的链接(由普林斯xml生成)工作正常,但它指向的是google.com而不是example.com。
<a href="http://example.com">Google</a>这个链接将不起作用,因为我们没有写任何东西之前谷歌作为http或https。
有没有人能帮帮我?
谢谢。
发布于 2017-04-04 15:29:27
对此我很抱歉。但问题不在于PrinceXML。后来经过这么多的调查,我发现在FPDF中合并2个文档是有问题的。
我使用Zend Merger合并了两个由PrinceXML创建的文档,它工作得很完美。
很抱歉,并感谢你们的帮助。
发布于 2017-02-28 16:38:29
您可以尝试使用css模型
Html
<a href="http://example.com"><span class="linkContent"></a>CSS
.linkContent {
content: "http://google.com"
}参考文档:https://www.princexml.com/doc/8.1/gen-content/
希望能对你有所帮助!
发布于 2017-02-27 20:36:21
您好,您必须检查“普林斯-pdf-link-type”属性。默认值为auto,尝试更改为"web“:https://www.princexml.com/doc/properties/prince-pdf-link-type/
https://stackoverflow.com/questions/42292348
复制相似问题