Giter Site home page Giter Site logo

build failed on fedora 15 about apvlv HOT 4 CLOSED

naihe2010 avatar naihe2010 commented on July 29, 2024
build failed on fedora 15

from apvlv.

Comments (4)

naihe2010 avatar naihe2010 commented on July 29, 2024

diff --git a/src/ApvlvFile.cpp b/src/ApvlvFile.cpp
index c2a93fd..fe502bd 100644
--- a/src/ApvlvFile.cpp
+++ b/src/ApvlvFile.cpp
@@ -302,9 +302,14 @@ ApvlvPoses *ApvlvPDF::pagesearch (int pn, const char *str, bool reverse)

bool ApvlvPDF::pagetext (int pn, int x1, int y1, int x2, int y2, char **out)
{

  • PopplerRectangle rect = { x1, y1, x2, y2 };
    PopplerPage *page = poppler_document_get_page (mDoc, pn);
    +#if POPPLER_CHECK_VERSION(0, 15, 1)
  • PopplerRectangle rect = { x1, y2, x2, y1 };
  • *out = poppler_page_get_selected_text (page, POPPLER_SELECTION_WORD, &rect);
    +#else
  • PopplerRectangle rect = { x1, y1, x2, y2 };
    _out = poppler_page_get_text (page, POPPLER_SELECTION_WORD, &rect);
    +#endif
    if (_out != NULL)
    {
    return true;

from apvlv.

naihe2010 avatar naihe2010 commented on July 29, 2024

And, please read this link:
http://projects.archlinux.org/svntogit/community.git/tree/apvlv/repos/community-x86_64/PKGBUILD

from apvlv.

amzyang avatar amzyang commented on July 29, 2024

ok, this patch works fine, thanks.

On Wed, Jun 29, 2011 at 9:32 AM, naihe2010
[email protected]
wrote:

And, please read this link:
http://projects.archlinux.org/svntogit/community.git/tree/apvlv/repos/community-x86_64/PKGBUILD

Reply to this email directly or view it on GitHub:
#1 (comment)

from apvlv.

amzyang avatar amzyang commented on July 29, 2024

another issue:

It seems that apvlv didn't show the pdf index text.

(apvlv:10149): Gtk-CRITICAL **: IA__gtk_tree_store_append: assertion
`VALID_ITER (parent, tree_store)' failed

(apvlv:10149): Gtk-CRITICAL **: IA__gtk_tree_store_set_valist:
assertion `VALID_ITER (iter, tree_store)' failed

poppler-glib : 0.16.6

On Wed, Jun 29, 2011 at 10:16 AM, yang zou [email protected] wrote:

ok, this patch works fine, thanks.

On Wed, Jun 29, 2011 at 9:32 AM, naihe2010
[email protected]
wrote:

And, please read this link:
http://projects.archlinux.org/svntogit/community.git/tree/apvlv/repos/community-x86_64/PKGBUILD

Reply to this email directly or view it on GitHub:
#1 (comment)

from apvlv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.