title: combining pdf files with ghostscript, how to include original file names?
body: <p>I have about 250 single-page pdf files that have names like:</p>
  
  <pre><code>file_1_100.pdf,
  file_1_200.pdf, 
  file_1_300.pdf, 
  file_2_100.pdf, 
  file_2_200.pdf, 
  file_2_300.pdf, 
  file_3_100.pdf, 
  file_3_200.pdf, 
  file_3_300.pdf
  ...etc
  </code></pre>
  
  <p>I am using the following command to combine them to a single pdf file:</p>
  
  <pre><code>gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf file*pdf
  </code></pre>
  
  <p>It works perfectly, combining them in the correct order.  However, when I am looking at finished.pdf, I want to have a reference that tells me the orignal filename for each page.</p>
  
  <p>Does anyone have any suggestions?  Can I add page names referencing the files or something?</p>