当我使用 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;
itextsharp ×1