Is there any way to shift / move the text inside existing pdf page to some other position?
Like there is some text at area x=100, y=100, w=100, h=100 and i want to move it to x=50, y=200, w=100, h=100.
I did a lot of research and it seems iTextSharp
cannot do that. PDFSharp
claims that it can be done but i could not find any examples.
One way is to make a bitmap of specific area of the text i want to shift, draw white rectangle over that area and insert bitmap at new location. I don't want to use this solution as i work with large pdf files with more than 1K pages where each page has to be altered.
What i found out is that i need to find a way to change text-positioning operators (text matrix and the text state parameters) which is not that simple.
Anyone has any ideas?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…