]>
git.ipfire.org Git - thirdparty/cups.git/blob - pdftops/Parser.h
1 //========================================================================
5 // Copyright 1996-2003 Glyph & Cog, LLC
7 //========================================================================
14 #ifdef USE_GCC_PRAGMAS
20 //------------------------------------------------------------------------
22 //------------------------------------------------------------------------
28 Parser(XRef
*xrefA
, Lexer
*lexerA
);
33 // Get the next object from the input stream.
34 Object
*getObj(Object
*obj
,
35 Guchar
*fileKey
= NULL
, int keyLength
= 0,
36 int objNum
= 0, int objGen
= 0);
39 Stream
*getStream() { return lexer
->getStream(); }
41 // Get current position in file.
42 int getPos() { return lexer
->getPos(); }
46 XRef
*xref
; // the xref table for this PDF file
47 Lexer
*lexer
; // input stream
48 Object buf1
, buf2
; // next two tokens
49 int inlineImg
; // set when inline image data is encountered
51 Stream
*makeStream(Object
*dict
);