First public commit

This commit is contained in:
ben
2018-09-18 10:52:38 +02:00
commit f57654b84b
58 changed files with 9728 additions and 0 deletions

23
tests/test_polyglot_pdfzip.py Executable file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
sys.path.append("../")
from PdfFileTransformer import Pdf
from ZipFileTransformer import Zip
from PolyglotFile import PolyglotPdfZip
import logging
input_file_pdf = "./samples/test1.pdf"
input_file_zip = "./samples/test1.zip"
output_file = "./samples/test1_out.pdf"
logging.basicConfig(level=logging.DEBUG)
p = Pdf(input_file_pdf)
z = Zip(input_file_zip)
a = PolyglotPdfZip(p, z)
a.generate()
a.write(output_file)