[]
Base abstract class for classes representing content streams in a GcPdfDocument.
public abstract class ContentStream : PdfDictWrapper, IPdfDict
Gets the System.IO.Stream object containing the content of this ContentStream.
It is the caller's responsibility to dispose the returned stream after usage.
Important: this method returns null if the current ContentStream object is empty.
public virtual Stream GetStream()
Returns a value indicating whether this content stream is not empty, i.e. it contains some PDF operators.
public virtual bool HasContent()
For internal use.
Sets the content of this ContentStream from the specified System.IO.MemoryStream.
If copyStream
is true then stream content will be copied
and it should be disposed; otherwise (copyStream
is false)
the content stream will use passed stream.
public void SetContent(MemoryStream stream, bool copyStream = true)
stream
System.IO.MemoryStreamcopyStream
bool