Ejemplo n.º 1
0
        private void ReadStream(PdfStream st)
        {
            if (st.PeekLine() == "stream")
            {
                Utility.TraceLine("Read stream: ");
                st.ReadLine();
                while (!st.PeekLine(true, true).EndsWith("endstream") && !st.Eof)
                {
                    Utility.Trace("-");
                    m_stream.Append(st.ReadLineAsBytes());
                }
                Utility.TraceLine(" Done");
                st.ReadLine();

                // Sometimes there is a blank line after the endstream
                st.ConsumeWhitespace();
            }
        }