Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

pdf.c.patch

By: myra_nelson on May 28th, 2011  |  syntax: None  |  size: 0.60 KB  |  views: 81  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- pdf.c.orig  2011-05-28 15:03:21.758498636 -0500
  2. +++ pdf.c       2011-05-28 15:03:51.043135161 -0500
  3. @@ -407,11 +407,9 @@
  4.         poppler_page_get_size (PDFPage, &width, &height);
  5.         queue->rect->x2 = width;
  6.         queue->rect->y2 = height;
  7. -#ifdef HAVE_POPPLER_1_4_1
  8. -       page = poppler_page_get_selected_text (PDFPage, POPPLER_SELECTION_LINE, queue->rect);
  9. -#else
  10. -    page = poppler_page_get_text (PDFPage, POPPLER_SELECTION_LINE, queue->rect);
  11. -#endif
  12. +
  13. +    page = poppler_page_get_text (PDFPage);
  14. +
  15.         set_text (queue->ebook, page, queue->lines, queue->pagenums, queue->hyphens);
  16.         g_free (page);
  17.         queue->c++;