Giter VIP home page Giter VIP logo

Comments (14)

astefanutti avatar astefanutti commented on June 4, 2024

I don't have Linux boxes readily available at the moment though I'll be uploading corresponding binaries once I have access to them.

from decktape.

gavincarr avatar gavincarr commented on June 4, 2024

I've got a working CentOS7 version here if you'd like it posted somewhere.

from decktape.

astefanutti avatar astefanutti commented on June 4, 2024

@gavincarr definitely!

Would you mind creating a PR into the gh-pages branch to upload it into something like downloads/phantomjs-linux-centos7-amd64. Just make sure you've run UPX to compress the binary size.

from decktape.

gavincarr avatar gavincarr commented on June 4, 2024

@astefanutti Done: #16

from decktape.

astefanutti avatar astefanutti commented on June 4, 2024

@gavincarr Thanks a lot!

@VinceZK could you please test the uploaded version for Linux CentOS 7 and close that issue if that works OK.

from decktape.

VinceZK avatar VinceZK commented on June 4, 2024

@astefanutti , I tested in my CentOS6.4 (Sorry I do not have CentOS7 right now), the following error reports: "error while loading shared libraries: libpng15.so.15: cannot open shared object file: No such file or directory"

I thought some lib is missing. And I found the original CentOS binary is 35MB, while @gavincarr gives the binary with 14MB.

from decktape.

gavincarr avatar gavincarr commented on June 4, 2024

@VinceZK CentOS6 only comes with libpng12.so.0, so the C7 version won't work for you. I'll try and build a C6 version over the weekend. Are you using 64-bit or 32-bit?

My original binary was around 35MB as well, but running it through UPX dropped it down to 14MB.

from decktape.

VinceZK avatar VinceZK commented on June 4, 2024

@gavincarr Thanks for the clarifying. My CentOS6 runs on 64-bit machine.

from decktape.

gavincarr avatar gavincarr commented on June 4, 2024

@astefanutti I've just created a pull request with a CentOS6 x86_64 build of phantomjs, if you could merge when you get a chance.

@VinceZK Could you test this version once it's merged?

Thanks.

from decktape.

astefanutti avatar astefanutti commented on June 4, 2024

@gavincarr I've just merged it. Thanks a lot!

from decktape.

VinceZK avatar VinceZK commented on June 4, 2024

 @astefanutti I tested CentOS6 x86_64 version, and got some situations. When printing some pages, the size is not right. It doesn't happen in normal phantomjs binary.
@gavincarr At first, I think it's only the CentOS6 binary. Then I tested MAC binary, the same problem.

You can find the difference from the 2 attached images. The first is the normal binary, and the second is the desktape bianry. I am sorry the page is in Chinese, but you can figure out the problem. And if you try to print page ' http://expressjs.com/ ', the same problem occurred. So it is not because of some specific pages cause the problem, it seems more a general issue.
normal_phantomjs_binary
desktape_phantomjs_binary

from decktape.

VinceZK avatar VinceZK commented on June 4, 2024

And I tested to snapshot images (.png), it works fine. So it only effects .pdf snapshots.

from decktape.

astefanutti avatar astefanutti commented on June 4, 2024

@VinceZK I've tested the examples/rasterize.js script with the PhantomJS 2.0.0 Mac OS X official binary and the DeckTape Mac OS X binary and cannot see any differences for PDF output on http://expressjs.com/ and http://www.jrj.com.cn. What version of PhantomJS normal binary are you using?

That being said, DeckTape is meant to be used to export HTML presentations to PDF. If this issue is meant to be provided with PhantomJS Linux CentOS binary from the PhantomJS official code line, I would suggest you contact PhantomJS project support directly.

from decktape.

VinceZK avatar VinceZK commented on June 4, 2024

@astefanutti I did more tests, and found if you set page format to 'A4', it will reproduce the error.
Please try command line: $phantomjs examples/rasterize.js http://www.jrj.com.cn out.pdf A4

Maybe DeckTape is free of the issue. But the official code line has no confirmed schedule to the "link" issue. I'd like to take some time to figure it out based on your code line.

Thanks anyway:-)

from decktape.

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.