pdf-input.cpp revision 76961e5d5ab3a7bd108ff8dbaf63d7b99a405c25
5053N/A#ifdef HAVE_CONFIG_H
5053N/A#ifdef HAVE_POPPLER
5053N/A#include "goo/GooString.h"
5053N/A#include "ErrorCodes.h"
5053N/A#include "GlobalParams.h"
5053N/A#include "pdf-input.h"
5053N/A#include "svg-builder.h"
5053N/A#include "pdf-parser.h"
5053N/A#include "document-private.h"
for ( int i = 0 ; i < num_crop_choices ; i++ ) {
_labelPrecision = Gtk::manage(new class Gtk::Label(_("Precision of approximation for gradient meshes:")));
this->set_modal(true);
this->set_resizable(true);
this->set_has_separator(true);
_previewArea->signal_expose_event().connect(sigc::mem_fun(*this, &PdfImportDialog::_onExposePreview));
_pageNumberSpin_adj->signal_value_changed().connect(sigc::mem_fun(*this, &PdfImportDialog::_onPageNumberChanged));
_fallbackPrecisionSlider_adj->signal_value_changed().connect(sigc::mem_fun(*this, &PdfImportDialog::_onPrecisionChanged));
#ifdef HAVE_POPPLER_CAIRO
#ifdef HAVE_POPPLER_CAIRO
if (_preview_output_dev) {
delete _preview_output_dev;
if (_cairo_surface) {
if (_thumb_data) {
delete _thumb_data;
show();
hide();
return TRUE;
return FALSE;
return _current_page;
for ( ; i < num_crop_choices ; i++ ) {
#ifdef HAVE_POPPLER_CAIRO
* Borrowed from libpoppler, from the file poppler-page.cc
unsigned char *data,
unsigned int *src;
for (y = 0; y < cairo_height; y++)
for (x = 0; x < cairo_width; x++)
src++;
#ifdef HAVE_POPPLER_CAIRO
if (!thumb) {
if (!back_pixmap) {
#ifdef HAVE_POPPLER_CAIRO
if (_thumb_data) {
delete _thumb_data;
if (_cairo_surface) {
if (!globalParams) {
delete pdf_doc;
return NULL;
delete dlg;
delete pdf_doc;
return NULL;
if (dot) {
*dot = 0;
double crop_setting;
switch (crop_choice) {
double color_delta;
delete pdf_parser;
delete builder;
delete pdf_doc;
return doc;
#include "../clear-n_.h"
"<mimetype>application/pdf</mimetype>\n"
"<mimetype>image/x-adobe-illustrator</mimetype>\n"