Hi, guys, I have a question on putpdf command.

I am putting the graph I generated into two pdf separately by putpdf command below. (This is just an example. I have over 150 graphs to put into pdf actually...)

Code:
forvalues k = 1/2 {
    if `k' == 1 {
        local image_name "yr\`i\'_first_stage_\`j\'_tlf.png"
        local pdf_name "first_stage_tlf.pdf"
    }
    else if `k' == 2 {
        local image_name "same_school_last_y_year\`i\'_\`j\'_r1.png"
        local pdf_name "same_school_last_year_r1.pdf"
    }
    putpdf clear 
    putpdf begin 
    putpdf paragraph 
    forvalues i = 2/5 {
        forvalues j = 1/3 {
            putpdf image `image_name', height(4.9)
        }
    }
    putpdf save `pdf_name', replace     
}
However, if I want to add a table of content into the output pdf by putpdf command, I wonder is it possible? If it is possible, then I could just generate one pdf directly and add the TOC into it.

Otherwise, I can only put the two pdf I generated here into latex and then add a table of content to merge them together.

Thanks.