summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6825a60)
raw | patch | inline | side by side (parent: 6825a60)
author | Johan Engelen <goejendaagh@zonnet.nl> | |
Sat, 20 Feb 2010 23:55:27 +0000 (00:55 +0100) | ||
committer | Johan Engelen <goejendaagh@zonnet.nl> | |
Sat, 20 Feb 2010 23:55:27 +0000 (00:55 +0100) |
src/main.cpp | patch | blob | history |
diff --git a/src/main.cpp b/src/main.cpp
index 75e882e998672a27bebcbd7087b3f2205c75424d..6b87df1941bcdae4ee48bf2bbd8138a0d583c22d 100644 (file)
--- a/src/main.cpp
+++ b/src/main.cpp
SP_ARG_EXPORT_PS,
SP_ARG_EXPORT_EPS,
SP_ARG_EXPORT_PDF,
+ SP_ARG_EXPORT_PDF_LATEX,
#ifdef WIN32
SP_ARG_EXPORT_EMF,
#endif //WIN32
static gchar *sp_export_area = NULL;
static gboolean sp_export_area_drawing = FALSE;
static gboolean sp_export_area_page = FALSE;
+static gboolean sp_export_pdf_latex = FALSE;
static gchar *sp_export_width = NULL;
static gchar *sp_export_height = NULL;
static gchar *sp_export_id = NULL;
sp_export_area = NULL;
sp_export_area_drawing = FALSE;
sp_export_area_page = FALSE;
+ sp_export_pdf_latex = FALSE;
sp_export_width = NULL;
sp_export_height = NULL;
sp_export_id = NULL;
N_("Export document to a PDF file"),
N_("FILENAME")},
+ {"export-pdf-latex", 0,
+ POPT_ARG_NONE, &sp_export_pdf_latex, SP_ARG_EXPORT_PDF_LATEX,
+ N_("Export PDF without text. Besides the PDF, a LaTeX file is exported, putting the text on top of the PDF file. Include the result in LaTeX like: \\input{latexfile.tex}"),
+ NULL},
+
#ifdef WIN32
{"export-emf", 'M',
POPT_ARG_STRING, &sp_export_emf, SP_ARG_EXPORT_EMF,
|| !strncmp(argv[i], "--export-eps", 12)
|| !strcmp(argv[i], "-A")
|| !strncmp(argv[i], "--export-pdf", 12)
+ || !strncmp(argv[i], "--export-pdf-latex", 18)
#ifdef WIN32
|| !strcmp(argv[i], "-M")
|| !strncmp(argv[i], "--export-emf", 12)
@@ -1518,6 +1527,12 @@ static void do_export_ps_pdf(SPDocument* doc, gchar const* uri, char const* mime
(*i)->set_param_bool("textToPath", FALSE);
}
+ if (sp_export_pdf_latex) {
+ (*i)->set_param_bool("textToLaTeX", TRUE);
+ } else {
+ (*i)->set_param_bool("textToLaTeX", FALSE);
+ }
+
if (sp_export_ignore_filters) {
(*i)->set_param_bool("blurToBitmap", FALSE);
} else {