To print PAN in the invoice, ensure that the Ledger Name and the Mailing Name under Ledger master are the same.