Add legend support in projects pdf.