Changeset 286

Show
Ignore:
Timestamp:
10/08/07 07:52:56 (12 months ago)
Author:
jordi
Message:

Based on a patch sent by Alex Dedul it is not possible to compile ePDFView with poppler version 0.6.0.

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r267 r286  
    4545    AC_DEFINE([HAVE_POPPLER_0_5_2], [1], [Define to 1 if you have Poppler version 0.5.2 or higher.]) 
    4646fi 
     47PKG_CHECK_EXISTS([poppler-glib >= 0.6.0], [have_poppler_060=yes]) 
     48if test "x$have_poppler_060" = "xyes"; then 
     49        AC_DEFINE([HAVE_POPPLER_0_6_0], [1], [Define to 1 if you have Poppler version 0.6.0 or higher.]) 
     50fi 
    4751 
    4852EPDFVIEW_PATH_CUPS([CUPS], [have_cups=yes]) 
  • trunk/src/PDFDocument.cxx

    r279 r286  
    686686    repairEmpty(textRect); 
    687687 
     688#if defined (HAVE_POPPLER_0_6_0) 
     689    gchar *text = poppler_page_get_text(page, POPPLER_SELECTION_GLYPH, 
     690            &textRect); 
     691#else // !HAVE_POPPLER_0_6_0 
    688692    gchar *text = poppler_page_get_text(page, &textRect); 
     693#endif // HAVE_POPPLER_0_6_0 
    689694    if(!text) 
    690695        goto cleanup; 
     
    722727 
    723728    //calc selection size 
     729#if defined (HAVE_POPPLER_0_6_0) 
     730    res = poppler_page_get_selection_region(page, getZoom(), 
     731            POPPLER_SELECTION_GLYPH, &rect); 
     732#else // !HAVE_POPPLER_0_6_0 
    724733    res = poppler_page_get_selection_region(page, getZoom(), &rect); 
     734#endif // HAVE_POPPLER_0_6_0 
    725735                              
    726736    //free some local data