3

This is the content of my store contact address:

text<br/>
text2<br/>
text3

I am getting this content in the Pdf/Abstract.php file, like:

$storeAddress = Mage::getStoreConfig('general/store_information/address');

and I displayed it like:

$page->drawText(
    $storeAddress, 350, $top - 54
);

For some reason, it didn't recognize the <br/> tag.

So I tried to replace the <br/> tag with \n, but I got the same result. Is there a way to add a line break in the PDF? Thx !

1 Answer 1

-2

Try to wrap the part below the break in an <p>text</p>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.