]> git.donarmstrong.com Git - xournal.git/blob - src/xo-file.h
Fix various bugs; use poppler instead of pdftoppm
[xournal.git] / src / xo-file.h
1 #define DEFAULT_SHORTEN_MENUS \
2   "optionsAntialiasBG optionsProgressiveBG optionsLeftHanded"
3
4 #define GS_CMDLINE \
5   "gs -sDEVICE=bmp16m -r%f -q -sOutputFile=- " \
6   "-dNOPAUSE -dBATCH -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 %s"
7
8 extern int GS_BITMAP_DPI, PDFTOPPM_PRINTING_DPI;
9
10 #define TMPDIR_TEMPLATE "/tmp/xournalpdf.XXXXXX"
11
12 #define PDFTOPPM_ARGV \
13      { "pdftoppm", "-q", "-f", pageno_str, "-l", pageno_str, \
14        "-r", dpi_str, pdf_filename, ppm_root, NULL }
15
16 void new_journal(void);
17 gboolean save_journal(const char *filename);
18 gboolean close_journal(void);
19 gboolean open_journal(char *filename);
20
21 struct Background *attempt_load_pix_bg(char *filename, gboolean attach);
22 GList *attempt_load_gv_bg(char *filename);
23 struct Background *attempt_screenshot_bg(void);
24
25 void cancel_bgpdf_request(struct BgPdfRequest *req);
26 void add_bgpdf_request(int pageno, double zoom);
27 gboolean bgpdf_scheduler_callback(gpointer data);
28 void shutdown_bgpdf(void);
29 gboolean init_bgpdf(char *pdfname, gboolean create_pages, int file_domain);
30
31 void bgpdf_create_page_with_bg(int pageno, struct BgPdfPage *bgpg);
32 void bgpdf_update_bg(int pageno, struct BgPdfPage *bgpg);
33
34 void init_mru(void);
35 void update_mru_menu(void);
36 void new_mru_entry(char *name);
37 void delete_mru_entry(int which);
38 void save_mru_list(void);
39
40 void init_config_default(void);
41 void load_config_from_file(void);
42 void save_config_to_file(void);