本文整理匯總了C#中PdfSharp.Pdf.IO.PdfWriter.WriteBeginObject方法的典型用法代碼示例。如果您正苦於以下問題:C# PdfWriter.WriteBeginObject方法的具體用法?C# PdfWriter.WriteBeginObject怎麽用?C# PdfWriter.WriteBeginObject使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PdfSharp.Pdf.IO.PdfWriter
的用法示例。
在下文中一共展示了PdfWriter.WriteBeginObject方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: WriteObject
/// <summary>
/// Writes the string literal with encoding DOCEncoded.
/// </summary>
internal override void WriteObject(PdfWriter writer)
{
writer.WriteBeginObject(this);
writer.Write(new PdfString(this.value, this.flags));
writer.WriteEndObject();
}
示例2: WriteObject
/// <summary>
/// Writes the real literal.
/// </summary>
internal override void WriteObject(PdfWriter writer)
{
writer.WriteBeginObject(this);
writer.Write(this.value);
writer.WriteEndObject();
}
示例3: WriteObject
internal override void WriteObject(PdfWriter writer)
{
writer.WriteBeginObject(this);
//int count = Elements.Count;
PdfName[] keys = Elements.KeyNames;
#if DEBUG
// TODO: automatically set length
if (this.stream != null)
Debug.Assert(Elements.Contains(PdfDictionary.PdfStream.Keys.Length), "Dictionary has a stream but no length is set.");
#endif
#if DEBUG
// Sort keys for debugging purposes. Comparing PDF files with for example programms like
// Araxis Merge is easier with sorted keys.
if (writer.Layout == PdfWriterLayout.Verbose)
{
ArrayList list = new ArrayList(keys);
list.Sort(PdfName.Comparer);
list.CopyTo(keys, 0);
}
#endif
foreach (PdfName key in keys)
WriteDictionaryElement(writer, key);
if (Stream != null)
WriteDictionaryStream(writer);
writer.WriteEndObject();
}
示例4: WriteObject
/// <summary>
/// Writes the keyword «null».
/// </summary>
internal override void WriteObject(PdfWriter writer)
{
writer.WriteBeginObject(this);
writer.WriteRaw(" null ");
writer.WriteEndObject();
}
示例5: WriteObject
internal override void WriteObject(PdfWriter writer)
{
writer.WriteBeginObject(this);
int count = Elements.Count;
for (int idx = 0; idx < count; idx++)
{
PdfItem value = Elements[idx];
value.WriteObject(writer);
}
writer.WriteEndObject();
}
示例6: WriteObject
/// <summary>
/// Writes the name including the leading slash.
/// </summary>
internal override void WriteObject(PdfWriter writer)
{
writer.WriteBeginObject(this);
writer.Write(new PdfName(_value));
writer.WriteEndObject();
}