예제 #1
0
 def test_createImageWithTransparencyPdf(self):
     testFile = os.path.join(self.extAttchSampFile,
                             'CreateImageWithTransparency-out.pdf')
     baseFile = os.path.join(self.extAttchBase,
                             'CreateImageWithTransparency-out.pdf')
     assert util.compare_pdfs(
         testFile, baseFile), testFile + " failed, PDFs fail visual match"
예제 #2
0
 def test_addThumbnailsPdf(self):
     testFile = os.path.join(self.extAttchSampFile,
                             'AddThumbnailsToPDF-out.pdf')
     baseFile = os.path.join(self.extAttchBase,
                             'AddThumbnailsToPDF-out.pdf')
     assert util.compare_pdfs(
         testFile, baseFile), testFile + " failed, PDFs fail visual match"
예제 #3
0
    def test_flattenAnnotationsPDF(self):
        testFile = os.path.join(self.extAttchSampFile,
                                'FlattenAnnotations-out.pdf')
        baseFile = os.path.join(self.extAttchBase,
                                'FlattenAnnotations-out.pdf')
        assert util.compare_pdfs(
            testFile, baseFile), testFile + " failed, PDFs fail visual match"


# Legacy
# def test_flattenAnnotationsPDF(self):
#     testFile = os.path.join(self.extAttchSampFile, 'FlattenAnnotations-out.pdf')
#     baseFile = os.path.join(self.extAttchBase, 'FlattenAnnotations-out.pdf')
#     diffOut = os.path.join(self.extAttchSampFile, 'diffOut.png')
#     var = util.imgCompare(testFile, baseFile, diffOut)
#     assert var == b'0', "FAILED - Imaged PDFs do not match."
예제 #4
0
    def test_textSelectEnum(self):
        testFile = os.path.join(self.extAttchSampFile,
                                'TextSelectEnum-out.pdf')
        baseFile = os.path.join(self.extAttchBase, 'TextSelectEnum-out.pdf')
        assert util.compare_pdfs(
            testFile, baseFile), testFile + " failed, PDFs fail visual match"


# class TestUnicodeText(object):
#     extAttchSampFile = os.path.join(sampDir, 'UnicodeText')
#     extAttchBase = os.path.join(baseDir, 'unicodeText')

#     def test_unicodeText(self):
#         testFile = os.path.join(self.extAttchSampFile, 'UnicodeText-out.pdf')
#         baseFile = os.path.join(self.extAttchBase, 'UnicodeText-out.pdf')
#         diffOut = os.path.join(self.extAttchSampFile, 'diffComposite.png')
#         var = util.imgCompareMultiPage(testFile, baseFile, diffOut)
#         assert var == 0, "FAILED - PDFs do not match."
예제 #5
0
 def test_outputPreviewPdf(self):
     testFile = os.path.join(self.extAttchSampFile, 'Out.pdf')
     baseFile = os.path.join(self.extAttchBase, 'Out.pdf')
     assert util.compare_pdfs(
         testFile, baseFile), testFile + " failed, PDFs fail visual match"
예제 #6
0
 def test_createSeparationsPdf(self):
     testFile = os.path.join(self.extAttchSampFile, 'Out.pdf')
     baseFile = os.path.join(self.extAttchBase, 'Out.pdf')
     assert util.compare_pdfs(
         testFile, baseFile), testFile + " failed, PDFs fail visual match"
예제 #7
0
 def test_renderPagePdf(self):
     testFile = os.path.join(self.extAttchSampFile, 'RenderPage-out.pdf')
     baseFile = os.path.join(self.extAttchBase, 'RenderPage-out.pdf')
     assert util.compare_pdfs(
         testFile, baseFile), testFile + " failed, PDFs fail visual match"
예제 #8
0
 def test_pdfMakeOCGVisible(self):
     testFile = os.path.join(self.extAttchSampFile,
                             'PDFMakeOCGVisible-out.pdf')
     baseFile = os.path.join(self.extAttchBase, 'PDFMakeOCGVisible-out.pdf')
     assert util.compare_pdfs(
         testFile, baseFile), testFile + " failed, PDFs fail visual match"
예제 #9
0
 def test_mergeDocumentsPdf(self):
     testFile = os.path.join(self.extAttchSampFile,
                             'MergeDocuments-Out.pdf')
     baseFile = os.path.join(self.extAttchBase, 'MergeDocuments-Out.pdf')
     assert util.compare_pdfs(
         testFile, baseFile), testFile + " failed, PDFs fail visual match"
예제 #10
0
 def test_importPages(self):
     testFile = os.path.join(self.extAttchSampFile, 'importPages-out.pdf')
     baseFile = os.path.join(self.extAttchBase, 'importPages-out.pdf')
     assert util.compare_pdfs(
         testFile, baseFile), testFile + " failed, PDFs fail visual match"
예제 #11
0
 def test_splitPdf06(self):
     testFile = os.path.join(self.extAttchSampFile, '_b_6.pdf')
     baseFile = os.path.join(self.extAttchBase, '_b_6.pdf')
     assert util.compare_pdfs(
         testFile, baseFile), testFile + " failed, PDFs fail visual match"
예제 #12
0
 def test_insertHeadFoot(self):
     testFile = os.path.join(self.extAttchSampFile,
                             'InsertHeadFoot-out.pdf')
     baseFile = os.path.join(self.extAttchBase, 'InsertHeadFoot-out.pdf')
     assert util.compare_pdfs(
         testFile, baseFile), testFile + " failed, PDFs fail visual match"
예제 #13
0
 def test_extractTextPdf(self):
     testFile = os.path.join(self.extAttchSampFile, 'ExtractText-out.pdf')
     baseFile = os.path.join(self.extAttchBase, 'ExtractText-out.pdf')
     assert util.compare_pdfs(
         testFile, baseFile), testFile + " failed, PDFs fail visual match"
 def test_addArtPdf(self):
     testFile = os.path.join(self.extAttchSampFile, 'AddArt-out.pdf')
     baseFile = os.path.join(self.extAttchBase, 'AddArt-out.pdf')
     assert util.compare_pdfs(testFile, baseFile), testFile + " failed"