Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Piatok, 29. marec 2024

Súbor: [Platon] / cpdf / parse.h (stiahnutie)

Revízia 1.9, Sun Nov 10 16:58:30 2002 UTC (21 years, 4 months ago) by lynx

Zmeny od 1.8: +8 -5 [lines]

Some minor changes in parse.c
Added alpha-beta-gama-delta drawing code.

#ifndef PARSE_H
#define PARSE_H
#define MAXNAMELEN 128
#define XREFLINE 20

#define UNPARSED 0
#define PAGE 1
#define PAGES 2
#define XOBJECT 3
#define ENCODING 4
#define CATALOG 5
#define CONTENT 6
#define NOTYPE 7

#define EOFSIZE 8        /* size of %%EOF + newline */

int obj_count;
int *page_tree;
int current_page;

struct trailer {
    long prev;
    int root;
    int encrypt;
    int info;
} trailer;

struct contents {
    int length;
    char filter;
    unsigned 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];
    short rotate;
    int parent;
};

struct catalog {
    int pages;
};

struct object {
    int type;
    char *unparsed;
    void *parsed;
} **object;

char *hex(char *buffer);
char *name(char *buffer);
char **array(char *buffer);
void parse_xref(void);
void add_obj(char *s);
char *read_obj(long offset,int *obj_num);
void parse_pdf(void);
void fill_page(int page_num);
struct contents *fill_contents(int page_num,char dict);
struct resources *fill_resources(int page_num,char dict);
char get_filternum(char *filter);
#endif

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok