pdfbox

Из публичных источников

Apache PDFBox — библиотека с открытым кодом на Java для создания, редактирования и извлечения содержимого PDF-документов.

БиблиотекаКатегория: Библиотеки и SDK · PDF и документыOpen sourceданные проверены 15 окт. 2026 г.

Обзор

Программная работа с PDF-файлами сложна: документы нужно создавать, редактировать существующие и надёжно извлекать из них текст и другое содержимое. Apache PDFBox — это библиотека с открытым исходным кодом на Java, которая решает эти задачи. Она позволяет разработчикам создавать новые PDF-документы, изменять существующие и извлекать содержимое прямо из своего кода. PDFBox также включает несколько утилит командной строки для типичных задач с PDF и поддерживает шифрование PDF-документов через Java Cryptography Architecture и библиотеки Bouncy Castle. Проект распространяется под лицензией Apache License 2.0 и развивается в рамках Apache Software Foundation. PDFBox предназначен для Java-разработчиков, которым нужна обработка PDF внутри собственных приложений и сервисов. Библиотека подключается как зависимость Maven и требует Java 11 или новее для сборки. Документация, примеры и поддержка сообщества доступны на сайте проекта и в списках рассылки. Темы: java, pdf, извлечение содержимого, библиотека. Репозиторий является зеркалом проекта Apache PDFBox и размещён на GitHub. Ограничение: документация проекта отмечает, что при извлечении текста из некоторых PDF может возвращаться внутренняя кодировка глифов, а для правильного порядка текста нужно включить сортировку.
  • content
  • java
  • library
  • pdf
  • pdfbox

Установка

Команды только показываются, маркетплейс их не выполняет. Сверяйтесь с официальной документацией.
  • Сборка из исходниковИз публичных источниковиз метаданных каталога

    Сборка из исходников: проверенного рецепта сборки нет — следуйте инструкциям репозитория.

    github.com/apache/pdfbox ↗

Совместимость

«Неизвестно» значит, что доказательств не найдено, а не что продукт несовместим.
ПлатформаСтатусАрхитектураДоказательствоУверенность
Node.jsНеизвестно———
PythonНеизвестно———
JVMНеизвестно———
.NETНеизвестно———
WebAssemblyНеизвестно———
Web browserНеизвестно———

Релизы

проверено 29 окт. 2026 г.
В источнике релизы не найдены.

Профиль качества

алгоритм quality-v1.0 · оценено 15 окт. 2026 г.
Оценка качества73
Оценка риска0
Уверенность 1.00
Оценка качества и оценка риска — разные показатели. Высокое качество не гарантирует безопасность.

Составляющие оценки

Поддержка · 2020
last activity 0 days ago
Документация · 1515
README 6605 chars, description present
Готовность к использованию · 150
install instructions: no; releases: no
Метаданные · 1010
4/4 of description, homepage, license, topics
Релизы · 102
0 release(s)
Точность категории · 1010
classifier confidence 1
Популярность · 109
3128 stars (log-dampened, 10k = max)
Ясность лицензии · 55
SPDX Apache-2.0
Сообщество · 53
issues disabled/unknown, 968 forks

Лицензия

Apache-2.0
Лицензия известнапо данным хостинга репозитория

Это статус политики каталога, а не юридическое заключение.

Источники

github.com/apache/pdfboxОсновной★ 3 128 звёздактивность 15 окт. 2026 г.Основной репозиторий · Уверенность 1.00

Отзывы

Войдите, чтобы написать отзыв

Отзывов пока нет.

Альтернативы

tikaПохожий
Apache Tika — открытая библиотека и инструмент на Java для определения типа файлов и извлечения метаданных и текста из более чем тысячи форматов, включая PDF, PPT и XLS.Apache-2.0 · Библиотеки и SDK
itext-javaПохожий
iText Core — открытая Java-библиотека для создания, редактирования, подписи и проверки PDF-документов со встроенным движком верстки и поддержкой PDF/A и PDF/UA.Библиотеки и SDK
doclingПохожий
Docling — библиотека на Python с открытым кодом (лицензия MIT), которая переводит PDF, DOCX, PPTX, HTML и другие документы в структурированные данные для генеративного ИИ.MIT · Библиотеки и SDK
PyMuPDFПохожий
PyMuPDF — высокопроизводительная библиотека Python для извлечения данных, анализа, конвертации и редактирования PDF и других документов на базе движка MuPDF.AGPL-3.0 · Библиотеки и SDK
pdf.jsПохожий
pdf.js — открытая библиотека для просмотра PDF на JavaScript, которая разбирает и отображает PDF-файлы прямо в браузере с помощью HTML5, лицензия Apache-2.0.Apache-2.0 · Библиотеки и SDK
mupdfПохожий
MuPDF — открытая библиотека для просмотра и конвертации документов PDF, XPS и электронных книг с небольшим объёмом кода.AGPL-3.0 · Библиотеки и SDK

README

Из apache/pdfbox · лицензия Apache-2.0 · загружено 29 окт. 2026 г.

[codeql java]

Apache PDFBox

The Apache PDFBox library is an open source Java tool for working with PDF documents. This project allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents. PDFBox also includes several command line utilities. PDFBox is published under the Apache License, Version 2.0.

PDFBox is a project of the Apache Software Foundation.

Binary Downloads

You can download binary versions for releases currently under development or older releases from our Download Page.

Build

You need Java 11 (or higher) and Maven 3 to build PDFBox. The recommended build command is:

mvn clean install

The default build will compile the Java sources and package the binary classes into jar packages. See the Maven documentation for all the other available build options.

Contribute

There are various ways to help us improve PDFBox.

Support

Please follow the guidelines at our Support Page.

If you have questions about how to use PDFBox do ask on the Users Mailing List. This will get you help from the entire community.

The PDFBox examples and the test code in the sources will also provide additional information.

And there are additional resources available on sites such as Stack Overflow.

If you are sure you have found a bug the please report the issue in our Issue Tracker.

Known Limitations and Problems

See the Issue Tracker for the full list of known issues and requested features. Some of the more common issues are:

  1. You get text like "G38G43G36G51G5" instead of what you expect when you are extracting text. This is because the characters are a meaningless internal encoding that point to glyphs that are embedded in the PDF document. The only way to access the text is to use OCR. This may be a future enhancement.

  2. You get an error message like java.io.IOException: Can't handle font width this MIGHT be due to the fact that you don't have the org/apache/pdfbox/resources directory in your classpath. The easiest solution is to include the apache-pdfbox-x.x.x.jar in your classpath.

  3. You get text that has the correct characters, but in the wrong order. This mght be because you have not enabled sorting. The text in PDF files is stored in chunks and the chunks do not need to be stored in the order that they are displayed on a page. By default, PDFBox does not sort the text.

License (see also LICENSE.txt)

Collective work: Copyright 2015 The Apache Software Foundation.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

 https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Export control

This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See https://www.wassenaar.org/ for more information.

The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this Apache Software Foundation distribution makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception (see the BIS Export Administration Regulations, Section 740.13) for both object code and source code.

The following provides more details on the included cryptographic software:

Apache PDFBox uses the Java Cryptography Architecture (JCA) and the Bouncy Castle libraries for handling encryption in PDF documents.

Открыть репозиторий ↗