[cairo] Error compiling cairo from cvs poppler_page_render_to_pixbuf

Jeff Smith whydoubt at yahoo.com
Thu Dec 15 05:24:49 PST 2005



--- Mike Emmel <mike.emmel at gmail.com> wrote:
> pdf2png.c:81: warning: passing argument 8 of
> 'poppler_page_render_to_pixbuf' makes integer from pointer without a
> cast
> pdf2png.c:81: error: too few arguments to function
> 'poppler_page_render_to_pixbuf
> 
> 
> I looked in the header poppler-page.h and it has the signature
> 
> void       poppler_page_render_to_pixbuf   (PopplerPage        *page,
>                         int                 src_x,
>                         int                 src_y,
>                         int                 src_width,
>                         int                 src_height,
>                         double              scale,
>                         GdkPixbuf          *pixbuf,
>                         int                 dest_x,
>                         int                 dest_y);
> 
> The  popular.pc file has
> Name: poppler
> Description: PDF rendering library
> Version: 0.3.2

The API has changed a few times for this function, most recently with 0.4.1.  FYI, the
current API is

void poppler_page_render_to_pixbuf (
       PopplerPage        *page,
       int                 src_x,
       int                 src_y,
       int                 src_width,
       int                 src_height,
       double              scale,
       int                 rotation,
       GdkPixbuf          *pixbuf);

Perhaps someone should add a check for poppler >= 0.4.1.

 -- Jeff Smith

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the cairo mailing list