public void ReadPdf_ReadFlattenedForm()
        {
            var result = PdfReaderTask.ReadPdf(new Options {
                ReadFromFile = true, PdfLocation = Path.Combine(_pdfLocation, "Supplement List of invoices2.pdf"), Page = 0
            }, new CancellationToken());

            Assert.IsTrue(result.Content.Contains("impossibile"));
        }
        public void ReadPdf_ReadMutilplePages()
        {
            var result = PdfReaderTask.ReadPdf(new Options {
                ReadFromFile = true, PdfLocation = Path.Combine(_pdfLocation, "multipage_test.pdf"), Page = 0
            }, new CancellationToken());

            Assert.IsTrue(result.Content.Length == 23833);
        }
        public void ReadPdf_ReadOnePageOfMutilplePages()
        {
            var result = PdfReaderTask.ReadPdf(new Options {
                ReadFromFile = true, PdfLocation = Path.Combine(_pdfLocation, "multipage_test.pdf"), Page = 12
            }, new CancellationToken());

            Assert.IsTrue(result.Content.Contains("Ketasteride"));
        }
        public void ReadPdf_ShouldWork()
        {
            var result = PdfReaderTask.ReadPdf(new Options {
                ReadFromFile = true, PdfLocation = Path.Combine(_pdfLocation, "test.pdf"), Page = 1
            }, new CancellationToken());

            Assert.IsTrue(result.Content.Contains("This is a test pdf"));
        }