Beispiel #1
0
 public MarkerWordMapper(string documentName, Split xml, Body body)
 {
     Xml = xml;
     SplitDocumentObj     = (SplitDocument)Xml.Items.Where(it => it is SplitDocument && string.Equals(((SplitDocument)it).Name, documentName)).SingleOrDefault();
     DocumentBody         = body;
     UniversalDocMarker   = new UniversalWordMarker(DocumentBody);
     SubdividedParagraphs = new string[body.ChildElements.Count];
 }
Beispiel #2
0
        public void Init()
        {
            WordNoParagraphIdDoc = WordprocessingDocument.Open(@"../../../Files/lep-na-szczury-z-atr-karta-ch.docx", false);
            WordDemoDoc          = WordprocessingDocument.Open(@"../../../Files/demo.docx", false);

            //test scenarios when paragraphs have an Id and a paragraph hasn`t got an Id
            UniversalDocNoParagraphIdMarker = new UniversalWordMarker(WordNoParagraphIdDoc.MainDocumentPart.Document.Body);
            UniversalDocParagraphIdMarker   = new UniversalWordMarker(WordDemoDoc.MainDocumentPart.Document.Body);
        }