2 "gs -sDEVICE=bmp16m -r%f -q -sOutputFile=- " \
3 "-dNOPAUSE -dBATCH -dTextAlphaBits=4 -dGraphicsAlphaBits=4 %s"
5 #define GS_BITMAP_DPI 144 // was: (DEFAULT_ZOOM * 72)
7 #define TMPDIR_TEMPLATE "/tmp/xournalpdf.XXXXXX"
9 #define PDFTOPPM_ARGV \
10 { "pdftoppm", "-q", "-f", pageno_str, "-l", pageno_str, \
11 "-r", dpi_str, pdf_filename, ppm_root, NULL }
13 #define PDFTOPPM_PRINTING_DPI 150
15 void new_journal(void);
16 gboolean save_journal(const char *filename);
17 gboolean close_journal(void);
18 gboolean open_journal(char *filename);
20 struct Background *attempt_load_pix_bg(char *filename, gboolean attach);
21 GList *attempt_load_gv_bg(char *filename);
22 struct Background *attempt_screenshot_bg(void);
24 void cancel_bgpdf_request(struct BgPdfRequest *req);
25 void add_bgpdf_request(int pageno, double zoom, gboolean printing);
26 void bgpdf_spawn_child(void);
27 void shutdown_bgpdf(void);
28 gboolean init_bgpdf(char *pdfname, gboolean create_pages, int file_domain);
30 void bgpdf_create_page_with_bg(int pageno, struct BgPdfPage *bgpg);
31 void bgpdf_update_bg(int pageno, struct BgPdfPage *bgpg);
34 void update_mru_menu(void);
35 void new_mru_entry(char *name);
36 void delete_mru_entry(int which);
37 void save_mru_list(void);