如何在PDF中移动文本块(使用PDFBox) [英] How to move block of text in a PDF (using PDFBox)

查看:309
本文介绍了如何在PDF中移动文本块(使用PDFBox)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试使用PDFBox生成PDF进行手动覆盖,我想知道是否有可能在我的PDF中获取精确的文本区域并将其(向左)移动,具体取决于我的手动厚度(取决于我的手册的页数)

I'm currently trying to generate PDF with PDFBox for some manual cover and I was wondering if it was possible to take a precise zone of text in my PDF and move it (to the left) depending on my manuel thickness (which will be determined by the number of pages my manual will have)

我设法创建PDF很好,但是我没有找到只获取一段文本的方法.

I manage to create my PDF just fine, but I did not find a way to get only a block of text.

PDFBox是否可以这样做?

Is it possible to do so with PDFBox?

注意:我试图在网络上搜索其他问题,但是没有一个有用的.

Note : I tried to search on the web and on other questions, but none of them were useful.

谢谢

推荐答案

就像我在评论中说的那样,我们决定使用所需的信息来创建新的PDF,而不是尝试编辑现有的PDF.

Like i said in a comment, we decided to create a new PDF with the informations needed instead of trying to edit an existing one.

我们尝试编辑PDF,但从本质上讲,当我们决定从头开始时,这样做更加容易.

We tried to edit the PDF but in vein and when we decided to start from scratch, it was way more easier to do so.

感谢那些试图帮助我的人!

Thanks to the people who tried to help me !

这篇关于如何在PDF中移动文本块(使用PDFBox)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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