A method of controlling an image forming apparatus connected to an information processing apparatus via a network and capable of performing direct printing for PDF data, the method comprising:
- notifying a user of information via mail in a case where print data received from the information processing apparatus is a PDF portfolio and it is not possible to perform direct printing for the PDF portfolio using the image forming apparatus, the information including a message indicating that printing should be performed using an application compatible with the PDF portfolio and a command to open the PDF portfolio using the application.