Пример #1
0
        private void WriteTrailer(HPDF_Stream stream)
        {
            LibLogger.Debug(this.GetType(), "WriteTrailer");

            int maxObjId = (int)Entries.Count + StartOffset;

            Trailer.HPDF_Dict_AddNumber("Size", maxObjId);

            if (Prev != null)
            {
                Trailer.HPDF_Dict_AddNumber("Prev", Prev.Addr);
            }

            stream.HPDF_Stream_WriteStr(HPDF_Utils.ParseString("trailer\\012"));

            //trailer.HPDF_Dict_Write ( stream, null);
            stream.HPDF_Dict_Write(Trailer, null as HPDF_Encrypt);

            stream.HPDF_Stream_WriteStr(HPDF_Utils.ParseString("\\012startxref\\012"));

            stream.HPDF_Stream_WriteUInt((uint)Addr);

            stream.HPDF_Stream_WriteStr(HPDF_Utils.ParseString("\\012%%EOF\\012"));
        }
Пример #2
0
 public void WriteFn(HPDF_Stream stream)
 {
     LibLogger.Debug(this.GetType(), "WriteFn");
 }
Пример #3
0
 public void InternalSaveToStream(HPDF_Stream stream)
 {
     LibLogger.Debug(this.GetType(), "InternalSaveToStream");
 }