Edit to show method on messages_controller to show the message's number when calling the pdf, it stills ignores most of the css.