So...looks like I didn't use a script after all. Just a simple CLI command. Most of the effort and organization is in a source text file, manual_page_order.txt and the directories that contain the PDFs that were created from OpenOffice(pre-LibreOffice), Draftsight and Base.
From my readme:
This readme.txt explains how to combine/merge all the individual manual PDFs in the final copy.
After all the individual PDFs have been created, group them accordingly in manual_page_order.txt
Then from the CLI:
$ pdftk $(< manual_page_order.txt) cat output FINAL/ue01_elect_manual_rev04.pdf
manual_page_order.txt
Code: Select all
ue01_elect_manual_toc8.pdf
blank_letter.pdf
pg_0001.pdf
blank_letter.pdf
revision_sheet.pdf
blank_letter.pdf
ue01_power_panel_assembly.pdf
blank_letter.pdf
/home/ramack/Documents/ue01/current_mech_dwg_pdf/01-PPN-01-00.pdf
blank_letter.pdf
ue01_power_panel_bom.pdf
blank_letter.pdf
ue01_back_panel_assembly.pdf
blank_letter.pdf
/home/ramack/Documents/ue01/current_mech_dwg_pdf/01-BPN-01-00.pdf
blank_letter.pdf
ue01_back_panel_bom.pdf
blank_letter.pdf
ue01_enclosure_assembly_partial.pdf
pg_0002.pdf
revision_sheet.pdf
/home/ramack/Documents/ue01/current_mech_dwg_pdf/01-BPN-02-00.pdf
/home/ramack/Documents/ue01/current_mech_dwg_pdf/01-BPN-03-00.pdf
/home/ramack/Documents/ue01/current_mech_dwg_pdf/01-BPN-04-00.pdf
/home/ramack/Documents/ue01/current_mech_dwg_pdf/01-BPN-05-00.pdf
/home/ramack/Documents/ue01/current_mech_dwg_pdf/01-PPN-02-00.pdf
/home/ramack/Documents/ue01/current_mech_dwg_pdf/01-PPN-03-00.pdf
/home/ramack/Documents/ue01/current_mech_dwg_pdf/01-PPN-04-00.pdf
pg_0003.pdf
cable_bag_tag.pdf
ue01_cable_checklist_oriental_remotemonitor_autoload_r00.pdf
ue01_cable_checklist_oriental_remotemonitor_r00.pdf
vendor_pn_query_bom_auto.pdf
vendor_pn_query_bom_tilt.pdf
pg_0004.pdf
revision_sheet.pdf
pg_0005.pdf
/home/ramack/Documents/ue01/current_cable_pdf/load_tilttable/01-LTT-01-01.pdf
/home/ramack/Documents/ue01/current_cable_pdf/load_tilttable/01-LTT-11-01.pdf
/home/ramack/Documents/ue01/current_cable_pdf/load_tilttable/01-LTT-12-01.pdf
/home/ramack/Documents/ue01/current_cable_pdf/load_tilttable/01-LTT-99-01.pdf
pg_0006.pdf
/home/ramack/Documents/ue01/current_cable_pdf/load_tilttable/01-LTT-01-02.pdf
/home/ramack/Documents/ue01/current_cable_pdf/load_tilttable/01-LTT-11-02.pdf
/home/ramack/Documents/ue01/current_cable_pdf/load_tilttable/01-LTT-12-02.pdf
/home/ramack/Documents/ue01/current_cable_pdf/load_tilttable/01-LTT-99-02.pdf
pg_0007.pdf
revision_sheet.pdf
/home/ramack/Documents/ue01/current_cable_pdf/internal/*.pdf
pg_0008.pdf revision_sheet.pdf
/home/ramack/Documents/ue01/current_cable_pdf/inter_panel/*.pdf
pg_0009.pdf
revision_sheet.pdf
/home/ramack/Documents/ue01/current_cable_pdf/external/*.pdf
pg_0010.pdf
revision_sheet.pdf
/home/ramack/Documents/ue01/assembly_documentation/assy_man_pdf/ue01_input_output_relay_designation.pdf
/home/ramack/Documents/ue01/current_wiring_diagrams_pdf/*.pdf
The next tricky part was getting this printed. The company had a great MFC that no one seemed to know how to use except for copying and printing simple stuff. What was odd is that the CUPS drivers ended up working better than the Windows drivers and people would email stuff to me to have it printed, ha.