Rozdiely pre cpdf/parse.h medzi verziami 1.1 a 1.2
| verzia 1.1, 2002/09/14 12:42:40 |
verzia 1.2, 2002/10/03 18:30:03 |
|
|
| #ifndef PARSE_H |
#ifndef PARSE_H |
| #define PARSE_H |
#define PARSE_H |
| struct dictionary { |
#define MAXNAMELEN 128 |
| int type; |
#define XREFLINE 20 |
| int subtype; |
|
| int objnum; |
#define UNPARSED 0 |
| int lenght; |
#define PAGE 1 |
| (void *(*filter)) (int,uint8_t *,unsigned long,void *,unsigned long) |
#define PAGES 2 |
| |
#define XOBJECT 3 |
| |
#define ENCODING 4 |
| |
#define CATALOG 5 |
| |
#define CONTENT 6 |
| |
#define NOTYPE 7 |
| |
struct trailer { |
| |
int size; |
| |
long prev; |
| |
int root; |
| |
int info; |
| |
char *id[2]; |
| |
char *next; |
| |
}; |
| |
|
| |
struct contents { |
| |
int length; |
| |
char filter; |
| char *stream; |
char *stream; |
| }; |
}; |
| |
|
| |
struct resources { |
| |
int type; |
| |
}; |
| |
|
| |
struct pages { |
| |
int count; |
| |
int parent; |
| |
int *kids; |
| |
}; |
| |
|
| |
struct page { |
| |
struct contents contents; |
| |
struct resources resources; |
| |
short mediabox[4]; |
| |
int parent; |
| |
}; |
| |
|
| |
struct object { |
| |
int type; |
| |
char *unparsed; |
| |
void *parsed; |
| |
} **object; |
| |
|
| |
char *hex(char *buffer); |
| |
char *name(char *buffer); |
| |
char **array(char *buffer); |
| |
void xref(void); |
| |
void add_obj(char *s); |
| |
void read_obj(long offset); |
| |
int parse_pdf(void); |
| #endif |
#endif |
Platon Group <platon@platon.sk> http://platon.sk/
|
|