Create PDFs From BOM Macro?

Is there a macro that will look at a BOM (Excel BOM if it matters) and then make PDFs of all the drawings in the BOM, even lower level parts that aren't in the current drawing? Thank you

SolidworksApi macros