Skip to content

Instantly share code, notes, and snippets.

@zealot128
Created September 18, 2013 15:39
Show Gist options
  • Select an option

  • Save zealot128/6611074 to your computer and use it in GitHub Desktop.

Select an option

Save zealot128/6611074 to your computer and use it in GitHub Desktop.
OLE access binary extraction of PDF
ole_bin = File.open("...","rb")
# just look for PDF Marker and EOF Marker
pdf_bin = ole_bin[/(%PDF-.*%%EOF\r?\n)/m,1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment