Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

PhantomJs 2.0.0 - is zoomFactor supposed to work with pdfs? #13048

Closed
togakangaroo opened this issue Mar 3, 2015 · 4 comments
Closed

PhantomJs 2.0.0 - is zoomFactor supposed to work with pdfs? #13048

togakangaroo opened this issue Mar 3, 2015 · 4 comments
Labels

Comments

@togakangaroo
Copy link

According to the documentation the zoomFactor parameter is supposed to control zoom.

Previously this parameter was documented as working only with pdf rasterization but had strange effects that I couldn't quite pin down. In various issues I gathered that its behaviour was somewhat unspecified and possibly broken.

Now everything is different. The docs explicitly show a png example, and my experiments with pdf have no effect!

  > phantomjs.exe W.\rasterize.js http://google.com w:/temp/foo.png null 0.2
  > phantomjs.exe W.\rasterize.js http://google.com w:/temp/foo.png null 5

this works fine

  > phantomjs.exe W.\rasterize.js http://google.com w:/temp/foo.pdf null 0.2
  > phantomjs.exe W.\rasterize.js http://google.com w:/temp/foo.pdf null 5

this has no effect and outputs teh same thing as no zoomFactor

@kelvin22
Copy link

kelvin22 commented Mar 4, 2015

Similar findings...

with no zoomFactor set:
phantomJs 2.0 renders a more zoomed in pdf than phantomJs 1.9.8

When zoomFactor is set, I get mixed results, eg. zoomFactor = 0.25 does not result in a thumbnail, but a very very large version!

Note, I'm rendering Highcharts charts to pdf.

@thomasbachem
Copy link

Duplicate of #12685

@togakangaroo
Copy link
Author

This issue is also about the docs being inconsistent

@stale
Copy link

stale bot commented Dec 30, 2019

Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!

@stale stale bot closed this as completed Dec 30, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants