Exemplo n.º 1
0
 public void Context_Tag_Strong()
 {
     TestRuntime.AssertXcodeVersion(11, 0);
     using (var url = new NSUrl(filename))
         using (var ctx = new CGContextPDF(url)) {
             var tp = new CGPdfTagProperties()
             {
                 ActualText      = "ActualText",
                 AlternativeText = "AlternativeText",
                 TitleText       = "TitleText",
                 LanguageText    = "LanguageText",
             };
             ctx.BeginPage(PDFInfoTest.GetInfo());
             ctx.BeginTag(CGPdfTagType.Header, tp);
             ctx.EndTag();
             ctx.BeginTag(CGPdfTagType.Caption, (CGPdfTagProperties)null);
             ctx.SetUrl(url, CGRect.Empty);
             ctx.EndTag();
             ctx.EndPage();
         }
 }
Exemplo n.º 2
0
        public void BeginTag(CGPdfTagType tagType, CGPdfTagProperties tagProperties)
        {
            var d = tagProperties?.Dictionary;

            CGPDFContextBeginTag(Handle, tagType, d.GetHandle());
        }