iText中contentByte类的setTextMatrix有什么作用? [英] What does setTextMatrix of contentByte class in iText do?

查看:122
本文介绍了iText中contentByte类的setTextMatrix有什么作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用iText而且我是新手。有几种情况我认为如果我知道自己在做什么,我可以用我的代码找出问题 - 我在不知道代码背后的工作情况下使用示例,甚至在我查看源代码时我无法想象程序员在想什么。

I am using iText and am very new to it. There have been several situations where I think I could have figured out the problem with my code if I knew what I was doing - I use examples without knowing the workings behind the code, and even as I look at the source I can't figure out what the programmer was thinking.

iText中contentByteArray的setTextMatrix有什么作用?我如何计算出我需要的参数值?

What does setTextMatrix of contentByteArray in iText do? And how do I figure out the parameter values I need?

例如:

cb.setTextMatrix(1, 0);


推荐答案

第一个参数设置左边距,第二个参数设置底边距。

first parameter sets left margin, second parameter sets bottom margin.

这篇关于iText中contentByte类的setTextMatrix有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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