1 //========================================================================
5 // Copyright 1996-2003 Glyph & Cog, LLC
7 //========================================================================
12 #ifdef USE_GCC_PRAGMAS
18 //------------------------------------------------------------------------
20 //------------------------------------------------------------------------
25 Parser(XRef
*xrefA
, Lexer
*lexerA
);
29 // Get the next object from the input stream.
30 Object
*getObj(Object
*obj
,
31 Guchar
*fileKey
= NULL
, int keyLength
= 0,
32 int objNum
= 0, int objGen
= 0);
35 Stream
*getStream() { return lexer
->getStream(); }
37 // Get current position in file.
38 int getPos() { return lexer
->getPos(); }
42 XRef
*xref
; // the xref table for this PDF file
43 Lexer
*lexer
; // input stream
44 Object buf1
, buf2
; // next two tokens
45 int inlineImg
; // set when inline image data is encountered
47 Stream
*makeStream(Object
*dict
);
48 void shift(int objNum
= -1);