Add index to pdf