我正在尝试使用PDFBox2.0.13在PDF中插入条形码。我试着使用How to add Code128 Barcode image to existing pdf using pdfbox(1.8.12) with barcode4j library?中给出的BufferedImage,但是它使用了"new PDPixelMap(doc,bim)“这个PDPixelMap在2.0.x中被弃用了。我的问题是,在不使用PDPixelMap的情况下,如何使用PDFBox2.0.13中提供的API(可能是PDPixelMap的替代品)在PDF中插入条形码?将是伟大的,如果代码片段提供。
在尝试合并多个PDF文档时,我遇到以下错误...
PDFMerger failed with the following exception:
org.apache.pdfbox.exceptions.WrappedIOException
at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:278)
at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1220)
at org.apache.pdfbox.pdmodel.P
Qt(even Qt6) QSvgRenderer不支持SVG(也称为剪辑路径) Qt网站上写道: Qt supports the static features of SVG 1.2 Tiny. ECMA scripts and DOM manipulation are currently not supported. 有没有其他方法可以将SVG(或PDF中的矢量图形)插入PDF,pdfbox?inkscape?谢谢
是否有方法向Apache中添加额外的字体样式?
我们目前正尝试在我们的系统中打印PDF(目前正在使用)。我一直在研究各种替代品(,,)
我们希望使用一个免费的GPL兼容库,因此我们倾向于使用pdfbox。我已经能够写一些样本代码打印出来的pdf‘工作’。见下文:
PDDocument doc;
try {
doc = PDDocument.load("test.pdf");
doc.print();
} catch (Exception e) {
// Come up with better thing to do on
我想在PDF内容的一个句子中添加一个单词。
例如:
This is a sample content.
我想在这个输出的内容中插入一个单词。
This is a nice sample content.
这是我在互联网上找到的itextPdf的示例代码。假设内容已经存在,我们希望通过在句子中添加文本来修改它。
try {
//Create PdfReader instance.
PdfReader pdfReader =
new PdfReader(SRC);
//Create PdfStamper instan
对于我的Java项目,我需要列出PDF页面的所有命名目的地。
PDF及其命名的目的地是用LaTeX (使用)创建的,例如:
\documentclass[12pt]{article}
\usepackage{hyperref}
\begin{document}
\hypertarget{myImportantString}{} % the anchor/named destination to be extracted "myImportantString"
Empty example page
\end{document}
如何使用PDFBox库版本2.0.11
从PDF文档读取页面时出错。此页面包含用字体(AAAAAC+Code3de9)完成的条形码。只有在使用renderImage函数时才会出现此错误。
我使用了pdfbox-app的2.0.17版本。
*déc. 02, 2019 9:34:13 AM org.apache.pdfbox.pdmodel.font.PDCIDFontType2 <init>
AVERTISSEMENT: Could not read embedded OTF for font AAAAAC+Code3de9
java.io.IOException: Illegal seek position: 2483