aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_pdf_rebuild.py
blob: 29b31c32e45e6e330b2bb5acdb06bb36d0316407 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys
sys.path.append("../")

from PdfFileTransformer import Pdf
import logging

input_file = "./samples/test1.pdf"
output_file = "./samples/test1_out.pdf"

logging.basicConfig(level=logging.DEBUG)


p = Pdf(input_file)
f = open(output_file, 'wb')
f.write(p.get_build_buffer())
f.close()