summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBryce Harrington <bryce@bryceharrington.org>2007-12-31 20:20:13 +0000
committerbryce <bryce@users.sourceforge.net>2007-12-31 20:20:13 +0000
commit04e795c4de48c8276d09c528d980754ca5accb0a (patch)
treeca5bae23d155dc922b96f9633d360ca8b38a33d4 /src
parentwin32 installer, do not remove user files (diff)
downloadinkscape-04e795c4de48c8276d09c528d980754ca5accb0a.tar.gz
inkscape-04e795c4de48c8276d09c528d980754ca5accb0a.zip
whitespace cleanup
(bzr r4351)
Diffstat (limited to 'src')
-rw-r--r--src/extension/internal/pdf-input-cairo.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/extension/internal/pdf-input-cairo.cpp b/src/extension/internal/pdf-input-cairo.cpp
index 2b38481e1..90ac9294b 100644
--- a/src/extension/internal/pdf-input-cairo.cpp
+++ b/src/extension/internal/pdf-input-cairo.cpp
@@ -1,6 +1,6 @@
/*
* Simple PDF import extension using libpoppler and Cairo's SVG surface.
- *
+ *
* Authors:
* miklos erdelyi
*
@@ -25,7 +25,7 @@
#include <poppler/glib/poppler.h>
#include <poppler/glib/poppler-document.h>
#include <poppler/glib/poppler-page.h>
-
+
namespace Inkscape {
namespace Extension {
namespace Internal {
@@ -36,7 +36,7 @@ SPDocument *
PdfInputCairo::open(Inkscape::Extension::Input * mod, const gchar * uri) {
gchar* filename_uri = g_filename_to_uri(uri, NULL, NULL);
-
+
PopplerDocument* document = poppler_document_new_from_file(filename_uri, NULL, NULL);
if (document == NULL)
return NULL;
@@ -49,19 +49,19 @@ PdfInputCairo::open(Inkscape::Extension::Input * mod, const gchar * uri) {
cairo_surface_t* surface = cairo_svg_surface_create_for_stream(Inkscape::Extension::Internal::_write_ustring_cb,
output, width, height);
cairo_t* cr = cairo_create(surface);
-
+
poppler_page_render(page, cr);
cairo_show_page(cr);
-
+
cairo_destroy(cr);
cairo_surface_destroy(surface);
SPDocument * doc = sp_document_new_from_mem(output->c_str(), output->length(), TRUE);
-
+
delete output;
g_object_unref(page);
g_object_unref(document);
-
+
return doc;
}