【发布时间】:2017-08-05 00:24:08
【问题描述】:
处理从我的应用程序在 GCP 中提交作业并在我的旧打印机中打印的任务,当我尝试使用这种格式的票时,一切都很好
{
"version":"1.0",
"print":{}
}
得到这样的输出
但我需要它从纸的开头开始并有一些边距,所以我发送带有边距的票
{
"version":"1.0",
"print":{
"copies":{
"copies":1
},
"page_orientation":{
"type":0
},
"margins": {
"top_microns":0,
"bottom_microns":0,
"left_microns":0,
"right_microns":0
}
}
有了这张票,我得到了一个这样的打印,开头是切边,所以我尝试给 left_microns 值(1,5,50,1000,10000, .5 , .9) 但没有任何效果。
另外,我尝试了 fit_to_page 选项仍然没有效果,任何想法如何设置自定义边距?谢谢
链接引用-> https://developers.google.com/cloud-print/docs/cdd#cjt
【问题讨论】:
-
你找到解决边距的方法了吗?
标签: android printing thermal-printer google-cloud-print gcp