The billing view PDF will return the raw code to create a PDF file of the specified invoice.
stdClass Object( [success] => TRUE/FALSE [data] => Returns the RAW PDF code. )