Mark's blog

Search
Skip to content
  • Home
  • About
    • Contact
  • Technical
    • AngularJS
    • Linux
    • perl
  • Turkish
    • DLI Books
  • Biblical Studies
    • Essays on Mark
      • Authorship, Location and Date of Mark’s gospel
      • Mark 1:4-15
      • Mark 4:35-41 – the Stilling of the Storm
      • Mark 9:2-10 – Transfiguration
      • Mark 15:33-39 – Crucifixion
    • Greek Influence upon Jewish Views of Resurrection and Immortality
    • Jesus and Christology
      • Did Jesus attribute any importance to his death?
      • Should Jesus be seen as a first-century Palestinian prophet?
      • What difference did belief in the resurrection of Jesus make for the development of early Christology?
    • Psalms of Solomon

Daily Archives: Monday, January 26, 2015

Computers, Linux

Extracting images from word documents and turning into PDF

Monday, January 26, 2015 Mark Leave a comment

So someone recently sent me a load of Word 2007 documents that had musical scores embedded as pictures. Nice and easy to convert these (losslessly) into PDF’s with one image per page using this img2pdf script

for i in *.docx; do
  pushd proc;
  mkdir t;
  pushd t;
  unzip ../../"$i";
  popd;
  python img2pdf.py -o "${i%.docx}.pdf" `find -name \*.png | sort`;
  rm -fr t;
  popd;
done

High-performance Linux optimization and development.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

January 2015
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Dec   Feb »

Archives

  • September 2024
  • November 2023
  • August 2023
  • December 2022
  • November 2022
  • March 2022
  • January 2022
  • November 2020
  • October 2020
  • May 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • December 2018
  • February 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • June 2017
  • May 2017
  • December 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • June 2011
  • July 2010
  • June 2010
  • July 2007
  • August 2006
  • July 2006
  • June 2006
  • February 2006
  • January 2006
  • December 2005
  • November 2005
  • October 2005
  • September 2005
  • August 2005
  • July 2005
  • June 2005
  • May 2005
Proudly powered by WordPress