Ejemplo n.º 1
0
        public void AddBMC(
            String structure,
            String language,
            String altDescription,
            String actualText)
        {
            if (pdf.compliance == Compliance.PDF_UA) {
            StructElem element = new StructElem();
            element.structure = structure;
            element.mcid = mcid;
            element.language = language;
            element.altDescription = altDescription;
            element.actualText = actualText;
            structures.Add(element);

            Append("/");
            Append(structure);
            Append(" <</MCID ");
            Append(mcid++);
            Append(">>\n");
            Append("BDC\n");
            }
        }
Ejemplo n.º 2
0
 internal void AddAnnotation(Annotation annotation)
 {
     annots.Add(annotation);
     if (pdf.compliance == Compliance.PDF_UA) {
     StructElem element = new StructElem();
     element.structure = StructElem.LINK;
     element.language = annotation.language;
     element.altDescription = annotation.altDescription;
     element.actualText = annotation.actualText;
     element.annotation = annotation;
     structures.Add(element);
     }
 }