I'm running wkhtmltopdf 0.12.4 on Mac OS 10.11.6. When I try to run the basic example "wkhtmltopdf http://google.com google.pdf", though, I'm getting an unusual output. Where I'm expecting something like this:
(PDF generated directly from Chrome), I'm instead getting this:
It seems odd to me that the default output should be so far off, but I've tried some options as well (including --disable-smart-shrinking) with no luck. Would appreciate any direction you can offer!
Same here with Mac OS 10.11.6 WKHTMLTOPDF v 0.12.4.
Using --lowquality is the only thing that seems to resolve the "tiny output" issue.
Default wkhtmltopdf output without --lowquality:
screenshot
With --lowquality, "tiny output" issue is fixed (and works with additional options like increasing resolution via --viewport-size):
--lowquality screenshot
I had the same problem, using wkhtmltopdf version 0.12.4 on a Mac installed via homebrew. I uninstalled that and tried version 0.12.3, downloaded from http://wkhtmltopdf.org/, and now I have normal size output.
I have been trying to use the 0.12.4 version on Mac OS 10.13.3.
Adding some information about this issue.
This is a known issue in 0.12.4 version. https://github.com/wkhtmltopdf/wkhtmltopdf/issues/3241
It has been fixed in a commit but not yet released as part of 0.12.4
https://github.com/wkhtmltopdf/wkhtmltopdf/commit/1c0e72d2faa6da026edc139fac97fcda43535fd3
the 'lowquality' flag fix discussed above is the fastest way to resolve this OR you can install the 0.12.5 version if you are an advanced user. https://github.com/wkhtmltopdf/wkhtmltopdf/blob/master/CHANGELOG.md
To solve problem install wkpdftohtml via
brew install Caskroom/cask/wkhtmltopdf
I encountered this issue when running wkhtmltopdf on very large screens, and found that specifying print media-type instead of screen media-type, i.e. via --print-media-type, resolved the issue.
For example:
wkhtmltopdf --print-media-type http://google.com google.pdf
Related
I am encountering the following messages after upgrading to macOS Catalina on my terminal whenever I start up a new terminal:
/Users/<myname>/Downloads/google-cloud-sdk/path.bash.inc:3: = not found
/Users/<myname>/Downloads/google-cloud-sdk/completion.bash.inc:56: command not found: complete
/Users/<myname>/Downloads/google-cloud-sdk/completion.bash.inc:81: command not found: complete
/Users/<myname>/Downloads/google-cloud-sdk/completion.bash.inc:82: command not found: complete
I have re-run the ./install.sh command and gcloud commands work fine. How do I remove the above messages, or is there something else that is still missing?
EDIT:
Upgraded to macOS 10.15.4 and installed google-cloud-sdk is from here, the macOS 64-bit version.
I solved the same issue by following the instruction: https://gist.github.com/dwchiang/10849350. Simply, change the path.bash.inc into path.zsh.inc in ~/.bash_profile, same as the completion.zsh.inc.
This seems to be an issue with the fact that Cloud SDK is assuming that you are using bash while Catalina now uses Zsh by default as mentioned here. You may be able to remove the error by changing to bash by following the instructions over the link I shared, however, I can not test this out at the moment.
I also recommend you to report this issue to Google directly over at their issue reporting page so it can be reviewed and corrected if possible.
Additionally, make sure that you are using the latest Cloud SDK version by running the gcloud components update so that you can better report this on the issue.
I hope you find this information useful.
I have installed wkhtmltopdf however the styling is not working.
I using a mac with OSX 10.13.2 and wkhtmltopdf version is 0.12.1.
I have tried 0.12.4 & restarted odoo. However, it never worked. Is there any special configurations that needs to be done ?
Answering my own question for anyone else having this issue. (using the search terms i thought of because they didn't bring up the answers for me).
Trying to install and run middleman following the getting started guide on their website with Mac OS X 10.9.2. When trying to run bundle install getting errors about openSSL and event machine.
Gist of Errors.
Refrence to an answer that someone on IRC helped me find.
Aparently this is caused by a mismatch in expected versions with something called Clang which is part of the Xcode tools for mac. The update to Xcode tools causes this to fail. Using the command:
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future bundle install
seems to work to resolve this issue.
We're installing a bunch of GNU tools and just upgraded xcode to 4.3 and downloaded and installed all the gcc tools through it.
Now we're trying to install wget, which requires a few other packges, some of which are complaining that /usr/local/share/info does not exist.
Where is the correct or preferred location for things to install under Lion / xcode? /Developer/usr/local?
I've found a number of good reference here but none that answer this specific quandary.
Suggestion greatly - GREATLY! - appreciated.
Have you tried MacPorts, which has a port for wget?
I have a fresh installation of Lion. I need to install ImageMagick (IM) to use the "identify" command line tool to search for corrupt images in folders that have thousands of time lapse images.
I have installed IM from the Mac OS X Binary Release, word for word based on these directions.
I have Xcode 4.2 installed from the Mac App Store.
X11 appears to be installed default with Lion. X11 about shows: XQuartz 2.6.3 (xorg-server 1.10.3).
The problem is that IM's installation appears successful but every time I use the "identify" command it returns "identify: command not found".
I have searched and searched (within stack overflow, google, etc.) and found MANY MANY articles on both subjects (IM and detecting corrupt images), but I've found nothing that helps me out.
I have also tried installing MacPorts and that didn't work either. And it freaked me out as one of it's dependencies was downloaded from Facebook.net (WHAT?!). I did a fresh install of Lion after that happened.
Thanks for your time.
Installing ImageMagick with Homebrew worked for me:
brew install imagemagick