How to shift a PDF content up down left or right using iTextSharp

混江龙づ霸主 提交于 2019-12-13 04:47:03

问题


I am wanting to find a way that I can use iText sharp to move or "shift" the content of a PDF in any direction. I am currently adding overlay art to PDF's using the Stamper and such, and have noticed there is a positional coordiate system in the method "AddTemplate() like so:

AddTemplate(pageNumber, x, y)

The problem is that I need to use measurements of inches. Like a 10TH OF A INCH, ect. How can I do this and how much is the x/y corrdinate move n it's position at the current moment if I do :

AddTemplate(i, 15, 23)

Thanks in advance.

来源:https://stackoverflow.com/questions/23790532/how-to-shift-a-pdf-content-up-down-left-or-right-using-itextsharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!