After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 489774 - failure to get poppler_page_render* function produces blank PS files
failure to get poppler_page_render* function produces blank PS files
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
2.20.x
Other All
: Normal major
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-10-24 12:17 UTC by Darren Kenny
Modified: 2007-10-24 14:27 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description Darren Kenny 2007-10-24 12:17:49 UTC
Please describe the problem:
Printing a PDF document (or using preview) results in a PS file being generated with the correct number of pages, but nothing on each page.

Steps to reproduce:
Select Print..., click on Print Preview.

Actual results:
You see the correct number of pages but they are blank in the print preview.

Expected results:
Should be able to see the rendered document.

Does this happen every time?
Yes

Other information:
This only happens if, for any reason, during the configure of evince, it fails to locate either of the symbols in the poppler library:

    poppler_page_render
    poppler_page_render_for_printing

Later in the PDF backend code you have :

#ifdef HAVE_POPPLER_PAGE_RENDER_FOR_PRINTING
    poppler_page_render_for_printing (poppler_page, ctx->cr);
#else
#ifdef HAVE_POPPLER_PAGE_RENDER
    poppler_page_render (poppler_page, ctx->cr);
#endif
#endif

In this case described, you end up doing nothing here - and as such everything looks fine until later you try to print, but nothing comes out.

Ideally this should fail at compile time - either in the configure script or later by using a #error like:

#ifdef HAVE_POPPLER_PAGE_RENDER_FOR_PRINTING
    poppler_page_render_for_printing (poppler_page, ctx->cr);
#else
#ifdef HAVE_POPPLER_PAGE_RENDER
    poppler_page_render (poppler_page, ctx->cr);
#else
#error "Must have either poppler_page_render_for_printing or poppler_page_render"
#endif
#endif

The configure script would seem to be the best place to do this since it's where 
you need to look to fix the issue.
Comment 1 Carlos Garcia Campos 2007-10-24 14:27:10 UTC
Fixed in svn trunk and gnome-2.20 branch. Thank you very much for reporting.