Namespace: PdfSharp.Pdf.Advanced
Represents a base class for dictionaries with a content stream. Implement IContentStream for use with a content writer.
public abstract class PdfDictionaryWithContentStream : PdfSharp.Pdf.PdfDictionary, System.ICloneable, System.Collections.Generic.IEnumerable`1[[System.Collections.Generic.KeyValuePair`2[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[PdfSharp.Pdf.PdfItem, PdfSharp, Version=0.1.3.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Collections.IEnumerable, IContentStream
Inheritance Object → PdfItem → PdfObject → PdfDictionary → PdfDictionaryWithContentStream
Implements ICloneable, IEnumerable<KeyValuePair<String, PdfItem>>, IEnumerable, IContentStream
Gets the dictionary containing the elements of this dictionary.
public DictionaryElements Elements { get; }
Gets or sets the PDF stream belonging to this dictionary. Returns null if the dictionary has no stream. To create the stream, call the CreateStream function.
public PdfStream Stream { get; set; }
Gets the PdfDocument this object belongs to.
public PdfDocument Owner { get; }
Indicates whether the object is an indirect object.
public bool IsIndirect { get; }
Gets the PdfInternals object of this document, that grants access to some internal structures which are not part of the public interface of PdfDocument.
public PdfObjectInternals Internals { get; }
Gets the indirect reference of this object. If the value is null, this object is a direct object.
public PdfReference Reference { get; internal set; }
Gets the indirect reference of this object. Throws if it is null.
public PdfReference ReferenceNotNull { get; }
InvalidOperationException
The indirect reference must be not null here.
Initializes a new instance of the PdfDictionaryWithContentStream class.
public PdfDictionaryWithContentStream()
Initializes a new instance of the PdfDictionaryWithContentStream class.
public PdfDictionaryWithContentStream(PdfDocument document)
document
PdfDocument
The document.
internal string GetFontName(XFont font, PdfFont& pdfFont)
font
XFont
pdfFont
PdfFont&
internal string GetFontName(string idName, Byte[] fontData, PdfFont& pdfFont)
idName
String
fontData
Byte[]
pdfFont
PdfFont&
Gets the resource name of the specified image within this dictionary.
internal string GetImageName(XImage image)
image
XImage
Gets the resource name of the specified form within this dictionary.
internal string GetFormName(XForm form)
form
XForm