Added: tests for extracting tests from pdfs with Type3 fonts (#205)

pull/316/head
jbarlow83 2019-10-22 09:15:59 -07:00 committed by Pieter Marsman
parent 373c6e7b97
commit 733ddf7e57
4 changed files with 20 additions and 0 deletions

View File

@ -20,6 +20,17 @@ jo.pdf:
(File generated from jo.tex by LaTeX and dvi2pdfm)
--
contrib/matplotlib.pdf
Copyright 2018, James R Barlow
Example file created in matplotlib to add a Type3 font to the samples
Released under the terms of the "LICENSE" file
--
nonfree/cmp_itext_logo.pdf
Bruno Lowagie
"iText Logo - Type 3 font"
http://gitlab.itextsupport.com/itext/sandbox/raw/master/cmpfiles/fonts/cmp_itext_logo.pdf
nonfree/dmca.pdf:
U.S. Copyright Office
The Digital Millenium Copyright Act

Binary file not shown.

Binary file not shown.

View File

@ -112,5 +112,14 @@ class TestDumpImages(object):
assert image_files[0].endswith('.jb2')
def test_contrib_matplotlib(self):
"""Test a pdf with Type3 font"""
run('../samples/contrib/', 'matplotlib')
def test_nonfree_cmp_itext_logo(self):
"""Test a pdf with Type3 font"""
run('../samples/nonfree/', 'cmp_itext_logo')
if __name__ == '__main__':
nose.runmodule()