iTextSharp.text.pdf.PdfContentByte.BeginMarkedContentSequence C# (CSharp) Метод

BeginMarkedContentSequence() публичный Метод

public BeginMarkedContentSequence ( PdfName tag, PdfDictionary property, bool inline ) : void
tag PdfName
property PdfDictionary
inline bool
Результат void
        public void BeginMarkedContentSequence(PdfName tag, PdfDictionary property, bool inline)
        {
            if (property == null) {
                content.Append(tag.GetBytes()).Append(" BMC").Append_i(separator);
                SetMcDepth(GetMcDepth() + 1);
                return;
            }
            content.Append(tag.GetBytes()).Append(' ');
            if (inline)
                property.ToPdf(writer, content);
            else {
                PdfObject[] objs;
                if (writer.PropertyExists(property))
                    objs = writer.AddSimpleProperty(property, null);
                else
                    objs = writer.AddSimpleProperty(property, writer.PdfIndirectReference);
                PdfName name = (PdfName)objs[0];
                PageResources prs = PageResources;
                name = prs.AddProperty(name, (PdfIndirectReference)objs[1]);
                content.Append(name.GetBytes());
            }
            content.Append(" BDC").Append_i(separator);
            SetMcDepth(GetMcDepth() + 1);
        }

Same methods

PdfContentByte::BeginMarkedContentSequence ( PdfName tag ) : void
PdfContentByte::BeginMarkedContentSequence ( PdfStructureElement struc ) : void
PdfContentByte