Using the iText framework we have seen how to add text/paragraphs to PDF files. Now we will see how we can add various fonts and colors to the text that is added. Lets see an example on how to Add
Add paragraph in PDF using iText
To Add Paragraph in PDF using iText library is very easy. You can also set spacing between 2 paragraphs. Spacing can be added After/Before each of the paragraphs. Important Class – com.itextp
Create Simple PDF using iText
iText provides flexible ways for creation and manipulation of PDF files. We will start with steps on how to create simple PDF using itext with some examples. Setup Setup can be done by adding Maven
Add multiple lines in PDF using Apache PDFBox
When you large content to be displayed in the PDF using the pdPageContentStream.showText(str) the content can sometimes go out of the PDF and get cut. See below example : [crayon-68cdf00739d668248
Document Properties in Apache PDFBox
Document properties of a pdf can be accessed/created using the Apache PDFBox library. Lets see an example on all the document properties in Apache PDFBox. The class used for accessing the document
Encrypting pdf using Apache PDFBox
Apache PDFBox provides way to protect your pdf by adding a password protection. In this post we will see an example on encrypting pdf using apache pdfbox. The important classes that are required fo
Write Chinese in pdf using Apache PDFBox
The default fonts in PDFBox do not support Chinese characters hence we need Unicode fonts for that. Lets see how to write Chinese in pdf using Apache PDFBox. Exception using default fonts If you tr
Reading text from PDF using Apache PDFBox
Apache PDFBox provides various classes like org.apache.pdfbox.text.PDFTextStripper to read text from PDF files. We will see steps on how reading text from pdf using Apache PDFBox. We have a sample
Split PDF using Apache PDFBox
PDF file can be split into many small files using the Apache PDFBox library. Lets see the steps and simple examples on how to Split PDF using Apache PDFBox. The class mainly used for doing this is
Merge Multiple PDF using Apache PDFBox
Merging of multiple PDF’s can be easily done using PDFMergerUtility class of PDFBox. Lets see an example on how to Merge multiple pdf using Apache PDFBox. The important methods that we will u