小编pdp*_*pdp的帖子

使用 itextsharp 的文本 x 和 y 坐标

当我使用 itextsharp 提取文本时,我将获得文本的 x 和 y 坐标。通过使用这两个坐标,如果我根据 xy 位置将文本从 pdf 转换为 html 文本位置 chnages 。得到我使用的 x ,y 坐标

  • 矢量 curBaseline = renderInfo.GetBaseline().GetStartPoint();

  • float x=curBaseline[Vector.I1];

  • 浮动 y= curBaseline[Vector.I2];

    例如:当我使用上述方法提取文本时,说 x=42 和 y=659;

    " < span style=left:{0}px;bottom:{1}px;position:relative;\">",curBaseline[Vector.I1],curBaseline[Vector.I2]); 位置改变了。你能帮忙吗我如何将文本的默认位置设置为 pdf。?????

itextsharp

4
推荐指数
1
解决办法
5058
查看次数

标签 统计

itextsharp ×1