Changeset View
Changeset View
Standalone View
Standalone View
generators/poppler/generator_pdf.cpp
Show First 20 Lines • Show All 1995 Lines • ▼ Show 20 Line(s) | 1988 | { | |||
---|---|---|---|---|---|
1996 | } | 1996 | } | ||
1997 | return false; | 1997 | return false; | ||
1998 | } | 1998 | } | ||
1999 | 1999 | | |||
2000 | bool PDFGenerator::save( const QString &fileName, SaveOptions options, QString *errorText ) | 2000 | bool PDFGenerator::save( const QString &fileName, SaveOptions options, QString *errorText ) | ||
2001 | { | 2001 | { | ||
2002 | Q_UNUSED(errorText); | 2002 | Q_UNUSED(errorText); | ||
2003 | Poppler::PDFConverter *pdfConv = pdfdoc->pdfConverter(); | 2003 | Poppler::PDFConverter *pdfConv = pdfdoc->pdfConverter(); | ||
2004 | | ||||
2005 | pdfConv->setOutputFileName( fileName ); | 2004 | pdfConv->setOutputFileName( fileName ); | ||
2006 | if ( options & SaveChanges ) | 2005 | if ( options & SaveChanges ) | ||
2007 | pdfConv->setPDFOptions( pdfConv->pdfOptions() | Poppler::PDFConverter::WithChanges ); | 2006 | pdfConv->setPDFOptions( pdfConv->pdfOptions() | Poppler::PDFConverter::WithChanges ); | ||
2008 | 2007 | | |||
2009 | QMutexLocker locker( userMutex() ); | 2008 | QMutexLocker locker( userMutex() ); | ||
2010 | 2009 | | |||
2011 | QHashIterator<Okular::Annotation*, Poppler::Annotation*> it( annotationsOnOpenHash ); | 2010 | QHashIterator<Okular::Annotation*, Poppler::Annotation*> it( annotationsOnOpenHash ); | ||
2012 | while ( it.hasNext() ) | 2011 | while ( it.hasNext() ) | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |