Created
September 18, 2013 15:39
-
-
Save zealot128/6611074 to your computer and use it in GitHub Desktop.
OLE access binary extraction of PDF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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