I have created an extension to modify invoice PDF, in that want to add order comments. I am extending
Mage/Sales/Model/Order/Pdf/Invoice.php
and Mage/Sales/Model/Order/Pdf/Items/Invoice/Default.php
files.
What is the method to fetch order comments. I have tried the following method
$commentHistory = $order->getStatusHistoryCollection(true);
Please help.