Google Docs像素到英寸 [英] Google Docs Pixels to Inches

查看:99
本文介绍了Google Docs像素到英寸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道Google文档用于将像素转换为英寸的公式吗?

Is anyone aware of the formula google docs use to convert pixels to inches?

右键单击一个单元格,然后单击表格属性,您会看到下面的图像,请注意,我已经打开了萤火虫,您可以清楚地看到每个td都设置有px宽度.我可以使用英寸或毫米或同等尺寸来打印到pdf,但像素不太准确.

Right click on a cell and click table properties then you get the image below, note I have opened up firebug and you can clearly see each td is set with a px width. I can work with inches or mm or equivalent for printing to pdf but pixels is not so accurate.

这都是在客户端完成的,因此是javascript标签...

This is all done on client side hence the javascript tag...

推荐答案

Haroon,我不确定您要执行的操作,但PC显示器通常为96DPI,我认为Google会使用它们的缩放级别对其进行仿真在他们的文档中设置了webapp.

Haroon, I'm not sure what you're trying to do, but PC displays are generally 96DPI and I think google have emulated this with the zoom level they have set in their documents webapp.

我们可以通过关闭googledocs的屏幕截图并将其粘贴到绘画中,然后测量文档的宽度来确认它已经关闭.

We can confirm it's close, by taking a screenshot of googledocs and pasting it into paint, and then measuring the document width.

我的绘画选择工具得到796个像素.我正在使用210毫米宽的A4纵向页面.这意味着我们可以执行796/210来获得像素密度.

I got 796 pixels from my select tool in paint. I am using A4 portrait pages that are 210mm wide. This means we can do 796/210 to get our pixel density.

1 millimetre = 3.79 pixels

乘以2.54

1 inch = 96 pixels

我不知道这是否会与其他显示器分辨率或纸张尺寸保持一致,但是我希望它会接近!

I don't know if this will remain consistent with other monitor resolutions or paper sizes, but I would expect it would be close!

这篇关于Google Docs像素到英寸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆