add pdf after compile