1 //========================================================================
5 // Copyright 1996-2003 Glyph & Cog, LLC
7 //========================================================================
9 // EL (01/2000): added the 'cutObj' parameter, to help handling
17 #ifdef USE_GCC_PRAGMAS
23 //------------------------------------------------------------------------
25 //------------------------------------------------------------------------
31 Parser(XRef
*xrefA
, Lexer
*lexerA
, GBool cutObj
= gFalse
);
36 // Get the next object from the input stream.
37 Object
*getObj(Object
*obj
,
38 Guchar
*fileKey
= NULL
, int keyLength
= 0,
39 int objNum
= 0, int objGen
= 0);
42 Stream
*getStream() { return lexer
->getStream(); }
44 // Get current position in file.
45 int getPos() { return lexer
->getPos(); }
49 XRef
*xref
; // the xref table for this PDF file
50 Lexer
*lexer
; // input stream
51 Object buf1
, buf2
; // next two tokens
52 int inlineImg
; // set when inline image data is encountered
54 Stream
*makeStream(Object
*dict
);