Giter Site home page Giter Site logo

Unable to write image about pdf-tools HOT 6 CLOSED

politza avatar politza commented on August 22, 2024
Unable to write image

from pdf-tools.

Comments (6)

cruegge avatar cruegge commented on August 22, 2024

After fiddling a bit with the libpng debugging output, the error message is "libpng error: no rows for png_write_image to write", which appears to be produced in the corresponding call in image_write.

from pdf-tools.

filologen avatar filologen commented on August 22, 2024

Same problem here with same setup om Arch linux. When I do "make all check" from the source I downloaded yesterday, I also get some error mesages, cf.:

Making all in src
make[1]: Entering directory '/home/ask/Downloads/pdf-tools-master/src'
make all-am
make[2]: Entering directory '/home/ask/Downloads/pdf-tools-master/src'
make[2]: Leaving directory '/home/ask/Downloads/pdf-tools-master/src'
make[1]: Leaving directory '/home/ask/Downloads/pdf-tools-master/src'
Making all in tests
make[1]: Entering directory '/home/ask/Downloads/pdf-tools-master/tests'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/ask/Downloads/pdf-tools-master/tests'
make[1]: Entering directory '/home/ask/Downloads/pdf-tools-master'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/home/ask/Downloads/pdf-tools-master'
Making check in src
make[1]: Entering directory '/home/ask/Downloads/pdf-tools-master/src'
make[1]: Leaving directory '/home/ask/Downloads/pdf-tools-master/src'
Making check in tests
make[1]: Entering directory '/home/ask/Downloads/pdf-tools-master/tests'
make check-TESTS
make[2]: Entering directory '/home/ask/Downloads/pdf-tools-master/tests'
make[3]: Entering directory '/home/ask/Downloads/pdf-tools-master/tests'
Parsing tar file...
Parsing tar file...done
Symbol's value as variable is void:ELF
Makefile:611: recipe for target 'install-basic.el.log' failed
make[3]: *** [install-basic.el.log] Error 255
make[3]: Leaving directory '/home/ask/Downloads/pdf-tools-master/tests'
Makefile:590: recipe for target 'check-TESTS' failed
make[2]: *** [check-TESTS] Error 2
make[2]: Leaving directory '/home/ask/Downloads/pdf-tools-master/tests'
Makefile:663: recipe for target 'check-am' failed
make[1]: *** [check-am] Error 2
make[1]: Leaving directory '/home/ask/Downloads/pdf-tools-master/tests'
Makefile:371: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1

from pdf-tools.

politza avatar politza commented on August 22, 2024

Ok, I added the with-file-modes macro.

As for the not-rendering problem, please try

echo renderpage:/absoulte/path/to/some.pdf:1:100 | ./epdfinfo /dev/stdout

in the pdf-tools elpa directory and see how that works.

As for the ELF error message: This is most likely due to an
unconfigured library path. ldconfig can help in this case.

from pdf-tools.

filologen avatar filologen commented on August 22, 2024

entering the command in the mentioned directory results in the following error message:

libpng error: no rows for png_write_image to write
Error writing png data
ERR
Unable to write image

from pdf-tools.

cruegge avatar cruegge commented on August 22, 2024

Looking at the libpng API, it seems as if the code is mixing the high- and low-level interfaces. png_write_png is supposed to write all info and rows in one go, while here this is done explicitly in the for-loop using png_write_row. If I remove the png_write_png call, I can load PDFs in Emacs.

from pdf-tools.

politza avatar politza commented on August 22, 2024

the code is mixing the high- and low-level interfaces.

Thanks. Yes, that shouldn't be there.

from pdf-tools.

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.