Пример #1
0
        public void TestEvenOddMerge()
        {
            PdfMiniToolsCore.CoreTools coreTest = new PdfMiniToolsCore.CoreTools();
            coreTest.EvenOddMerge(@"..\..\oddpagefile.pdf",
                                  @"..\..\evenpagefile.pdf",
                                  @"..\..\mergedoutput1.pdf",
                                  false);
            Dictionary<String, String> mergedFileInfo = coreTest.RetrieveBasicProperties(@"..\..\mergedoutput1.pdf");
            int pageCount = Convert.ToInt32(mergedFileInfo["Page Count"]);
            Assert.IsTrue(ArePagesIdentical(@"..\..\mergedcontrol.pdf", 1, pageCount,
                                            @"..\..\mergedoutput1.pdf", 1));

            File.Delete(@"..\..\mergedoutput1.pdf");
        }
Пример #2
0
        public void TestEvenOddMerge()
        {
            PdfMiniToolsCore.CoreTools coreTest = new PdfMiniToolsCore.CoreTools();
            coreTest.EvenOddMerge(@"..\..\oddpagefile.pdf",
                                  @"..\..\evenpagefile.pdf",
                                  @"..\..\mergedoutput1.pdf",
                                  false);
            Dictionary <String, String> mergedFileInfo = coreTest.RetrieveBasicProperties(@"..\..\mergedoutput1.pdf");
            int pageCount = Convert.ToInt32(mergedFileInfo["Page Count"]);

            Assert.True(ArePagesIdentical(@"..\..\mergedcontrol.pdf", 1, pageCount,
                                          @"..\..\mergedoutput1.pdf", 1));



            File.Delete(@"..\..\mergedoutput1.pdf");
        }