If you search this forum, you'll probably find a few versions of a journal to do that. Alternatively, if you visit this link, there is a code download at the end of the article; one of the included journals in the zip file is "export_pdf_test_all_parts_in_folder.vb". This journal is fairly generic, any code posted here at eng-tips may be more specific to the needs of a particular situation.