2 Header file for pdfswf.cc.
4 Part of the swftools package.
6 Copyright (c) 2001 Matthias Kramm <kramm@quiss.org>
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
28 void pdfswf_addfont(char*filename);
29 void pdfswf_addfontdir(char*dir);
30 void pdfswf_addlanguagedir(char*dir);
32 void pdfswf_setparameter(char*name, char*value);
34 typedef struct _pdf_doc
42 pdf_doc_t* pdf_init(char*filename, char*userPassword);
43 void pdf_destroy(pdf_doc_t*doc);
45 typedef struct _swf_output
51 swf_output_t* swf_output_init();
52 void swf_output_startframe(swf_output_t*, int width, int height);
53 void swf_output_endframe(swf_output_t*);
54 void swf_output_setparameter(swf_output_t*, char*name, char*value);
55 int swf_output_save(swf_output_t*, char*filename);
56 void* swf_output_get(swf_output_t*, char*name);
57 void swf_output_preparepage(swf_output_t*, int pdfpage, int outputpage);
58 void swf_output_destroy(swf_output_t*page);
60 typedef struct _pdf_page
67 pdf_page_t* pdf_getpage(pdf_doc_t*doc, int page);
68 void pdf_page_render(pdf_page_t*page, swf_output_t*output);
69 void pdf_page_rendersection(pdf_page_t*page, swf_output_t*output, int x, int y, int x1, int y1, int x2, int y2);
70 void pdf_page_destroy(pdf_page_t*page);
72 typedef struct _pdf_page_info
74 int xMin, yMin, xMax, yMax;
80 pdf_page_info_t* pdf_page_getinfo(pdf_page_t*page);
81 void pdf_page_info_destroy(pdf_page_info_t*info);