Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 585248 Details for
Bug 822407
pdf2djvu doesn't build with poppler-0.20.0
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch fixing building of pdf2djvu with poppler-0.20.0
pdf2djvu-0.7.4-poppler-0.20.0.patch (text/plain), 2.10 KB, created by
Marek Kašík
on 2012-05-17 15:01:03 UTC
(
hide
)
Description:
patch fixing building of pdf2djvu with poppler-0.20.0
Filename:
MIME Type:
Creator:
Marek Kašík
Created:
2012-05-17 15:01:03 UTC
Size:
2.10 KB
patch
obsolete
>--- pdf2djvu-0.7.4/pdf2djvu.cc 2010-06-12 22:20:36.000000000 +0200 >+++ pdf2djvu-0.7.4/pdf2djvu.cc 2012-05-17 16:56:50.000000000 +0200 >@@ -1334,15 +1334,27 @@ static int xmain(int argc, char * const > doc.reset(new pdf::Document(config.file_name)); > assert(out1.get() == NULL); > out1.reset(new pdf::Renderer(paper_color, config.monochrome)); >+#if POPPLER_VERSION < 1900 > out1->startDoc(doc->getXRef()); >+#else >+ out1->startDoc(doc.get()); >+#endif > assert(outm.get() == NULL); > outm.reset(new MutedRenderer(paper_color, config.monochrome, *page_files)); >+#if POPPLER_VERSION < 1900 > outm->startDoc(doc->getXRef()); >+#else >+ outm->startDoc(doc.get()); >+#endif > assert(outs.get() == NULL); > if (!config.monochrome) > { > outs.reset(new MutedRenderer(paper_color, config.monochrome, *page_files)); >+#if POPPLER_VERSION < 1900 > outs->startDoc(doc->getXRef()); >+#else >+ outs->startDoc(doc.get()); >+#endif > } > } > assert(doc.get() != NULL); >--- pdf2djvu-0.7.4/pdf-backend.cc 2010-06-12 22:20:36.000000000 +0200 >+++ pdf2djvu-0.7.4/pdf-backend.cc 2012-05-17 16:56:31.000000000 +0200 >@@ -32,6 +32,7 @@ > * ====================== > */ > >+#if POPPLER_VERSION < 1900 > static void poppler_error_handler(int pos, char *message, va_list args) > { > std::string format; >@@ -49,6 +50,22 @@ static void poppler_error_handler(int po > } > error_log << std::endl; > } >+#else >+static void poppler_error_handler(void *data, ErrorCategory category, int pos, char *msg) >+{ >+ if (pos >= 0) >+ { >+ error_log << >+ string_printf(_("PDF error (%d): %s"), pos, msg); >+ } >+ else >+ { >+ error_log << >+ string_printf(_("PDF error: %s"), msg); >+ } >+ error_log << std::endl; >+} >+#endif > > pdf::Environment::Environment(const char *argv0) > { >@@ -61,7 +78,11 @@ pdf::Environment::Environment(const char > Cwd cwd(argv0_dir_name); > #endif > globalParams = new GlobalParams(); >+#if POPPLER_VERSION < 1900 > setErrorFunction(poppler_error_handler); >+#else >+ setErrorCallback(poppler_error_handler, NULL); >+#endif > } > > void pdf::Environment::set_antialias(bool value)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 822407
: 585248