Search code examples
phppdfhyperlinkprincexml

Hyperlinks not working in PrinceXML


If I write below code in html file to convert it to PDF with prince factory it is not working properly.

<a href="http://example.com">http://google.com</a>

This above link in pdf generated from prince xml is working properly, but it is pointing to google.com instead of example.com

<a href="http://example.com">Google</a>

This link will not work as we have not written anything before google as http or https.

Can someone please help me on this?

Thanks.


Solution

  • Apologies for this. But the problem was not with PrinceXML. later after so much investigation, I found that it was problem with merging 2 documents in FPDF.

    I used Zend Merger for merging 2 documents which were created by PrinceXML and it worked perfect.

    Apologies and Thank you all for your help.