Esempio n. 1
0
        public virtual void TaggedPdfReaderToolTest01()
        {
            String              filename   = "iphone_user_guide.pdf";
            String              outXmlPath = destinationFolder + "outXml01.xml";
            String              cmpXmlPath = sourceFolder + "cmpXml01.xml";
            PdfReader           reader     = new PdfReader(sourceFolder + filename);
            PdfDocument         document   = new PdfDocument(reader);
            FileStream          outXml     = new FileStream(outXmlPath, FileMode.Create);
            TaggedPdfReaderTool tool       = new TaggedPdfReaderTool(document);

            tool.SetRootTag("root");
            tool.ConvertToXml(outXml);
            outXml.Dispose();
            document.Close();
            CompareTool compareTool = new CompareTool();

            if (!compareTool.CompareXmls(outXmlPath, cmpXmlPath))
            {
                NUnit.Framework.Assert.Fail("Resultant xml is different.");
            }
        }
Esempio n. 2
0
 internal MarkedContentEventListener(TaggedPdfReaderTool _enclosing)
 {
     this._enclosing = _enclosing;
 }