void IWritable.Write(StreamWriter writer)
 {
     writer.Write("<<\n");
     foreach (KeyValuePair <string, object> entry in _dict)
     {
         writer.Write($"/{entry.Key} ");
         WriterHelper.WriteObject(writer, entry.Value);
         writer.Write("\n");
     }
     writer.Write(">>\n");
 }
Exemple #2
0
        internal void WriteDefinition(StreamWriter writer)
        {
            if (Index == 0)
            {
                return;
            }

            writer.Write($"{Index} 0 obj\n");
            WriterHelper.WriteObject(writer, Target);
            writer.Write("endobj\n");
        }