0 Replies Latest reply on Jun 15, 2010 7:43 AM by c_shearer_cooper

    How can I insert a comment into a PDF stream?

    c_shearer_cooper

      I am creating a PDF  stream manually (long story, don't ask) and when
      debugging the  resulting PDF by looking at the raw PDF stream, it would
      be really  handy if I could tell which parts of the PDF stream came
      from which  parts of my code, so I was trying to find some way to
      insert  comments into the PDF stream.

       

      I came up with this:
      (my comment here)  pop
      which I thought would create a string object on the stack and  then pop
      it off, but this PDF code still confuses Adobe Reader.

       

      Any  suggestions on how I can insert stuff into the PDF stream that
      doesn't affect Adobe Reader, but lets me distinguish different parts
      of the PDF stream?

       

      Thanks,
      Chris