예제 #1
0
        internal void WriteDefinition(StreamWriter writer)
        {
            if (Index == 0)
            {
                return;
            }

            writer.Write($"{Index} 0 obj\n");
            WriterHelper.WriteObject(writer, Target);
            writer.Write("endobj\n");
        }
예제 #2
0
 void IWritable.Write(StreamWriter writer)
 {
     writer.Write("<<\n");
     foreach (var entry in _dict)
     {
         writer.Write($"/{entry.Key} ");
         WriterHelper.WriteObject(writer, entry.Value);
         writer.Write("\n");
     }
     writer.Write(">>\n");
 }