phantomjs icon indicating copy to clipboard operation
phantomjs copied to clipboard

capture not showing radio/checkboxes on forms when outputting pdf on os x

Open brianyoungblood opened this issue 12 years ago • 9 comments

PDF version of screen capture not showing radio or checkboxes on os x.

phantomjs 1.9.7 OS X 10.9.2 (13C64)

#shows checkbox and radios
phantomjs rasterize.js 'http://www.w3schools.com/html/html_forms.asp' formtest.png

#does not show checkbox and radios
phantomjs rasterize.js 'http://www.w3schools.com/html/html_forms.asp' formtest.pdf

brianyoungblood avatar Mar 21 '14 19:03 brianyoungblood

+1 Also having an issue with PDF rendering checkbox/radios

cryptojuice avatar Jun 04 '14 19:06 cryptojuice

+1 same issue

jonstorer avatar Jun 16 '14 18:06 jonstorer

still not showing radios and checkboxes. disappointed.

sharkboy1976 avatar Jul 10 '14 12:07 sharkboy1976

Similar behaviour here, checkboxes are shown but misplaced. See also here: https://groups.google.com/forum/#!topic/phantomjs/lxP7Am3nGUc

fbernhard avatar Jul 11 '14 08:07 fbernhard

Similar. Checkboxes are not shown at all on Meteor application running in Mac OS X.

butlera1 avatar Sep 18 '14 22:09 butlera1

As mentioned here, styling select controls with css (by adding a border, for example) causes them to be rendered correctly. This may work with checkboxes, if you have control over the rendered content.

coryfklein avatar Jan 23 '15 23:01 coryfklein

Thanks, coryfklein.

Adding a border with CSS does not fix my particular issue.

We want to create "retina display" screenshots using the following style injection on page.evaluate()

document.body.style.webkitTransformOrigin = "0% 0%";
document.body.style.webkitTransform = "scale(2)";
document.body.style.width = "50%";

The "scale(2)" property causes the checkboxes and radio buttons to be displayed at the wrong place, i.e. they are not transformed. Without these transformations it works fine.

fbernhard avatar Jan 24 '15 10:01 fbernhard

The radio buttons do seem to show up using phantoms 2.0 with pdf output. I'm using osx and phantomjs 2.0 binaries downloaded from the site.

cmdcolin avatar Feb 11 '15 18:02 cmdcolin

Tested with phantom 2.0 on OS X Yosemite 10.10.5. Radio is rendering now.

brianyoungblood avatar Dec 02 '15 03:12 brianyoungblood