Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

iText for Java represents the next level of SDKs for developers that want to take advantage of the benefits PDF can bring. Equipped with a better document engine, high and low-level programming capabilities and the ability to create, edit and enhance PDF documents, iText can be a boon to nearly every workflow.

License

NotificationsYou must be signed in to change notification settings

itext/itext-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Logo iText

Maven CentralAGPL LicenseGitHub all releasesGitHub commit activity (branch)

iText Core/Community is a high-performance, battle-tested library that allows you to create, adapt,inspect and maintain PDF documents, allowing you to add PDFfunctionality to your software projects with ease. It is also available for .NET (C#).

The key features of iText Core/Community are:

  • Core library:
    • PDF creation with the use of our layout engine
    • PDF manipulation, e.g. merging multiple PDFs into one, adding new content, ...
    • PDF digital signing
    • PDF form creation and manipulation
    • Working with PDF/A documents
    • Working with PDF/UA documents
    • FIPS-compliant cryptography
    • Barcode generation
    • SVG support
  • Addons:
    • Converting XML/HTML & CSS to PDFrepo,info
    • Redacting sensitive information in PDF documentsrepo,info
    • Support for international character sets (e.g. Arabic, Chinese, Hebrew, Thai, ...)info
    • Optimize PDF documents for reduced file size, and increased performanceinfo
    • Flattening XFA documentsinfo
    • PDF debuggingrepo,info

Want to discover what's possible? Head over to ourDemo Lab! It contains a collection ofdemo applications ready to use online!

Getting started

The easiest way to get started is to use Maven, just add the following entries to your pom.xml file:

<properties><itext.version>REPLACE_WITH_DESIRED_ITEXT_VERSION</itext.version></properties><dependencies><dependency><groupId>com.itextpdf</groupId><artifactId>itext-core</artifactId><version>${itext.version}</version><type>pom</type></dependency><dependency><groupId>com.itextpdf</groupId><artifactId>bouncy-castle-adapter</artifactId><version>${itext.version}</version></dependency></dependencies>

For more advanced use cases, please refer totheInstallation guidelines.You can alsobuild iText Community from source.

Hello PDF!

The following example shows how easy it is to create a simple PDF document:

packagecom.itextpdf.hellopdf;importcom.itextpdf.kernel.pdf.PdfDocument;importcom.itextpdf.kernel.pdf.PdfWriter;importcom.itextpdf.layout.Document;importcom.itextpdf.layout.element.Paragraph;importjava.io.FileNotFoundException;publicclassHelloPdfApp {publicstaticvoidmain(String[]args)throwsFileNotFoundException {try (Documentdocument =newDocument(newPdfDocument(newPdfWriter("./hello-pdf.pdf")))) {document.add(newParagraph("Hello PDF!"));        }    }}

GraalVM compatibility

Starting from version 8.0.3 iText Core supports native image compilation using GraalVM. Seebuilding for details.

Examples

This is a small subset of examples to get you started. For more advanced examples, refer to ourKnowledge Base or the following links:Examples repo,Signing examples.

Some of the output PDF files will be incorrectly displayed by the GitHub previewer, so be sure to download them to see the correctresults.

DescriptionLink
Basic layout
Change text propertiesJava,PDF
Creating a simple tableJava,PDF
Add an image to a PDF documentJava,PDF
Create a listJava,PDF
Add a watermarkJava,PDF
Add links to navigate within a documentJava,PDF
Create a popup annotationJava,PDF
Change fontJava
Add form fieldsJava

General document settings
Change page size and marginJava,PDF
Write PDF to byte array instead of to diskJava
Change page rotationJava,PDF
Add header and footerJava,PDF
Merge documentsJava,PDF
Flatten annotationsJava

PDF/UA, PDF/A
Create PDF/UA documentJava,PDF
Create PDF/A-3 documentJava
Create PDF/A-4 documentJava
Create WTPDF documentJava
Create ZUGFeRD/Factur-X documentJava,PDF

FIPS
Enable FIPSJava
FIPS SHA3 exampleJava

SVG
Convert SVG to a PDFJava
Convert SVG to a PDF using layoutJava
Convert SVG as string to PDFJava
Convert SVG to a PdfPageJava
Convert SVG as XObjectJava
Convert SVG to a PDF with pdfCalligraphJava

Convert HTML and CSS to PDFLink to repo
Convert simple HTML doc to PDFJava

Secure redaction of contentLink to repo
Redacting contentJava
Redact based on regexJava

Support complex writing systemsLink to docs
Add Arabic textJava,PDF

Optimizing PDFsLink to docs
Reduce size of PDFJava

XFA flatteningLink to docs
Flatten an XFA documentJava

RUPSLink to repo
Debug a PDFJava

FAQs, tutorials, etc.

Check out theiText Knowledge Base for theiText Jump-start tutorial and other tutorials,FAQs and more. For specific information and examples relating to digital signatures and iText, make sure to check theDigital Signatures Hub.

Many common questions have already been answeredonStack Overflow, so make sure to also check there.

Contributing

Many people have contributed toiText Core/Community over the years. If you've found a bug, a mistake in documentation, or have a hot new feature you want to implement, we welcome your contributions.

Small changes or fixes can be submitted as aPull Request, while for major changes we request you contact us atcommunity@apryse.com so we can better coordinate our efforts and prevent duplication of work.

Please read ourContribution Guidelines for details on code submissions, coding rules, and more.

Licensing

iText is dual licensed asAGPL/Commercial software.

AGPL is a free/open-source software license, however, this doesn't mean the software isgratis!

The AGPL is a copyleft license, which means that any derivative work must also be licensed under the same terms. If you’re using iText in software or a service which cannot comply with the AGPL terms, we have a commercial license available that exempts you from such obligations.

ContactSales for more info.

About

iText for Java represents the next level of SDKs for developers that want to take advantage of the benefits PDF can bring. Equipped with a better document engine, high and low-level programming capabilities and the ability to create, edit and enhance PDF documents, iText can be a boon to nearly every workflow.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors57

Languages


[8]ページ先頭

©2009-2025 Movatter.jp