예제 #1
0
def test_damaged_font_kor_eng_7():
    pdf = PDF('../samples/damaged_font.pdf')
    pdf.parse_content()
    assert pdf.content
예제 #2
0
def test_normal_content():
    pdf = PDF('../samples/normal.pdf')
    pdf.parse_content()
    assert pdf.content  # For sequences, (strings, lists, tuples), use the fact that empty sequences are false.
예제 #3
0
def test_damaged_kor_4_content():
    pdf = PDF('../samples/damaged_kor_hwp.pdf')  # PDF 1.4
    pdf.parse_content()
    assert pdf.content
예제 #4
0
def test_damaged_kor_3_content():
    pdf = PDF('../samples/damaged_kor_1_3.pdf')  # PDF 1.3
    pdf.parse_content()
    assert pdf.content
예제 #5
0
def test_damaged_content():
    pdf = PDF('../samples/damaged.pdf')
    pdf.parse_content()
    assert pdf.content
예제 #6
0
def test_print_content():
    pdf = PDF('../samples/normal.pdf')
    pdf.parse_content()
예제 #7
0
def test_normal_kor_7_content():
    pdf = PDF('../samples/normal_kor.pdf')  # PDF 1.7 (KOR)
    pdf.parse_content()
    assert pdf.content
예제 #8
0
def test_kor_eng_7_content():
    pdf = PDF('../samples/kor_eng_word.pdf')
    pdf.parse_content()
    assert pdf.content
예제 #9
0
def test_normal_kor_6_content():
    pdf = PDF('../samples/normal_kor_1_6.pdf'
              )  # PDF 1.6 (KOR) => ezPDF Builder Supreme
    pdf.parse_content()
    assert pdf.content