Generate index for PDF