cordova-screenshot icon indicating copy to clipboard operation
cordova-screenshot copied to clipboard

How to save the screenshot of whole page which height is greater than the device screen height

Open zhaoxiaoming99 opened this issue 7 years ago • 7 comments

Now I have a feature that want to save a screenshot for current page, but my page's height(e.g. 2000px) is much bigger than the device height(e.g. 1200px), there is a vertical scroll-bar in my page, but I want to capture all of the page content into one image (the screenshot image height should be the app offset height 2000px not the device height 1200px), is that possible?

zhaoxiaoming99 avatar Dec 12 '16 08:12 zhaoxiaoming99

+1

DEG-7 avatar Jan 06 '17 18:01 DEG-7

+1

sveta2192 avatar Feb 08 '17 09:02 sveta2192

+1

Luis16287 avatar Feb 14 '17 17:02 Luis16287

+1

alanhe421 avatar May 29 '17 17:05 alanhe421

please refer: https://github.com/gitawego/cordova-screenshot

zhaoxiaoming99 avatar Jun 02 '17 01:06 zhaoxiaoming99

sorry, refer this one: https://github.com/tsayen/dom-to-image

zhaoxiaoming99 avatar Jun 02 '17 01:06 zhaoxiaoming99

@zhaoxiaoming99 It's a good solution!

alanhe421 avatar Jul 23 '17 08:07 alanhe421