-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗? #2227
Comments
@niklasvh ,你好,html2canvas使用时有个问题咨询下,dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗 |
我也遇到同样的问题 你解决了吗 |
你解决了吗 |
|
你最多截了几页,我scale值是1,最多只能截12页半 |
结合jspdf下载pdf第8页半后面无背景色,你碰见这种问题了吗 |
是的,不过我当时12页以后才没有背景色
后来没用这个库了,在server端生成了。
…------------------ 原始邮件 ------------------
发件人: "wayne1125"<notifications@github.com>;
发送时间: 2020年8月10日(星期一) 中午11:24
收件人: "niklasvh/html2canvas"<html2canvas@noreply.github.com>;
抄送: "Everyone Is No.1"<570558710@qq.com>; "Comment"<comment@noreply.github.com>;
主题: Re: [niklasvh/html2canvas] dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗? (#2227)
@niklasvh ,你好,html2canvas使用时有个问题咨询下,dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗
你解决了吗
最后导出图片时,将dom的scale属性设置为1初始状态就可以(相当于还原dom到100%)
你最多截了几页,我scale值是1,最多只能截12页半
结合jspdf下载pdf第8页半后面无背景色,你碰见这种问题了吗
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
用服务端生成的思路是怎样的,或则有其他js插件吗
发自我的iPhone
…------------------ 原始邮件 ------------------
发件人: ju5tdo1t <notifications@github.com>
发送时间: 2020年8月10日 11:43
收件人: niklasvh/html2canvas <html2canvas@noreply.github.com>
抄送: wayne1125 <784209195@qq.com>, Comment <comment@noreply.github.com>
主题: 回复:[niklasvh/html2canvas] dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗? (#2227)
是的,不过我当时12页以后才没有背景色
后来没用这个库了,在server端生成了。
------------------&nbsp;原始邮件&nbsp;------------------
发件人: "wayne1125"<notifications@github.com&gt;;
发送时间: 2020年8月10日(星期一) 中午11:24
收件人: "niklasvh/html2canvas"<html2canvas@noreply.github.com&gt;;
抄送: "Everyone Is No.1"<570558710@qq.com&gt;; "Comment"<comment@noreply.github.com&gt;;
主题: Re: [niklasvh/html2canvas] dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗? (#2227)
@niklasvh ,你好,html2canvas使用时有个问题咨询下,dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗
你解决了吗
最后导出图片时,将dom的scale属性设置为1初始状态就可以(相当于还原dom到100%)
你最多截了几页,我scale值是1,最多只能截12页半
结合jspdf下载pdf第8页半后面无背景色,你碰见这种问题了吗
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
我目前采用的是按浏览器打印去做的,他里面有保存pdf的功能,这个保存的体积小而且画质也清晰,就是多了不保存的操作,我们产品不接收
发自我的iPhone
…------------------ 原始邮件 ------------------
发件人: ju5tdo1t <notifications@github.com>
发送时间: 2020年8月10日 11:43
收件人: niklasvh/html2canvas <html2canvas@noreply.github.com>
抄送: wayne1125 <784209195@qq.com>, Comment <comment@noreply.github.com>
主题: 回复:[niklasvh/html2canvas] dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗? (#2227)
是的,不过我当时12页以后才没有背景色
后来没用这个库了,在server端生成了。
------------------&nbsp;原始邮件&nbsp;------------------
发件人: "wayne1125"<notifications@github.com&gt;;
发送时间: 2020年8月10日(星期一) 中午11:24
收件人: "niklasvh/html2canvas"<html2canvas@noreply.github.com&gt;;
抄送: "Everyone Is No.1"<570558710@qq.com&gt;; "Comment"<comment@noreply.github.com&gt;;
主题: Re: [niklasvh/html2canvas] dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗? (#2227)
@niklasvh ,你好,html2canvas使用时有个问题咨询下,dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗
你解决了吗
最后导出图片时,将dom的scale属性设置为1初始状态就可以(相当于还原dom到100%)
你最多截了几页,我scale值是1,最多只能截12页半
结合jspdf下载pdf第8页半后面无背景色,你碰见这种问题了吗
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
我用的nodejs puppeteer库
…------------------ 原始邮件 ------------------
发件人: "niklasvh/html2canvas" <notifications@github.com>;
发送时间: 2020年8月10日(星期一) 中午11:47
收件人: "niklasvh/html2canvas"<html2canvas@noreply.github.com>;
抄送: "Everyone Is No.1"<570558710@qq.com>;"Comment"<comment@noreply.github.com>;
主题: Re: [niklasvh/html2canvas] dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗? (#2227)
我目前采用的是按浏览器打印去做的,他里面有保存pdf的功能,这个保存的体积小而且画质也清晰,就是多了不保存的操作,我们产品不接收
发自我的iPhone
------------------ 原始邮件 ------------------
发件人: ju5tdo1t <notifications@github.com&gt;
发送时间: 2020年8月10日 11:43
收件人: niklasvh/html2canvas <html2canvas@noreply.github.com&gt;
抄送: wayne1125 <784209195@qq.com&gt;, Comment <comment@noreply.github.com&gt;
主题: 回复:[niklasvh/html2canvas] dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗? (#2227)
是的,不过我当时12页以后才没有背景色
后来没用这个库了,在server端生成了。
------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
发件人: "wayne1125"<notifications@github.com&amp;gt;;
发送时间: 2020年8月10日(星期一) 中午11:24
收件人: "niklasvh/html2canvas"<html2canvas@noreply.github.com&amp;gt;;
抄送: "Everyone Is No.1"<570558710@qq.com&amp;gt;; "Comment"<comment@noreply.github.com&amp;gt;;
主题: Re: [niklasvh/html2canvas] dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗? (#2227)
@niklasvh ,你好,html2canvas使用时有个问题咨询下,dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗
你解决了吗
最后导出图片时,将dom的scale属性设置为1初始状态就可以(相当于还原dom到100%)
你最多截了几页,我scale值是1,最多只能截12页半
结合jspdf下载pdf第8页半后面无背景色,你碰见这种问题了吗
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
前端把页面内容怎么传到server,能给点思路吗?我用nodejs试试,非常感谢🙏
发自我的iPhone
…------------------ 原始邮件 ------------------
发件人: ju5tdo1t <notifications@github.com>
发送时间: 2020年8月10日 11:52
收件人: niklasvh/html2canvas <html2canvas@noreply.github.com>
抄送: wayne1125 <784209195@qq.com>, Comment <comment@noreply.github.com>
主题: 回复:[niklasvh/html2canvas] dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗? (#2227)
我用的nodejs&nbsp;puppeteer库
------------------&nbsp;原始邮件&nbsp;------------------
发件人: "niklasvh/html2canvas" <notifications@github.com&gt;;
发送时间:&nbsp;2020年8月10日(星期一) 中午11:47
收件人:&nbsp;"niklasvh/html2canvas"<html2canvas@noreply.github.com&gt;;
抄送:&nbsp;"Everyone Is No.1"<570558710@qq.com&gt;;"Comment"<comment@noreply.github.com&gt;;
主题:&nbsp;Re: [niklasvh/html2canvas] dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗? (#2227)
我目前采用的是按浏览器打印去做的,他里面有保存pdf的功能,这个保存的体积小而且画质也清晰,就是多了不保存的操作,我们产品不接收
发自我的iPhone
------------------ 原始邮件 ------------------
发件人: ju5tdo1t <notifications@github.com&amp;gt;
发送时间: 2020年8月10日 11:43
收件人: niklasvh/html2canvas <html2canvas@noreply.github.com&amp;gt;
抄送: wayne1125 <784209195@qq.com&amp;gt;, Comment <comment@noreply.github.com&amp;gt;
主题: 回复:[niklasvh/html2canvas] dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗? (#2227)
是的,不过我当时12页以后才没有背景色
后来没用这个库了,在server端生成了。
------------------&amp;amp;nbsp;原始邮件&amp;amp;nbsp;------------------
发件人: "wayne1125"<notifications@github.com&amp;amp;gt;;
发送时间: 2020年8月10日(星期一) 中午11:24
收件人: "niklasvh/html2canvas"<html2canvas@noreply.github.com&amp;amp;gt;;
抄送: "Everyone Is No.1"<570558710@qq.com&amp;amp;gt;; "Comment"<comment@noreply.github.com&amp;amp;gt;;
主题: Re: [niklasvh/html2canvas] dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗? (#2227)
@niklasvh ,你好,html2canvas使用时有个问题咨询下,dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗
你解决了吗
最后导出图片时,将dom的scale属性设置为1初始状态就可以(相当于还原dom到100%)
你最多截了几页,我scale值是1,最多只能截12页半
结合jspdf下载pdf第8页半后面无背景色,你碰见这种问题了吗
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
后端只需要一个url就可以保存了
…------------------ 原始邮件 ------------------
发件人: "niklasvh/html2canvas" <notifications@github.com>;
发送时间: 2020年8月10日(星期一) 中午11:54
收件人: "niklasvh/html2canvas"<html2canvas@noreply.github.com>;
抄送: "Everyone Is No.1"<570558710@qq.com>;"Comment"<comment@noreply.github.com>;
主题: Re: [niklasvh/html2canvas] dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗? (#2227)
前端把页面内容怎么传到server,能给点思路吗?我用nodejs试试,非常感谢🙏
发自我的iPhone
------------------ 原始邮件 ------------------
发件人: ju5tdo1t <notifications@github.com&gt;
发送时间: 2020年8月10日 11:52
收件人: niklasvh/html2canvas <html2canvas@noreply.github.com&gt;
抄送: wayne1125 <784209195@qq.com&gt;, Comment <comment@noreply.github.com&gt;
主题: 回复:[niklasvh/html2canvas] dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗? (#2227)
我用的nodejs&amp;nbsp;puppeteer库
------------------&amp;nbsp;原始邮件&amp;nbsp;------------------
发件人: "niklasvh/html2canvas" <notifications@github.com&amp;gt;;
发送时间:&amp;nbsp;2020年8月10日(星期一) 中午11:47
收件人:&amp;nbsp;"niklasvh/html2canvas"<html2canvas@noreply.github.com&amp;gt;;
抄送:&amp;nbsp;"Everyone Is No.1"<570558710@qq.com&amp;gt;;"Comment"<comment@noreply.github.com&amp;gt;;
主题:&amp;nbsp;Re: [niklasvh/html2canvas] dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗? (#2227)
我目前采用的是按浏览器打印去做的,他里面有保存pdf的功能,这个保存的体积小而且画质也清晰,就是多了不保存的操作,我们产品不接收
发自我的iPhone
------------------ 原始邮件 ------------------
发件人: ju5tdo1t <notifications@github.com&amp;amp;gt;
发送时间: 2020年8月10日 11:43
收件人: niklasvh/html2canvas <html2canvas@noreply.github.com&amp;amp;gt;
抄送: wayne1125 <784209195@qq.com&amp;amp;gt;, Comment <comment@noreply.github.com&amp;amp;gt;
主题: 回复:[niklasvh/html2canvas] dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗? (#2227)
是的,不过我当时12页以后才没有背景色
后来没用这个库了,在server端生成了。
------------------&amp;amp;amp;nbsp;原始邮件&amp;amp;amp;nbsp;------------------
发件人: "wayne1125"<notifications@github.com&amp;amp;amp;gt;;
发送时间: 2020年8月10日(星期一) 中午11:24
收件人: "niklasvh/html2canvas"<html2canvas@noreply.github.com&amp;amp;amp;gt;;
抄送: "Everyone Is No.1"<570558710@qq.com&amp;amp;amp;gt;; "Comment"<comment@noreply.github.com&amp;amp;amp;gt;;
主题: Re: [niklasvh/html2canvas] dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗? (#2227)
@niklasvh ,你好,html2canvas使用时有个问题咨询下,dom元素通过css属性scale进行放大缩小时,使用html2canvas截图有问题(图不完整),这个是插件本身不支持这个属性吗
你解决了吗
最后导出图片时,将dom的scale属性设置为1初始状态就可以(相当于还原dom到100%)
你最多截了几页,我scale值是1,最多只能截12页半
结合jspdf下载pdf第8页半后面无背景色,你碰见这种问题了吗
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
好的,谢谢 |
你好,我用这个插件一直没成功,也没查到原因,能麻烦你给个demo示例吗?感谢🙏 |
Please make sure you are testing with the latest release of html2canvas.
Old versions are not supported and issues reported for them will be closed.
Please follow the general troubleshooting steps first:
Bug reports:
Please replace this line with a brief summary of your issue AND if possible an example on jsfiddle.
Specifications:
The text was updated successfully, but these errors were encountered: