3 Copyright 1996-2006 Han The Thanh <thanh@pdftex.org>
4 Copyright 2006-2012 Taco Hoekwater <taco@luatex.org>
6 This file is part of LuaTeX.
8 LuaTeX is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 2 of the License, or (at your
11 option) any later version.
13 LuaTeX is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16 License for more details.
18 You should have received a copy of the GNU General Public License along
19 with LuaTeX; if not, see <http://www.gnu.org/licenses/>. */
24 # include "dvi/dvigen.h"
26 # include "pdf/pdfpage.h"
28 typedef image_dict
*idict_entry
;
29 idict_entry
*idict_array
;
31 void new_img_pdfstream_struct(image_dict
*);
32 image
*new_image(void);
33 image_dict
*new_image_dict(void);
34 void free_image_dict(image_dict
* p
);
35 void read_img(image_dict
* p
);
36 void scan_pdfximage(PDF pdf
);
37 void scan_pdfrefximage(PDF pdf
);
38 scaled_whd
tex_scale(scaled_whd nat
, scaled_whd tex
);
39 scaled_whd
scale_img(image_dict
*, scaled_whd
, int);
40 void write_img(PDF
, image_dict
*);
41 void pdf_write_image(PDF pdf
, int n
);
42 void check_pdfstream_dict(image_dict
*);
43 void write_pdfstream(PDF
, image_dict
*);
44 void idict_to_array(image_dict
*);
45 void dumpimagemeta(void);
46 void undumpimagemeta(PDF
, int, int);
47 scaled_whd
scan_alt_rule(void);
48 size_t read_file_to_buf(PDF pdf
, FILE * f
, size_t len
);
49 void pdf_dict_add_img_filename(PDF pdf
, image_dict
* idict
);