blob: 37972465fd65835ebf056e66f8528f13705c1343 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/usr/bin/env python3
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
import sys, os.path, optparse
from msodumper import vbahelper
def main():
offset = 0
if len ( sys.argv ) > 1:
offset = int(sys.argv[1])
chars = sys.stdin.read()
decompressed = vbahelper.UnCompressedVBAStream( chars, offset )
compressed = decompressed.compress()
sys.stdout.write(compressed)
exit(0)
if __name__ == '__main__':
main()
# vim:set filetype=python shiftwidth=4 softtabstop=4 expandtab:
|