當前位置: 首頁>>代碼示例>>C#>>正文


C# PdfWriter.WriteBeginObject方法代碼示例

本文整理匯總了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();
 }
開發者ID:bossaia,項目名稱:alexandrialibrary,代碼行數:9,代碼來源:PdfStringObject.cs

示例2: WriteObject

 /// <summary>
 /// Writes the real literal.
 /// </summary>
 internal override void WriteObject(PdfWriter writer)
 {
   writer.WriteBeginObject(this);
   writer.Write(this.value);
   writer.WriteEndObject();
 }
開發者ID:bossaia,項目名稱:alexandrialibrary,代碼行數:9,代碼來源:PdfRealObject.cs

示例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();
    }
開發者ID:AnthonyNystrom,項目名稱:Pikling,代碼行數:29,代碼來源:PdfDictionary.cs

示例4: WriteObject

 /// <summary>
 /// Writes the keyword «null».
 /// </summary>
 internal override void WriteObject(PdfWriter writer)
 {
   writer.WriteBeginObject(this);
   writer.WriteRaw(" null ");
   writer.WriteEndObject();
 }
開發者ID:bossaia,項目名稱:alexandrialibrary,代碼行數:9,代碼來源:PdfNullObject.cs

示例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();
 }
開發者ID:AnthonyNystrom,項目名稱:Pikling,代碼行數:11,代碼來源:PdfArray.cs

示例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();
 }
開發者ID:Sl0vi,項目名稱:PDFsharp,代碼行數:9,代碼來源:PdfNameObject.cs


注:本文中的PdfSharp.Pdf.IO.PdfWriter.WriteBeginObject方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。