iText Knowledge Base
Search in spaces:
-
How to allow a Unicode subscript symbol in a PDF without using setTextRise()?
Is there a setting to change the encoding/font of the text to UTF-8, so that it allows all the Unicode symbols? I have been trying to
-
Font examples
How can I use regular and bold in a single String? How can I load a font from /WEB-INF/resources/fonts/foobar.ttf? Why do I get a font
-
How to display indian rupee symbol?
Why does my code not work? I want to display the special character "India Rupee Symbol" in iText, My Code: BaseFont rupee
-
Why isn't the Rupee symbol showing?
I tried using arial.ttf and arialbd.ttf, but I don't have any luck with these to show the rupee symbol. Why doesn't it work? I am using
-
How to create a list without indentation?
Is it possible to create numbered lists without any indentation? Something like: 1 A 1-1 A_A 2 B 2-1 B_B 2-1-1 B_B_B Posted on
-
Chapter 6: Using fonts in pdfHTML
Up until now, we haven't spent much attention to the fonts that were used when we converted HTML to PDF. We know that Helvetica is the
-
pdfHTML: Using emojis in iText
Introduction From their humble beginnings in 1999, emojis have become a staple of digital communication and most document and
-
How can I serve a PDF to a browser without storing a file on the server side?
How can I serve the PDF file to the client without storing the file on the server side and allow the client side to directly download the
-
How to use an image as list symbol?
I know that SetListSymbol (from the ITextSharp library) expects a string as a parameter, but is it possible to use an image/icon somehow?
-
How to print mathematical characters like ?, ?, ?, ?, ? ?, ??
I am using iText for PDF generation. I have some characters/symbols to print like ∈, ∩, ∑, ∫, ? (Mathematical symbols) and many others.
-
How to update a PDF without creating a new PDF?
I need to change the value of a field in an existing PDF file. I am using PdfReader, PdfStamper and AcroFields and that's working fine.
-
How to use Cyrillic characters in a PDF?
Why are characters such as "?" and "?" not being recognized? I have a problem when adding characters such as "?" or "?" while generating
-
How to fill XFA form using iText without breaking usage rights?
If I choose the XML manually by clicking 'Import data' from Adobe Reader, form is filled properly, so I guess there is no error in the
-
Chapter 3: Using ILeafElement implementations
The ElementPropertyContainer has three direct subclasses: Style, RootElement, and AbstractElement. We've briefly discussed Style at the
-
Support for a symbol element in SVG
The release of iText Core 7.1.13 includes a number of bug fixes as well as useful feature additions. As we continue to work on increasing
-
Chapter 7: Creating PDF/UA and PDF/A documents
In chapter 1 to 4, we've created PDF documents using iText 7. In chapters 5 and 6, we've manipulated and reused existing PDF documents.
-
Chapter 1: Introducing fonts
When writing a tutorial, I always prefer working with real-world use cases. That's not always easy because real-world use cases can get
-
Chapter 7: Creating PDF/UA and PDF/A documents | .NET
In chapter 1 to 4, we've created PDF documents using iText 7. In chapters 5 and 6, we've manipulated and reused existing PDF documents.
-
How to add an image to an existing PDF using AffineTransform?
Why does it work If I use the commented line without the transform, but with the AffineTransform, it does not show up? This is my code:
-
How to add a page number in the header of a PDF/A Level A file?
Why is it that when I introduce text that is added at an absolute position, iText tells me that the content I'm adding isn't tagged? I am
-
How to define the data encoding when submitting a PDF form using AcroForm technology?
When I create a PDF form (for instance using Acrobat) that contains text fields in AcroForm format (PDF dictionaries, no XFA), and I
-
How to watermark PDFs using text or images?
What are my options from a Java serverside context? Watermark without rotation What are my options from a Java serverside context?
-
How to render certain HTML entities (such as arrows) to PDF?
This question was originally asked on Mar 18, '15 https://stackoverflow.com/questions/29121766 by aggsol
-
How to protect a PDF with a username and password?
How do I encrypt a PDF? Let's say I have a private teaching forum, where each user has a username and an encrypted password (paid
-
How to decrypt a PDF document with the owner password?
I need to remove the security/encryption from some PDF documents, preferably with the iText library. This used to be possible, but after
-
How to allow page extraction when setting password security?
Is it possible to create a PDF with password security enabled that also allows extraction of pages? I haven't found any property in
-
Release pdf2Data 2.1.12
Release date: July 5, 2021 In the new release, we have focused on reducing pdf2Data's memory consumption. A few improvements and
-
Chapter 4: Adding AbstractElement objects (part 1)
In previous chapters, we've already discussed five classes that implement the AbstractElement class. We've discussed the AreaBreak class
-
Do I need a license for Windows fonts when using iText?
For example if I am using Arial, one of the most commonly used fonts (but which is not free), do I need to purchase the font? I
-
How to create Persian content in PDF?
I want to retrieve data from database and show them to the user. How do I do this if my character is in Arabic or Farsi? I have problem
-
How to nest tables without extending the inner table?
How can I avoid that the smaller table stretches to fit the cell of the outer table? Additionally: how do I align the inner table to the
-
Chapter 4: Creating reports using pdfHTML
Roughly speaking, there are three major ways to create PDF documents using iText, You can create a PDF document from scratch using iText
-
How to introduce superscript?
How do I format dates so that the "th" in 14th or "rd" in 3rd is in superscript? I want to format a date like this: 14th may 2015.
-
How to encrypt PDF using a certificate?
We need to encrypt a PDF with a certificate. I've found something using iText some months ago, but I cannot find it any more. The certs
-
Why can't I extract text added using a Type3 font correctly from a PDF?
I have PDF file in Arabic that has text with font Type3 when I extract text using PDFBox some characters are empty and their font equals
-
How to create a new PDF file if a file name already exists?
How can I create a new PDF file without appending or overwriting the original data of the first user? I need to create simple receipts
-
Why does iText enter a cross symbol when CheckType style is check mark?
When filling in a PDF programmatically, how can I show check marks instead of cross checks? I have an existing PDF that I am filling in
-
How to set the zoom level of a PDF using iTextSharp?
I need to set the zoom level to 75% in a PDF file using iTextSharp. I am using following code to set the zoom level. PdfReader reader =
-
How to add blank pages while concatenating several PDFs using PdfSmartCopy
I'm trying to concatenate a huge number of PDF files to create a print-ready file, so that I don't have to print them one by one. The
-
How to close a PDF file to recreate it? (File in use problem)
If I don't close the file I get an error. How can I fixed this problem? I have the Java application that can create a PDF file. For
-
How to delete attachments in PDF using iText?
I want to write another program to delete the embedded files. How can I do this? Attachment shown in Adobe Acrobat public void
-
How to generate and design PDFs with iText or iTextSharp?
I'm wondering what is the best/easiest way to design a PDF document? Is it remotely legit to actually design a whole PDF document with
-
How can I set the zoom level of a PDF using iText 7?
A simple iText 7 example showing how to set a specific magnification level for a PDF. You can use setOpenAction to open a document with a
-
Interactive forms
Why does iText enter a cross symbol when CheckType style is check mark? How to create radio buttons inside a table? How to show an image
-
How to add alternative text for an image in Tagged PDF?
I know that iText can generate tagged PDF documents from scratch, but is it possible to insert alternative text for images in an existing
-
How to preserve high resolution images in PDF?
Is there any way to add a big image to an A4 page without losing quality? I'm trying to put high quality images into PDF (one per page).
-
How to merge PDFs and add bookmarks?
I am merging multiple PDFs together into one PDF and I need to build bookmarks for the final PDF. For example, I have three PDFs:
-
How to disable the save button and hide the menu bar in Adobe Reader?
I am serving a PDF to a browser via a Servlet. I need to disable the "save" and "print" option in the Adobe Reader menu bar while other
-
How to merge forms from different files into one PDF?
Is there a way to merge both of my forms together without losing the interactive fields? I currently have a PdfReader and a PdfStamper
-
How to flatten a XFA PDF Form using iTextSharp?
I assume I need to flatten a XFA form in order to display properly on the UI of an application that uses Nuance's CSDK. When I process it
-
How to make a single letter bold within a word?
Is it possible to bold out specific letters within a word in iText? Consider this sentence, "this is a word". Could I make all the "i"
-
Release iText 7.1.0
We are pleased to announce that iText 7.1.0 https://mvnrepository.com/artifact/com.itextpdf/itext7-core/7.1.0 is a new release for iText
-
How to get the UserUnit from a PDF file?
What do I need to do to get the user unit for each page so I can then get the page dimensions in pixels? I have a bunch of PDF files that
-
How to attach files to a PDF?
I am struggling with attaching files to a PDF that I am generating at runtime. I manage to attach a file to the PDF, but I can't seem to
-
PDF and Digital Signatures
The digital signature technology, as described in ETSI's PDF Advanced Electronic Signatures (PAdES) standard and ISO's ISO-32000
-
How to create a complex PDF document?
I have an Java/Java EE based application wherein I have a requirement to create PDF certificates for various services that will be
-
How to rotate a paragraph?
Why can't I rotate anything bigger than a single line? I have a web site where the users upload photos and create photobooks. Also, they
-
How to flatten a XFA PDF Form using pdfXFA
I assume I need to flatten a XFA form in order to display properly on the UI of an application that uses Nuance's CSDK. When I process it
-
How to create a PDF with font information and embed the actual font while merging the files into a single PDF?
I would like to create PDFs which only embed font information, not the full font. Then when I merge these PDFs into a single document, I
-
How to add blank pages to an existing PDF in java?
I have a normal PDF file, I want to insert blank pages at the end of this PDF using iText, without changing the existing PDF contents.
-
What is the size limit of pdf file?
I am using iTextSharp in a web application to generate PDF files. These PDF files contain .tiff images taken from a folder. If size of
-
.Release pdfHTML 4.0.0 vLatest
Release date: October 25, 2021 The pdfHTML 4.0.0 release doesn't bring as many visible changes compared to the previous major release,
-
Release pdfHTML 4.0.0
Release date: October 25, 2021 The pdfHTML 4.0.0 release doesn't bring as many visible changes compared to the previous major release,
-
Manipulating existing PDFs
How to add alternative text for an image in Tagged PDF? How do I add XMP metadata to each page of an existing PDF? Why do I get an error
-
How can I create a Reader enabled PDF with a signature field that can be signed in Adobe Reader
I've read that I need to Reader enable my document, but I can't find how to do this using iText. Using iText, I've successfully created a
-
Why do I get an "InvalidPdfException: PDF header signature not found"?
Is there some other way around this issue, that can allow reading of the pdf despite this problem? I have some code that reads pdf files.
-
Questions about PDF in general
What does Not LTV-enabled mean? How to protect a PDF with a username and password? How to hide the Adobe floating toolbar when showing a
-
Which PDF filters are used to encode data?
I am very keen to know which PDF filters are used by iTextSharp to encode the data so that it can decode the data properly. Currently I
-
How to shrink pages in an existing PDF?
I am using PdfWriter, PdfImportedPage and the addTemplate() method to shrink pages. However, when I do so, I lose the rotation of the
-
How to generate a report with dynamic header in PDF using iText 7?
I'm generating a PDF report with iTextSharp, the header of the report has the information of the customer. In the body of the report
-
How to add a printable or non-printable bitmap stamp to a PDF?
I would like to add a bitmap stamp to a PDF file, that would be either printable or non-printable depending on the actual Acrobat Reader
-
Advantages of using Blockchain for Signing PDF documents
Suppose that we don't store the signature of a document in the document itself, but instead store it in the blockchain. In a blockchain
-
Chapter 7: Handling events; setting viewer preferences and printer properties
Figure 7.1: Pages with different orientations We started with a chapter about fonts. In the chapters that followed, we discussed the
-
How to use the full size of a page?
I managed to set the size of the PDF document I'm creating to the size I need (~3cm x ~7cm), but the content inside the page is only
-
How can I log the number of documents / bytes I've processed?
I want to log the number of documents I've processed using iText, as well as the number of bytes I've read or produced. Is there a
-
Fail-safe processing of Outlines without Parent link
Background As stipulated in the PDF specification, an outline item is required to have a parent link. The parent of a top-level item is
-
Can I create a Reader-enabled PDF using iText?
I want my PDF to have extra usage rights for people opening the document in Adobe Reader, but I can't find how to achieve this using
-
How to align a label versus its content?
I want my content to be aligned so that every line starts at the same X position, no matter how many items are added to the list. I have
-
How to solve an UnsupportedCharsetException when using itext-asian.jar?
My Code: public static final String[] tempString = { "KozMinPro-Regular.otf", "UniJIS-UCS2-H", pharseString }; bf =
-
How to strike through text using iText?
I have 2 numbers one above the other, but the first one must have an Strikethrough. I'm using a table and a cell to put both numbers in
-
Chapter 6: Reusing existing PDF documents | .NET
In this chapter, we'll do some more document manipulation, but there will be a subtle difference in approach. In the examples of the
-
Chapter 6: Reusing existing PDF documents
In this chapter, we'll do some more document manipulation, but there will be a subtle difference in approach. In the examples of the
-
How to open an MS Word attachment by clicking an image?
How can I make an image clickable so that an attached MS word document opens? I have some PDFs here where there are some images (an MS
-
How to use the font Verdana in PdfStamper?
Why doesn't exchanging the Part BaseFont.HELVETICA with "Verdana" work? I want to use Verdana as a font while stamping a PDF file with
-
How to solve an UnsupportedCharsetException when using itext-asian.jar
My Code: public static final String[] tempString = { "KozMinPro-Regular.otf", "UniJIS-UCS2-H", pharseString }; bf =
-
Release iText Core 7.2.0
Release date: October 25, 2021 We are pleased to announce the next major version of iText 7; iText 7.2.0. The most important change in
-
How to embed a font only partially?
Is partial embedding automatic? I am asked to include partial font into a PDF. I think I will use iText and I found how to embed the
-
How to extract embedded streams?
I have embedded a byte array into a PDF file, more specifically an AVI file in a RichMedia annotation. Now I am trying to extract that
-
How to extract a page number from a PDF file?
We explored many API's like Tika, PdfBox and iText to extract page numbers from a PDF file, but we weren't able to meet this requirement.
-
How to create hierarchical bookmarks?
How can I create a hierarchical bookmark structure in PDF using iText? I have data in ArrayList like below : ArrayList tree = new
-
Chapter 3: Using renderers and event handlers | .NET
In the first chapter of this tutorial, we created a Document with a certain page size and certain margins (defined explicitly or
-
Chapter 4: Making a PDF interactive
In the previous chapters, we've created PDF documents by adding content to a page. It didn't matter if we were adding high-level objects
-
Why do I get a font embedding error when creating PDFA/1a?
What i am trying to achieve here is create a list with a bullet in front of every item in the list. What am i missing here? I have a
-
Chapter 4: Making a PDF interactive | .NET
In the previous chapters, we’ve created PDF documents by adding content to a page. It didn’t matter if we were adding high-level objects
-
Chapter 3: Using renderers and event handlers
In the first chapter of this tutorial, we created a Document with a certain page size and certain margins (defined explicitly or
-
Why do I get an error saying that "use of extended features is no longer available"?
What do I do when I get an error message about reader extensions. I am stamping text on an existing PDF document using this code:
-
iText 7: Converting HTML to PDF with pdfHTML
NOTE: We are continually updating our features- and have some new features that are not included in this eBook yet. You can find a full
-
Using iText 7 and AWS KMS to digitally sign a PDF document: Part 1
This example was written for the article "Using iText 7 and AWS KMS to digitally sign a PDF document
-
Using forms for reporting
A series of examples that allow you to create reports using forms. These examples were used to answer questions such as: Click How to
-
.Using forms for reporting vLatest
A series of examples that allow you to create reports using forms. These examples were used to answer questions such as: Click How to
-
How to reuse a page from one PDF document into another PDF document?
How can I create an element from an existing PDF, so that I can place it in my new PDF? I'm trying to add an image that I have on the
-
How to rotate and scale pages in an existing PDF?
I need some example code of using the PdfCopy class to resize a page. There is a PdfCopy.SetPagesize() function, but I have basically no
-
How can I generate a PDF/UA compatible PDF with iText?
We have a number of dynamically generated PDFs on our site that were created using iText 2.1.7. However, we also have a large number of
-
Creating and editing PDF 2.0 Documents
In July 2017 PDF 2.0 was released which added a bunch of useful features to PDFs such as AES-256 encryption, unicode passwords,
-
How to set up a table display?
I have an application that I want to print an invoice like document in a table setup. Does anyone have a piece of code to use as a
-
How to get the image DPI in PDF?
How can I read the width/height/scale of an image and be confident about the result? I'm trying to get information about scanned images
-
How to reorder pages in an existing PDF file?
I want to move a couple of the last pages to the start of my document. I am using the iText pdf library. Does any one know how I can move
-
Why are PDF files different even if the content is the same?
Can someone please explain to me what kind of differences there are between files and the reason why the PDF format has this defect? I've
-
Release pdfCalligraph 2.0.7
?????? ?????? ??????? That's right! With the release of pdfCalligraph 2.0.7, we are bringing the support of Thai (the official language
-
How to change the text color of an AcroForm field?
When I change the text color for a field it does not change. Why is that? I have a PDF with named fields I created with Adobe LifeCycle.
-
How to add an image watermark to a PDF file?
My problem is that in some PDF files no watermark is added although the file size increased. Why is that? I'm using C# and iTextSharp to
-
Use cases
Invoices The ZUGFeRD https://www.ferd-net.de/standards/zugferd.html invoicing standard uses a combination of PDF/A-3 with an XML file
-
How to merge PDFs from ByteArrayOutputStreams?
I have two PDF files, each one in a ByteArrayOutputStream. I want to merge the two PDFs, and I want to use iText, but I don't understand
-
How to use multiple fonts in a single cell?
I'm making a windows form for a friend who delivers packages. I want to transfer his current paper form, into a PDF with the iTextSharp
-
How do I add XMP metadata to each page of an existing PDF?
So far all the examples seem to involve adding metadata while creating a new Document. I want to take an existing PDF and add a GUID to
-
Chapter 2: Adding content to a Canvas or a Document
Throughout this tutorial, we'll be creating PDF documents by adding BlockElement and Image objects to a RootElement instance. RootElement
-
How to add a cover page to an existing PDF document?
I need to add an existing cover page (a single-page PDF) to another existing PDF document. How can this be done? Posted on StackOverflow
-
How to rename named destinations in existing PDF files?
I would like the named destinations in all the documents to be the same. I've been using named destinations in PDF files to open the PDF
-
How to use a text extraction strategy after applying a location extraction strategy?
I used the following code to get data in PDF from a particular location. Rectangle rect = new Rectangle(0,0,250,250); RenderFilter filter
-
How to load a PDF from a stream and add a file attachment?
When I save stream to file, the resulting PDF is not correct. The file attachment will always be an XML file, which I need to create in
-
How to use a dotted line as a cell border?
I am trying to create a table with cells that have a dotted line for a border. How can I do this? Posted on StackOverflow on Nov 21, 2013
-
How to create a link to launch an external program?
I am using iTextSharp to create PDF files. Can I use iTextSharp to create a link in pdf that will allow me to launch a program? The users
-
Chapter 6: Creating actions, destinations, and bookmarks
When we discussed the Link building block in chapter 3, we created a URI action that opened a web page on IMDB when we clicked the text
-
How to stamp image on existing PDF and create an anchor?
I have an existing document, onto which I would like to stamp an image at an absolute position. I am able to stamp the image, but I would
-
How to only read text from a constant location on PDF pages?
How do I read only a specific part of each PDF page where information on each page is located at a constant position? I have a problem
-
How to send a file to the server through a PDF?
Is there a way to create some kind of Input File, File Chooser, etc, and attach it on the generated PDF file? And then send this selected
-
How to use a Digital Signing Service (DSS) such as GlobalSign, with iText 7
Introduction When we want to sign a PDF with a digital signature, we need to generate a hash from the document’s data and sign it with a
-
How to modify the size of annotations and make them read-only?
1. Is it possible to disable the options dropdown list for annotations(text,stamp etc.)? If so, how? 2. Can the size of the annotation
-
Release iText 7.0.4
With 7.0.4 https://mvnrepository.com/artifact/com.itextpdf/itext7-core/7.0.4 we're bringing you another maintenance release for iText 7
-
How to rotate a page while creating a PDF document?
I can set the size of the page to landscape but the content is still oriented left->right while I would like it to be bottom->top. I want
-
How to add a new form from an existing PDF template?
I want create a PDF template from another template. The resulting PDF should still be a template that I can fill out with data. I tried
-
Image examples
Which image types are supported by iText? How to use an image as list symbol? How to prevent images from resizing in a table cell? How to
-
Chapter 3: Generating PDF based on Media Queries
Figure: pdfHTML C3F01 Examining the example HTML file Figure 3.1 shows an HTML page introducing South by South West, a yearly event in
-
How do the measurement systems in HTML relate to the measurement system in PDF?
Similar questions were posted on Stack Overflow, for instance on Aug 28, '14
-
How to add text at an absolute position on the top of the first page?
How can I add text automatically to the 1st page, instead of the last? I have a script that creates a PDF file and writes contents to it.
-
Part III - PKCS#11
The PKCS#11 standard defines a platform-independent API for accessing cryptographic tokens. If a device manufacturer or a service
-
How to extract text and anchor information from a PDF?
I am looking for a method to extract the text as well as anchor information using iText. For example: the PDF content is "You can visit
-
How to read PDFs created with an unknown random owner password?
How do I bypass the owner password? Requirement is to process a batch of PDFs one at a time and on success encrypt each of them with an
-
How to fix the orientation of a PDF page in order to scale it?
How do I properly rotate page contents and how can I scale the rotated contents correctly? I need to scale down the pages of an existing
-
How to change the color of pages?
I want to create the first two pages with a blue background color and the remaining pages in white, but when I try this every page
-
How to reorder the pages of a PDF file?
I am generating Table of Contents after creating a document and I want to move Table of Contents to the start of the document. Suppose
-
How to set the OCG state of an existing PDF?
I need to turn off a specific layer (OCG object) in an exisiting PDF that was created in Autocad and that sets the default value to "on".
-
How to extend the page size of a PDF to add a watermark?
I want to add a watermark to a document that doesn't cover any of the existing text (not even if the watermark is transparent). Instead,
-
How to remove text from a PDF?
Is it possible to remove all text occurrences contained in a specified area (red color rectangle area) of ??a pdf document? I want to
-
How to give an image rounded corners?
I want to get the image width and height and make the edges of the image curved. I'm using iTextSharp to export images into a PDF. Now I
-
How do I rotate a PDF page to an arbitrary angle?
I need to rotate a PDF page by an arbitrary angle, but it seems that the functionality to rotate pages is restricted to multiples of 90
-
How to create a table with complex borders?
I need to create a table with rounded and rectangular borders. The table with round and rectangular borders should look like this: Can
-
How to convert an existing A4 PDF document to an A3 booklet?
I want to convert an existing A4 PDF document into an A3 PDF using Java. Since I am new to the iText API, I wonder if anyone can guide me
-
Chapter 5: Manipulating an existing PDF document | .NET
In the examples for chapter 1 to 3, we've always created a new PDF document from scratch with iText. In the last couple of examples of
-
How to create an uncompressed PDF file?
During development testing, I'd prefer to create uncompressed, non-binary PDF files with iTextSharp so that I can check their internals
-
How to add multiple images into a single PDF?
How do I update my code in order to add all the images into the exported PDF instead of only the last one? I have the following code, but
-
Chapter 5: Manipulating an existing PDF document
In the examples for chapter 1 to 3, we've always created a new PDF document from scratch with iText. In the last couple of examples of
-
How to get the page number of an arbitrary PDF object?
I am trying to find the page number of a PDF object using iText's Java API. The following code reads in the PDF file, and gets the object
-
pdfCalligraph: Support wrapping at word boundaries for languages which don't use spaces for word separation
Introduction Some languages don't use spaces to separate words and instead use spaces to only separate sentences. Languages which do this
-
How to get specific types from AcroFields? Like PushButtonField, RadioCheckField, etc
https://itextpdf.com/sites/default/files/Dfhdk.png Form with radio buttons and check boxes When I call AcroFields.GetField(string name);
-
pdf2Data: Add support for tables using ASCII line symbol separators
In previous versions pdf2Data would fail to recognize tables that use horizontal lines that are drawn using ASCII graphics. However, in
-
How to move the content inside a rectangle inside an existing PDF?
My goal is to move text in a PDF around, which is within a certain rectangular area. All content matching the area in the original PDF
-
How to draw a line every 25 words?
I create a PDF using iText. The content consists of text and I need to draw a line to delimit this text every 25 words as shown in the
-
How to crop out a part of PDF file?
I have to remove the top part of each page from a PDF. I managed to do this with CROPBOX, but the problem is that this will make the
-
How can I add a new AcroForm field to a PDF?
I have used iText to fill data into existing AcroForm fields in a PDF. I am now looking for a solution to add new AcroForm fields to a
-
What is the connection between LTV and document timestamps?
How do I make a PDF document LTV enabled without using timestamps? I have read the paper, discussions but there is one thing still
-
How to restrict the number of characters on a single line?
How can I add strings to a single line that is underlined? I am using iText to generate PDFs. In these PDFs, I need to add two Strings on
-
How to add a map with a pointer to a PDF?
I am using java and iText to create a pdf. Is it possible to add a map with a pointer on it so the user will know where the starting
-
How to make a particular sub-string Bold when converting HTML to PDF?
I am using iText in Java to convert a HTML to PDF. I want a particular paragraph which has some words as Bold and some as Bold+Underlined
-
How to create a PDF with a Cartesian grid?
Could anyone please provide me a sample program that can dynamically create a grid or even dots starting at (0,0) at bottom left corner
-
Where is the origin (x,y) of a PDF page?
I want to position text at some specific place in the document. However, I cannot figure out where to find the origin of the coordinate
-
General questions about iText
How to keep specific words together on one line? Why do I get a message saying 1.not.found.as.a.resource? How to increase the accuracy of
-
How do I insert a hyperlink to another page in an existing PDF?
I would like to add a link to an existing pdf that jumps to a coordinate on another page. I am able to add a rectangle using this code:
-
How to create a clickable polygon or path?
Is anyone out there able to create a clickable annotation that has an irregular shape? I know I can create a rectangular one like this:
-
Installing the iText license key and license key library for Java and .NET
Thank you for your interest in our PDF library, we hope you will enjoy using our product and share your experiences with us and the iText
-
Digital Signatures Hub
This area is a central hub to collect our examples, FAQs, articles and other resources related to the topic of digitally signing PDF
-
Release pdfOffice 2.0.2
Release date: April 11, 2022 pdfOffice is an iText 7 add-on which enables high-quality native conversion of Microsoft Office documents to
-
Using iText 7 and AWS KMS to digitally sign a PDF document: Part 4
This example was written for the article "Using iText 7 and AWS KMS to digitally sign a PDF document
-
How to convert an A4 size PDF to a PDF booklet?
How to convert A3 PDFs into a booklet that will fold when printed. I need a variation on the example given in answer to the following
-
How to get the color properties of an AcroForm field?
I have 20 AcroForm text fields in my pdf with different color fill properties. I'm not able to read these properties. Is there any way we
-
How can I add an image to all pages of my PDF?
I have been trying to add an image to all pages using iTextSharp. The image needs to be OVER all content of every page. I have used the
-
Release iText Core 7.1.13
Release date: October 22, 2020 The iText Core 7.1.13 release is the fourth quarterly release for 2020 of our innovative PDF library. This
-
How To find internal links in a PDF file?
I am using ItextSharp for searching internal links in a PDF file. This is already done with External Links. //Get the current page
-
Using iText 7 and AWS KMS to digitally sign a PDF document: Part 5
This example was written for the article "Using iText 7 and AWS KMS to digitally sign a PDF document
-
.How to create a PDF with a Cartesian grid? vLatest
Could anyone please provide me a sample program that can dynamically create a grid or even dots starting at (0,0) at bottom left corner
-
Using iText 7 and AWS KMS to digitally sign a PDF document: Part 3
This example was written for the article "Using iText 7 and AWS KMS to digitally sign a PDF document
-
How do I use pdfRender in a .NET environment?
Introduction While iText does not currently offer a native C# version of pdfRender
-
How can I use regular and bold in a single String?
I have a String that consists of a constant part and a variable part. How do I get the variable to be formatted using a regular font
-
How to get the page width and height of a PDF document?
I have a PDF, and I want to get the width and height of each page using iTextSharp. This is what I have so far: string
-
How can I crop the pages of an existing PDF document?
I have an existing document of which the pages are too big. How can I crop the pages? Posted on StackOverflow on Apr 12, 2014
-
Absolute positioning of lines and shapes
How to draw vertical gradient in iTextSharp? How to add an image to an existing PDF using AffineTransform? How to fill a rectangle with
-
Using iText 7 and AWS KMS to digitally sign a PDF document: Part 2
This example was written for the article "Using iText 7 and AWS KMS to digitally sign a PDF document
-
How should I interpret the coordinates of a rectangle in PDF?
I would like to know more about the coordinates of a Rectangle, in particular: lower left X lower left Y upper right X upper right Y
-
PDF Portfolios
This example demonstrates the use of the PDF Portfolio feature (sometimes called Portable Collections). A PDF Portfolio can contain
-
How to create a nested column?
I need help creating a nested table in iText. How can I create a table that looks like the table in the following screen shot: This is my
-
Flexbox suport in pdfHTML
With the release of pdfHTML 3.0.4, we are pleased to announce that we now support the CSS Flexible Layout Box module
-
How to use System Font in iTextSharp with VB.net?
Can someone help me with writing the code to use a system font? I'm using Itextsharp to convert text files to PDF documents dynamically
-
Release pdf2Data 2.1.11
Release date: April 14, 2021 In this release, we've further improved the table data extraction capabilities. From now on, pdf2Data is
-
Does a PDF file have styles, headers and footers?
Does a PDF file have styles, headers and footers information as is the case with docx files that have separate xml files with extra
-
How to parse multiple HTML files into one PDF?
This question was originally posted on Stack Overflow on January 6, 2015
-
Why do PDFs change when processing them?
When I calculate a hash for my files, I get 2 different hash results. Why is this? In the next code snippet, I use PdfStamper, but I
-
How to use two different colors in a single String?
I want to set the color for only part of the string. How do I do this? I have string like below, and I can't split the string. String
-
Before we start: installing iText 7
All the examples explained in this tutorial are available on our web site from this URL: Examples for the iText 7 jump-start tutorial
-
How to define different border types for a single cell?
How do I create a cell with various borders? Example table When I set up the cell.setBorder(Rectangle.BOTTOM | Rectangle.RIGHT); the
-
How to prevent the resizing of pages in PDF?
I create a PDF where I define absolute measurements. However, when I print this PDF, the measurements aren't correct. I want to have a
-
iText 7: Building Blocks
NOTE: We are continually updating our features- and have some new features that are not included in this eBook yet. You can find a full
-
Release pdfOptimizer 1.0.1
Release date: April 14, 2021 We continue to improve pdfOptimizer, our newest iText 7 add-on designed to reduce the file size of your PDFs
-
I upgraded to iText 7, how do I use my license?
How to install your new iText license. If you're using iText 7.2 and later, you should have a license key in JSON format and will require
-
Release iText 7.1.7
iText 7.1.7 is the quarterly release for iText 7 Core/Community. This release includes improvements to performance and reduced memory
-
Installing iText free trial for Java and .NET developers
Thank you for your interest in our PDF library, we hope you will enjoy using our product and share your experiences with us and the iText
-
Volume Counter FAQs
FAQs and information about the counting mechanism for volume licenses used by iText 7. Important! As of the release of iText 7.2
-
pdfOCR: How to OCR an Image to PDF/A-3u?
With our open source tool, pdfOCR https://itextpdf.com/en/products/itext-7/pdfocr, it is possible to OCR an image to a PDF/A compliant
-
How to protect an already existing PDF with a password?
How do I set a password for an existing PDF? Posted on StackOverflow on Dec 2, 2014
-
Chapter 5: Adding AbstractElement objects (part 2)
Once we've finished this chapter, we'll have covered all of the basic building blocks available in iText 7. We've saved two of the most
-
How to create a table with 2 rows that can be used as a footer?
I want to add footer with 2 rows. The 1st row will have the document name with a background color. The 2nd row will have copyright
-
Release iText 7.1.6
iText 7.1.6 is the sixth maintenance release for iText 7.1 Core https://itextpdf.com/en/products/itext-7/itext-7-core/Community
-
Release iText 7.1.4
iText 7.1.4 is the fourth maintenance release for iText 7.1 Core https://itextpdf.com/itext-7-core/Community
-
Why iText and Blockchain?
When iText was first released in the year 2000, its author, Bruno Lowagie, wrote down the following mission statement: We want to enable
-
Release pdfOCR 1.0.2
Release date: October 22, 2020 pdfOCR 1.0.2 is already the third release of our newest product. It brings some important improvements
-
Release pdfHTML 3.0.2
Release date: October 22, 2020 In this release, we extended the support of the CSS specification to add full support of the background
-
What does "Not LTV-enabled" mean?
Since my signature was declared valid at a known and certified date, why would it become invalid in the future? I'm using iText to sign
-
XFDF examples
The following examples show how to use the XFDF functionality in iText 7 to create and fill forms: createxfdf <div
-
How to merge documents correctly?
Is there some way to detect the page size and then use that same page size for those documents? Or, if not, is it possible to have it fit
-
Release iText 7.1.5
iText 7.1.5 is the fifth maintenance release for iText 7.1 Core https://itextpdf.com/en/products/itext-7/itext-7-core/Community
-
Release iText 7.1.2
iText 7.1.2 is the second maintenance release for iText 7 Core https://itextpdf.com/itext-7-core/Community
-
Release iText 7.0.5
iText 7.0.5 https://mvnrepository.com/artifact/com.itextpdf/itext7-core/7.0.5 is a scheduled maintenance release for iText 7 Community.
-
How to add a background image to a cell?
I want to create a document which contains a table with cells with the same background image and text. I have the following requirements:
-
How to send a 'success' response back to Acrobat Reader from a java servlet?
How do I send a response back to the Acrobat Reader as a java servlet response? I am generating an editable PDF form at the server side
-
Why is my font not applied when I create a PDF document?
I am generating PDF documents with iText. When I try to include the "Agenda Tabular Light" font, iText ignores my choice of font. How can
-
How to get the number of characters in a field?
I am trying to find out which format a date of birth should have in a empty field in a PDF using iText. I can stamp the field with a
-
Which languages are supported in pdfHTML?
This is not a new question. The answer can be found in chapter 6
-
How to add an In Reply To annotation?
I am trying to add a sticky note reply to in pdf using iTextSharp. I am able to create a new annotation in the pdf. But I cannot link it
-
How to convert PdfStamper to a byte array?
In my application, I need to read the existing PDF and add barcodes to this PDF and pass it to output stream. Here the existing pdf is
-
pdfOCR: How to OCR an Image to PDF?
With our open source tool, pdfOCR https://itextpdf.com/en/products/itext-7/pdfocr, it is possible to OCR an image to a PDF, with just a
-
Release pdf2Data 2.1.8
This release brings improvements for table recognition and extraction, specifically in the case of borderless tables. To explain, by
-
How to define multiple actions for a PushbuttonField?
How do I keep a page redirect or how do I set it in code? In a PDF, I can set up a button to: Submit the FDF data to my RestAPI Redirect
-
I have been using iText 5 or 7 without a commercial license but never open sourced my application. What should I do?
Legally, your usage falls under the terms of the AGPL license if you haven’t purchased a commercial license but you’ve been using the
-
How to convert HTML containing Arabic/Hebrew characters to PDF?
This is a duplicate of the question Which languages are supported in pdfHTML?. The answer can be found in chapter 6, but this question is
-
How to add text to an image?
This was the original question: Pdf vertical postion method gives the next page position instead of current page In my project I use
-
How to change the line spacing of text?
In my PDF the default space between the lines is slightly greater than I consider ideal. I'm creating a PDF document consisting of text
-
Why does using ColumnText result in "The document has no pages" exception?
I want to use ColumnText to wrap text in a rectangle, but it tells me the document has no pages. I want to use ColumnText to wrap text in
-
Release iText 7.1.3
iText 7.1.3 is the third maintenance release for iText 7.1 Core https://itextpdf.com/itext-7-core/Community
-
How to hide the Adobe floating toolbar when showing a PDF in browser?
I am generating a PDF document and displaying it in a Web browser (the current version of IE is the most important target). I want to
-
How to display barcodes in a matrix-like structure?
How can I display different bar codes in multiple columns in a PDF page using iText? I have to display 12 bar codes in the same PDF page
-
How to superimpose pages from existing documents into another document?
I need to add existing pages from different PDFs under an existing page in another PDF. This is the code I have so far: PdfReader reader
-
Why does the function to concatenate / merge PDFs cause issues in some cases?
The code usually works great! But once in a while, it's rotating some of the pages by 90 degrees. Anyone ever have this happen? I'm using
-
How to set initial view properties?
I want to set the properties available under the Initial View tab in Adobe Acrobat for an existing PDF programmatically. Document
-
How to check a check box?
I've tried so many different ways, but I can't get the check box to be checked! Here's what I've tried: var reader = new
-
How to align AcroFields?
I'm using iText to populate the data to PDF templates, which are created in OpenOffice. The form is populating fine; I'm getting proper
-
How to change the color of a circle annotation?
I am adding a SquareCircle annotation to an already existing PDF using iTextSharp in C#. Now I want to change the Fill Color annotation
-
How to resize an Image to fit it into a PdfPCell?
The problem is that the chart image is too big for the cell. These charts look like this: vulnerabilityDetailsTable.AddCell(new
-
How to insert a "linked rectangle" with iText?
I want to insert a hyperlink into an existing PDF at a position I know in advance: I already have the coordinates of a rectangle on a
-
When Contracts aren't Smart Contracts
We're constantly talking about documents, and some of these documents might be agreements, or "contracts." The word "contract" is also
-
How to create and apply redactions?
Is there any way to implement PDF redaction using iText? Working with the Acrobat SDK API I found that redactions also just seem to be
-
How to convert colored images to black and white?
I've tried varieties of COLORSPACEs and BITSPERCOMPONENTs, but always get "Insufficient data for an image", "Out of memory", or "An error
-
Blockchain for PDF Documents
You've paid a digital invoice of your supplier, and afterwards it seemed to be fake - you were a victim of invoicing fraud. These issues
-
How to create a document with unequal page sizes?
I have the option to specify the page size, but I want different page sizes for different pages in my PDF. Is that possible? I want to
-
How to read text from a specific position?
I have a problem using iTextSharp when reading data from PDF File. What I want to achieve is to read only specific part of PDF page (I
-
How to fill out a PDF file programmatically? (Dynamic XFA)
I have a dynamic XFA Form that I can fill out manually using Adobe Acrobat on my computer. Using iTextSharp I can read what the XFA XML
-
How to make a field not required?
I am trying to make a field not required using iText. I know that I can make a field required using something like below statement:
-
Why can't I embed a font due to licensing restrictions?
Before we answer this specific question, let's take a look at another question that was posted on Stack Overflow: Do I need a license for
-
Release pdfHTML 3.0.4
Release date: April 14, 2021 We are really proud of our job for the pdfHTML 3.0.4 release, since it brings quite a few improvements and
-
How to draw lines on an image?
I am trying to draw lines on image that needs to be added to a document, just like we draw graphics on paint event of any control. How is
-
How to change the order of Optional Content Groups?
I have a PDF file with a hierarchy of layers. How do I modify this data in order to copy it into new file? I have a PDF file with a
-
Chapter 2: Adding low-level content | .NET
When we talk about low-level content in iText documentation, we always refer to PDF syntax that is written to a PDF content stream. PDF
-
.Chapter 2: Adding low-level content | .NET vLatest
When we talk about low-level content in iText documentation, we always refer to PDF syntax that is written to a PDF content stream. PDF
-
How to hyphenate text?
I generate a PDF file with iText in Java. My table columns have fixed widths. Text that is too long for one line is wrapped in the cell.
-
When is the content flushed to a PDF File by iTextSharp?
I assumed that Document.Add() flushed content to the PDF file (the file stream) immediately, but it looks like that's not the case.
-
Inspect a PDF
Why is the page size of a PDF always the same, no matter if it's landscape or portrait? How to get the author of a free text annotation?
-
How to set the page size to Envelope size with Landscape orientation?
I create a PDF document using iTextSharp and this code: Document pdfDoc = new Document(PageSize.A4.Rotate(), 10f, 10f, 100f, 0f); I
-
How to create a TOC when merging documents?
I need to create a TOC (not bookmarks) at the beginning of this document with clickable links to the first pages of each of the source
-
What are the extra characters in the font name of my PDF?
Why does it happen only for a few PDF file? While extracting font name from PDF, I get some junk characters followed by plus sign and
-
Why do I get a message saying 1.not.found.as.a.resource?
What might cause new Font(Font.HELVETICA, 11f, Font.BOLD) or BaseFont.createFont(BaseFont.HELVETICA, 'Cp1252', BaseFont.NOT_EMBEDDED) to
-
How to get the co-ordinates of an image?
How do I know whether the extracted image is the same as an image present in database, and the co-ordinates of the image are same as
-
Improving SVG to PDF conversion
What has changed? In the latest release of iText 7, there have been a couple of fixes for certain bugs that had the potential to
-
Safeguards against loops in cross-reference structure of PDF files
We've made some improvements to how we parse cross-reference tables or streams in existing documents. The PDF file format uses these
-
How to set the line width of a clipping path?
How do I change the size of my clipping path? I have a PdfTemplate and I want to clip its shape to a specific path. I know how to do
-
How to rotate a page 90 degrees?
I am trying to use a PDF for stamping and need to rotate it 90 degrees to lay it on correctly? Anyone know how to do this? Posted on
-
How to add a table as a header?
I am working with iTextSharp trying to add an header and a footer to my generated PDF, but if I try to add an header that have width of
-
Chapter 1: Introducing basic building blocks
When I created iText back in the year 2000, I tried to solve two very specific problems. In the nineties, most PDF documents were created
-
Chapter 1: Introducing basic building blocks | .NET
When I created iText back in the year 2000, I tried to solve two very specific problems. In the nineties, most PDF documents were created
-
How to calculate/set font line distance?
I am implementing a PdfPageEventHelper event to add a footer as shown in this code snippet: ColumnText.showTextAligned(cb,
-
How to get the rendered dimensions of text?
I would like to find out information about the layout of text in a PdfPCell. I'm aware of BaseFont.getWidthPointKerned(), but I'm looking
-
.Why does the cell background color affect the color of other lines? vLatest
I'm creating a PDF where I add some text to each page as well as 2 lines that are drawn using the following method: private void
-
Why does the cell background color affect the color of other lines?
I'm creating a PDF where I add some text to each page as well as 2 lines that are drawn using the following method: private void
-
How to define spacing and leading in PdfPCell objects?
Is it possible to add space between the elements of a cell (rows) in C#? I'm creating a PDF in visual studio 2012 and wanted to set some
-
How to add a rectangle to every page of a document?
Why does my code only add the rectangle on the last page? I'm using iText to create a PDF document. Right now I am trying to get a
-
How to add a border to a PDF page?
This is a snippet of my source code: Rectangle rect= new Rectangle(36,108); rect.enableBorderSide(1); rect.enableBorderSide(2);
-
How to change the properties of an annotation?
I am adding Caret annotation in already existing PDF using iTextSharp in C#. Now I want to made some changes in the Annotation
-
How to change the author name for comments?
Does anyone have a script which will change the name of the author whenever any markup such as underlining, highlighting, etc, is
-
Release pdfCalligraph 3.0.0
Release date: October 25, 2021 The pdfCalligraph 3.0.0 release brings support for two more types of the Glyph Positioning table (GPOS)
-
How to add JPEG images that are multi-stage filtered (DCTDecode and FlateDecode)?
Recently I am tasked with reducing the file sizes of PDF generated from blank office documents. The images are mostly blank, but they
-
Chapter 2: Adding low-level content
When we talk about low-level content in iText documentation, we always refer to PDF syntax that is written to a PDF content stream. PDF
-
How to move an AcroForm field?
How can I change the position of an Acrofield? I have a process that inserts a table of content into an existing Acroform, and I am able
-
How to make an image a qualified mask candidate in itext?
Is there a way to mask an image using another image in iText? I want to mask an image using another image, for example A.jpg should be
-
How to write a table header if part of a table is forwarded to the next page?
I want this page to have table header row as well. However, I want this header row only when the table data goes on new page. I am using
-
pdfOCR: If your scanned document has a mixture of sections with paragraphs and tables, what is a recommended strategy here?
This question is related to the TextPositioning property, which you can read about it here
-
How to create a table in which the cells have different widths?
How to create with Java a table with three different row widths. How to create a table with Java that has three rows as follows: First
-
How do I get an object if I have its indirect reference?
I would like to analyze the individual radio buttons. I am using iTextSharp to analyze a form enabled PDF. I know how to navigate to the
-
Part I - Overview and Simple Cases
An Overview The iText 7 signing API is based on the PdfSigner class. This class takes care of the PDF-specific aspects of PDF signing.
-
How can I add titles of chapters in ColumnText?
Why can I only add a Chapter to the document body and not add a Chapter to create a TOC? I need to make a PDF like this: And then add TOC
-
How to draw a borderless rounded rectangle?
Is it possible to have a rounded Rectangle with no border? I create rounded rectangles and rectangles with border sizes of 0f and 1f. For
-
How can I read Roman page numbers?
Should I use labels or annotations to get Roman page numbers instead of indexed page numbers? In Adobe Reader, the first pages of an
-
iText 7: Jump-Start Tutorial for .NET
NOTE: We are continually updating our features- and have some new features that are not included in this eBook yet. You can find a full
-
iText 7: Jump-Start Tutorial for Java
NOTE: We are continually updating our features- and have some new features that are not included in this eBook yet. You can find a full
-
How to format a field as a currency?
I use iTextSharp to populate a form with data. I just learned [/question/how-format-field-percentage](how to format a field as a
-
How to split a row over multiple pages?
Can anybody suggest how I can split a row over multiple pages? I am using PdfPTable to create a table in PDF. I have a single row in the
-
How to show an image at a text field position?
I have a PDF document which has AcroForm text fields. Now I want to insert a signature image in one of the those fields. I want to place
-
.How to add a border to a PDF page? vLatest
This is a snippet of my source code: Rectangle rect= new Rectangle(36,108); rect.enableBorderSide(1); rect.enableBorderSide(2);
-
Release iText 7.0.2
For this release, we have added some a minor updates to our iText 7 platform, version 7.0.2. As well as some updates for the License Key
-
How to check if a font is bold?
I have an application, that extracts headings out of pdf files. The documents that the application is supposed to work with, all have
-
How to enable LTV for a timestamp signature?
Acrobat tells me my signature is LTV enabled, but the timestamp signature is not. How can I make both LTV enabled? I'm using iText to
-
How to increase the accuracy of measurements in iTextSharp?
I want to resize a pdf to a specific size, but when I use scaling it loses accuracy because a float rounds the value. How can I avoid
-
How to add an image to an AcroForm field?
I'm trying to fill out a PDF form using the AcroFields class. I'm able to add text data perfectly, but I'm having issues adding images.
-
How to add text as a header or footer?
There are no errors but my footer doesn't show up. I'm creating a pdf and want to add a footer. I did everything like the book "iText in
-
How to divide a page in N parts so we can fill each with a different source?
How can I achieve this using iTextPDF in java? Example So the first half of the page would be in English while the second part would be
-
.How do I set parameters back to the default value? vLatest
I am using absolute positioning when writing text in a PDF document using iTextSharp. It only have a single BaseFont instance for a
-
How do I set parameters back to the default value?
I am using absolute positioning when writing text in a PDF document using iTextSharp. It only have a single BaseFont instance for a
-
pdfOptimizer: Support added for Font, Image, Color Space optimization
Background: pdfOptimizer https://itextpdf.com/en/products/itext-7/compress-pdf-pdfoptimizer is iText's latest and greatest innovation in
-
How to add two images in one cell?
I'm currently creating a system that generates a PDF. However, I can't put two or three images in a single cell. What should i do? Posted
-
How to show an image with large dimensions across multiple pages?
I have an image with large dimensions which I How could I split the image into multiple pages while retaining its original dimensions? I
-
Chapter 1: Hello HTML to PDF
In this chapter, we'll convert a simple HTML file to a PDF document in many different ways. The content of the HTML file will consist of
-
Release iText 7.1.11
iText 7.1.11 brings the second quarterly release of 2020 for the iText 7 family, with SEVEN (7) out of EIGHT product releases. You know
-
How to create a pushbuttonfield with double byte character text?
I need a pushbuttonfield with double byte characters (DBCS) as the text. This works: PushbuttonField myButton = new
-
Part II - Proprietary APIs and Custom Providers
In contexts with higher security requirements the private keys usually are not available in local key stores but instead in external
-
How to write a Zapfdingbats character at a specific location on a page?
I want to put a check mark using Zapfdingbats on a specific location in my PDF document. What I achieved so far is this: I can show the
-
How to underline a portion of text in a text field?
I have an application that uses iText to fill PDF form fields. One of these fields has some text with tags. I need the text enclosed in
-
What is the PdfPTable.DefaultCell property used for?
I need help explaining the Java documentation for PdfPTable.getDefaultCell. The Java documentation for PdfPTable.getDefaultCell() reads:
-
How to add a table in the top-right corner of the page?
I'm creating a table in PDF using iText. I want to place it in top right corner. Here is my code snippet: PdfPTable table = new
-
How can I find the maximum character limit for a text field?
How can I find the maximum character limit for a text field in an AcroForm form? I've researched this problem and I tried the following
-
How to create a link to a specific page number?
My question is how to target a page based on its number. For example if targeted page number is 6, clicking on the Anchor text should
-
Basic Concepts (Glossary)
If you are new at Blockchain and PDF, you'll find this short glossary interesting. Concepts related to Blockchain: Distributed database:
-
How to fit a String inside a rectangle?
When the column height is not sufficient to add the content of the strings, why is the content incomplete? I'm trying to add some
-
How to put text above a barcode instead of under the bars?
How do I produce barcodes with text above instead of below? I'm using iText to dynamically generate PDF docs.I'm able to introduce bar
-
How to change width of single column of table?
I am looking to change the width of a column to fit a longer word. hello I have created table in a PDF file using iText. The heading of
-
How to set a fixed background image for all my pages?
I want to apply the background image to all of the pages, but it is only showing up on the last page. Why is that? On Button Click, I
-
How to prevent splitting a table?
How to ensure the entire table goes on the same page. I'm developing an app that generates PDF using iText. I have a table that has 3
-
How to add an x-offset to a text pattern with every x-step?
I am creating a text pattern within a rectangle. Is there a way to increase the xStep parameter of the pattern? I am creating a text
-
How to continue field output on a second page?
I have generated a PDF from a template. The PDF has a field in the middle of it that is of variable length. I am trying to work it so
-
How to change the spacing between words and characters?
I want to set the text alignment to justified, but I don't want iText to add any extra space between the characters. I don't want extra
-
How to add a text to the left and to the right in a header?
How do I divide my header and footer into three sections? I need to add more than one header and footer to my document. In header I want
-
Why aren't my fonts getting registered?
I have 156 TTF files under my /usr/share/fonts directory tree. Why aren't these being registered? I have a program using iTextSharp that
-
Tables
How do I change the border color of a PdfPCell? How to add an image and text to the same cell? How to create a table with complex
-
How to tell iText which fields to flatten first?
How do I change the order on the page of these fields with iText? I have a PDF with text form fields at are layered one on top of the
-
How to add a watermark to a page with an opaque image?
Is it possible to add a watermark that will be transparent on top of an image? I currently use: PdfContentByte canvas =
-
How to set background image in PdfPCell in iText?
I am currently using iText to generate PDF reports. I want to set a medium size image as a background in PdfPCell instead of using
-
How can I convert a CSV file to a table with a repeating header row?
I am generating a PDF file from CSV using iText. I need to format the file such that the header row (which occurs in the beginning of
-
How to draw vertical gradient in iTextSharp?
I can make a horizontal gradient, but how do I make it vertical? I am trying to draw a vertical gradient at the bottom of an iTextSharp
-
How to add a full line break?
I use itextsharp and I need to draw a dotted line break from the left to the right of the page (100% width) but I don't know how to do
-
How to get the author of a "free text" annotation?
Is it possible to get the author of a free text annotation using iText? I can retrieve the /Type and /Contents, but I can't find a way to
-
How to calculate the height of an element?
I am generating PDF files from XML data. I calculate the height of a paragraph element like this: float paraWidth = 0.0f; for (Object o :
-
Release pdfRender 2.0.1
Release date: January 11, 2022 For the pdfRender 2.0.1 release, we have updated to a new version of Jpedal which brings a number of bug
-
How to generate 2D barcode as vector image?
Why are our barcode pages coming out completely black? I am generating 2D barcodes using iText API, but these barcodes are placed into
-
How to format a String resulting in a two-column display?
I'm trying to print in PDF two columns of information that contain some strings that the user inputs. This is my code so far: string s =
-
How to avoid an exception when importing a TIFF file?
When I try to convert a specific tiff file to PDF, the following exception occurs: java.lang.RuntimeException: Scanline must begin with
-
Actions and annotations
How to add an In Reply To annotation? How to attach files to a PDF? How to rename named destinations in existing PDF files? How to change
-
Adding backgrounds using page events
Examples written in answer to questions such as: Click How to change the color of pages? How to draw a border for PDF pages?
-
How to get text and image in the same cell?
I have create a table which has 48 images. I put the images to the right side in the cell. Now I would like to put the number of the
-
How to right-align text in a PdfPCell?
I have a C# application that generates a PDF invoice. In this invoice is a table of items and prices. This is generated using a PdfPTable
-
How to set the export value of a check box?
I need to add a check box to an existing PDF. I also need set the export value of this check box. I saw that I can get the possible
-
How to find out which fields are required?
I'm starting with new functionality in my android application which will help to fill certain PDF forms. I found out that the best
-
How does a PdfPCell's height relate to the font size?
In iText, what is the minimum height of a PdfPCell for which a given size of font text is visible? Is there any ratio between PdfPCell
-
pdfHTML: support for inline-block with a width percent value
In previous versions of pdfHTML there was a CSS bug where we did not fully support using a span or label tag in certain situations. For
-
How to read bookmark titles?
I am working with a single PDF containing multiple documents. Each document has a bookmark. I need to read the bookmark names for a
-
Release pdfHTML 3.0.1
A new feature in this release is the introduction of support for <linearGradient> in SVG and linear-gradient() in CSS. This is a commonly
-
.How to add a shading pattern to a custom shape? vLatest
I have drawn an equilateral triangle as follows using iText canvas.setColorStroke(BaseColor.BLACK); int x = start.getX(); int y =
-
How to add a shading pattern to a custom shape?
I have drawn an equilateral triangle as follows using iText canvas.setColorStroke(BaseColor.BLACK); int x = start.getX(); int y =
-
Chapter 5: Custom tag workers and CSS appliers
In this chapter, we'll change two of the most important internal mechanisms of the pdfHTML
-
Release pdf2Data 2.1.9
Release date: October 22, 2020 In this release, we added a feature which a number of customers have requested. This is the grouping of
-
pdf2Data: Grouping of extracted values in XML
pdf2Data 2.1.9 introduces a new rule: groupByTb: dataField. This rule allows the grouping of extracted values in the output XML file,
-
How to reduce redundant code when adding content at absolute positions?
This is part of a vb.net http://vb.net app that uses the itextsharp library: Dim cb As PdfContentByte = writer.DirectContent
-
Getting started
How to generate and design PDFs with iText or iTextSharp? How to underline text with a dotted line? How to add a full line break? How to
-
How to add an inner table surrounded by text?
I am trying to add a table surrounded by text to an outer table, but the inner table disappears and I can't seem to fix the problem. Here
-
How to define the page size based on the content?
I'm generating a PDF document with iTextSharp. This document must have only one page. In other words the content must fit the page size.
-
How to continue an ordered list on a second page?
I am currently creating the document by creating ColumnText objects that are placed at specific coordinates. The content consists of
-
How can I find the border color of a field?
Is there anyway of finding the border color of a specific field in my PDF? I could get AcroField.Item, but I don't see an option to get
-
What does PDF 2.0 stand for?
PDF 2.0 specifies a digital form for representing electronic documents to enable users to exchange and view electronic documents
-
pdfOffice: improved conversion of docx files containing embedded videos
With the release of iText 7.2.2 and pdfOffice 2.0.2, we've resolved an issue affecting the conversion of .docx files containing embedded
-
Can I generate a PDF from a URL instead of from a file on disk?
You can generate a PDF from any HTML InputStream. In most of the examples, we have used a FileOutputStream, but in chapter 4
-
Page events
Why does my header overlap with my content? Why is my content overlapping with my footer? How to add a text to the left and to the right
-
Content parsing, extraction and redaction of text
What are the extra characters in the font name of my PDF? How to get the co-ordinates of an image? How to create and apply redactions?
-
pdfHTML: Support for overflow-wrap, word-break CSS Properties
Background: Among the wide array of feature additions and bug fixes arriving with iText Core 7.1.14 and pdfHTML 3.0.3 comes the addition
-
Create fields in a table
These examples were written in answer to questions such as: Click How to distribute the radio buttons of a radio field across multiple
-
Why doesn't FontFactory.GetFont() work for all fonts?
If I say: var georgia = FontFactory.GetFont("Georgia Regular", 10f); it doesn't work. When I check the state of the variable georgia, it
-
Alternatives to using a PdfPTable
Examples written in answer to the question Click How to format a String resulting in a two-column display? simpletable13 <div
-
pdfCalligraph: Support for Myanmar script
With iText 7.1.13 and pdfCalligraph 2.0.8, we are pleased to announce that we now support the full support for rendering Myanmar script.
-
Support of proper word wrapping in languages with special scripts
In release 7.1.13 of the iText Core layout API, we have made some important changes regarding how word-wrapping is handled in the context
-
Setting of choice form field using setValue Method
New for iText Core 7.1.11 is a change to how form fields are handled, specifically when /TI value is present, and when using SetValue for
-
How to rotate a single line of text?
How do I rotate text using the central point? I'm converting a document which is created with a online editor. I need to be able to
-
Showing special characters
These examples are written in the context of questions such as: Click How to display indian rupee symbol? Click Why isn't the Rupee
-
Why is my PDF missing several characters?
In spite of the abundance of documentation on how to use font files, and how to create documents with text in different languages, people
-
How to add a table to the bottom of the last page?
I have created table in a PDF document using iText. This works fine, but I don't want to add the table at the current pointer in the
-
Does my HTML have to be valid XML?
If you are still using iText 5 and XML Worker, you have to provide XHTML. For instance: a single <br> wasn't allowed in your HTML; you
-
Release pdfHTML 4.0.2
Release date: April 11, 2022 pdfHTML is an iText 7 add-on that allows you to easily convert HTML and CSS into standards compliant PDFs
-
Why do I get a "getOutputStream() has already been called for this response" error in JSP?
How can I generate a dynamic PDF file which can be downloaded by client machine? I'm using JDBC to fetch data from database and then I
-
Before we start: installing iText 7 | .NET
All the examples explained in this tutorial are available on our web site from this URL:
-
Which image types are supported by iText?
I want to add a PNG image to a PDF file, but I've read that PNG files aren't supported in PDF. Does this mean that I can't use PNG files
-
Before we start: Overview of the classes and interfaces
When we talk about iText 7's basic building blocks, we refer to all classes that implement the IElement interface. iText 7 is originally
-
How to format a field as a percentage?
I use iText from C# code. I use AcroFields to populate a form with data, but I lose my formatting. I am using the following: Stream os =
-
How to truncate text within a bounding box?
How can I stop the text from overflowing a given region when writing? I am writing content to a PdfContentByte object directly using:
-
pdfHTML: Support for generating cross references for TOC creation with target-counter, target-counters CSS properties
Background: The target-counter and target-counter CSS Level 3 properties retrieve counter values and display information from the
-
Release iText 7.0.3
With 7.0.3 https://mvnrepository.com/artifact/com.itextpdf/itext7-core/7.0.3 we're bringing you another maintenance release for iText 7
-
Release iText 7.1.10
iText 7.1.10 brings the first quarterly release of 2020 for the iText 7 family, and coincidentally it's on the day that iText, as a
-
pdfHTML: Support for linearGradient in CSS and SVG
Introduction In pdfHTML 3.0.1 (as well as iText Core release 7.1.12) came support for the linearGradient attribute within SVG input as
-
What is the difference between iText, JasperReports and Adobe LC?
I want to know the difference or comparison between different PDF creation / generation techniques. For Example: iText, Adobe LC, Jasper
-
Support for linearGradient Color Scheme in Layout, CSS and SVG
Introduction A commonly used element in both CSS and SVG frameworks is linearGradient, which allows for progressive transitions between
-
How to precisely position an image on top of a Table?
I need to precisely position an image over a table, for example: https://itextpdf.com/sites/default/files/xVP8M.png Observe that the
-
Can I convert an HTML form to a PDF?
There is limited support for converting HTML forms to a PDF document. If you have an HTML file with text fields that you want to convert
-
Migration guide from iText 5 to iText 7
Installation instructions Instead of having everything in one giant jar (or DLL), we have split iText into several independent parts. You
-
Release iText Core 7.1.17
Release date: October 25, 2021 The iText 7.1.17 release is a maintenance release with a security bug fix for a vulnerability that allowed
-
How to add a table on a form (and maybe insert a new page)?
I essentially just need to be able to specify where the table starts on the page (so it wouldn't overlap the existing content) and then
-
How to draw a rectangle around multiline text?
How do I draw a rectangle outlining my text? I am trying to draw a rectangle around multi-line text in iText. I use this code to draw the
-
How to tell iText how to clip text to fit in a cell?
When I call setFixedHeight() on a PdfPCell, and add more text than fits in the given height, iText seems to print the prefix of the
-
Could not find a glyph corresponding to Unicode character
We ship pdfOCR https://itextpdf.com/en/products/itext-7/pdfocr with Liberation https://en.wikipedia.org/wiki/Liberation_fonts (GitHub
-
Nested tables
These examples were written in answer to questions such as: Click How to nest tables without extending the inner table? Click How to
-
Creating a simple PDF/UA document
This example was written in answer to the question How can I generate a PDF/UA compatible PDF with iText?
-
How to underline text with a dotted line?
I need to merge 2 paragraphs, the first is a sequence of dots, and the second is the text that I want write on dots: Paragraph pdots1 =
-
How to get a font from an array?
Is it possible to create a Font object from a byte array instead of using file paths? The FontFactory class has two methods for
-
Release iText 7.1.9
iText 7.1.9 is the latest quarterly release for iText 7 Core/Community. This release includes further documentation
-
Release pdfXFA 3.0.1
Release date: April 11 2022 pdfXFA is an iText 7 add-on for Java and C# (.NET) that allows you to flatten dynamic XFA forms to static
-
How to create a table based on a two-dimensional array?
I have a series of list in this list: private List<List<String>> tableOverallList; This object contains 8 values in each list. I need to
-
Release iText Core 7.1.14
Release date: January 14, 2021 iText Core 7.1.14 is the latest release of your favorite PDF library for Java and .NET, and the first
-
How to find out the current cursor position on a page?
I'd like to execute a command to tell me how much height has been consumed thus far in the document (for the current page) so I can set
-
How to apply color to Strings in a Paragraph?
I want to have different font color and size for these Strings. How Can I do that on ColumnText/Paragraph? I am combining 2 strings to
-
How to create radio buttons inside a table?
How do I use iText 7 to create a table with a radio button inside? I know how to create a table and I know how to add a radio field using
-
How to get the current page count?
When I try to count the total number of pages, I don't get the current amount. Why is that? I have to create a PDF document from a grid
-
How to choose the optimal size for a font?
Given a certain available width, how do I define the font size for a snippet of text, so that it matches the available width? Posted on
-
Adding a cover page to an existing PDF
These examples were written in answer to the question Click How to add a cover page to an existing PDF document? addcover1 <div
-
Release pdfOffice 1.0.0
Release date: July 5, 2021 We are proud to announce the first release of pdfOffice
-
iText 7.1 - Migration guide for Java
Introduction This is a short migration guide to help you or your developers switch from 7.0.x to 7.1.0. This guide will broadly cover the
-
iText 7.1 - Migration guide for .NET
Introduction This is a short migration guide to help you or your developers switch from 7.0.x to 7.1.0. This guide will broadly cover the
-
Part IV - Appearances
When people sign a PDF, they often do not merely want to see that signature in some extra signature panel, they want to see a
-
How to add an image and text to the same cell?
I am generating bar codes in a table. Now I want to insert the student code under the bar code label. How can I do this? My code
-
.How to create a table based on a two-dimensional array? vLatest
I have a series of list in this list: private List<List<String>> tableOverallList; This object contains 8 values in each list. I need to
-
How to add a border to a paragraph?
I've created a Paragraph using iText. Now I have to add a border to this paragraph, not to the whole document. How do I do this? Posted
-
How to convert an ASP or JSP page to PDF?
The pdfHTML add-on parses HTML and CSS. That's it. ASP.Net, JSP, MVC, Razor, Struts, Spring, etc, are all HTML frameworks iText and
-
How to align two paragraphs to the left and right on the same line?
I want to display two pieces of content (it may a paragraph or text) to the left and right side on a single line. My output should be
-
Does anyone have any idea how TabStop works?
I'm still trying to learn iText and have a few of the concepts down. However I can't figure out what TabStop is or how to use it. My
-
How to add a hidden text field?
I'd like to create a text field with iTextSharp that is not visible. Here's code I'm using to create a text field: TextField field = new
-
How to draw a borderless table in iTextSharp?
It appears as though the PDfPCell class does have a border property on it but not the PdfPTable class. Is there some property on the
-
How to create unique images with Image.getInstance()?
How can I guarantee a new bitmap every time? I need to use the GetInstance() variant that accepts raw bitmap data: Image.getInstance(int
-
How to get rid of the top padding in a PdfPCell?
I'm creating labels (as in Avery labels) using tables. Positioning of label elements requires some very tight tolerances in order to fit
-
How to add text inside a rectangle?
I have created a rectangle using PdfContentByte. Now I want to add text inside this rectangle. How can I do this? My rectangle code is:
-
Why is my content overlapping with my footer?
I want the content that overlaps to automatically move to the next page. I am using iTextSharp to generate PDF documents, but the content
-
Why is the text I extract from an English PDF page garbled?
I'm trying to extract and print English text out of a PDF on the console. Extraction is done through iText's PdfTextExtractor class. The
-
Scaling large HTML content to render onto smaller PDF page sizes
There are often instances where you need to convert HTML content that is larger then the default page size of your PDF. This will cause
-
Page numbers and PDF/A
This example was written in answer to the question Click How to add a page number in the header of a PDF/A Level A file? pdfa1a <div
-
What does TextPositioning in pdfOCR do?
pdfOCR https://itextpdf.com/en/products/itext-7/pdfocr allows you to define the way text is retrieved in the Tesseract
-
Why are the AcroFields in my document empty?
I have a PDF form with filled out fields. I can change the values and save them. But when I try to read the AcroFields, they are empty.
-
Release pdfRender 1.0.4
Release date: April 14, 2021 This release of pdfRender brings a lot of performance improvements and few bugfixes that make PDF to image
-
How to create a custom dashed line separator?
Using the DottedLineSeparator class, I am able to a draw dotted line separator. Similarly, is it possible to draw continuous hyphens like
-
Clipping pages in an existing PDF
This example was written in answer to the question Click How to crop out a part of PDF file? clippdf <div
-
Why do I have to buy core to use the add-ons?
The modular architecture of iText v7 allowed us to create significant add-on functionality with the development of add-on modules that
-
Why is iText embedding a font even when I specify not to embed?
Why does NOT_EMBEDDED option still embed the font ? I am using Noto fonts to create a PDF and evaluating embedding versus not embedding.
-
Chapter 2: Defining styles with CSS
In the previous chapter, we looked at different snippets of Java code. In this chapter, we'll use the same snippet for every example:
-
Release iText Core 7.1.16
Release date: July 5, 2021 The iText Core 7.1.16 release is already our third release for 2021 and it brings a few important
-
How to change the icon of a push button field?
I am currently trying to fill out a predefined Form with itextsharp while adding an image. How can I do this? I'am currently trying to
-
Changing page sizes of existing PDFs
This example was written in answer to the question Click How to extend the page size of a PDF to add a watermark? addextramargin <div
-
.Clipping pages in an existing PDF vLatest
This example was written in answer to the question Click How to crop out a part of PDF file? clippdf <div
-
How to create a table with rounded corners?
How do I do this? I have to create a table having rounded corners, something like it: Posted on StackOverflow on May 14, 2014
-
How to create a table with only vertical borders?
It is possible with iText 7 to create a table with vertical lines only? I have a table with vertical and horizontal lines. But I do not
-
pdfRender: BufferedImage as output format
The pdfRender add-on enables you to easily display (render) any PDF as an image. Before version 1.0.2 of the library you were able to
-
Why doesn't getDefaultCell().setBorder(PdfPCell.NO_BORDER) have any effect?
For some reason table.getDefaultCell().setBorder(PdfPCell.NO_BORDER) has no effect: my table has still borders. Here is my code:
-
How to create a JavaScript action to open the attachments panel?
Is there an action which opens the attachments panel? Not right away, but when the user presses some text? Is there an action which opens
-
Parsing PDFs
Examples written in answer to questions such as: Click How to use a text extraction strategy after applying a location extraction
-
pdfOffice - Example
pdfOffice is an iText 7 add-on that allows generating a PDF document from either a Word, PowerPoint, or Excel file. Currently supported
-
How to position text relative to page?
My code gives me inconsistent positions of text. int n = reader.getNumberOfPages(); PdfImportedPage page; PdfCopy.PageStamp stamp; for
-
.Changing page sizes of existing PDFs vLatest
This example was written in answer to the question Click How to extend the page size of a PDF to add a watermark? addextramargin <div
-
How to fill a rectangle with color?
How do I ensure that I can choose the fill color? I have the following code : PdfContentByte canvas = writer.getDirectContent();
-
Release iText Core 7.1.12
The iText Core 7.1.12 release is the third quarterly release of 2020 of our innovative PDF library. This Core release brings initial
-
pdfHTML: Responsive Design
This is an example of how pdfHTML is able to reflow the contents of generated PDF documents using responsive design. The code below
-
How to check for an event and remove it?
Is there a way to check to see if a page event has already been added to a PdfWriter object? If so, can you also remove that page event?
-
Is it safe to remove XFA?
Are there any issues that can come up of removing the XFA format from a PDF form? If I don't drop XFA, I can see the fields pre-filled on
-
How to keep specific words together on one line?
I want to make sure that firstname and lastname aren't split by a newline. When a phone number contains space characters, I don't want
-
Volume Counter installation guide
Important! As of the release of iText 7.2 https://kb.itextpdf.com/home/it7kb/releases/release-itext-7-2-0, the old licensing system was
-
How do setMinimumSize() and setFixedSize() interact?
Is it OK to call setMinimumSize(15) on some cells in a row, and setFixedSize(15) on the other cells of the same row? What I would like is
-
What is the difference between AGPL and commercial license?
AGPL is a copyleft license. Copyleft gives every person who receives a copy of a work permission to reproduce, adapt or distribute the
-
Encrypting / Decrypting PDFs
These examples were written in answer to questions such as: Click How to decrypt a PDF document with the owner password? decryptpdf <div
-
Adding page numbers to an existing PDF
In this example, we use ColumnText to add page numbers to an existing PDF document. stamppagexofy <div
-
pdfHTML: Support for the CSS object-fit Property
The release of pdfHTML 3.0.2 includes a number of bug fixes as well as useful feature additions. Among those additional feature is
-
Where can I download the license key library?
How to download the iText 7 or iText 5 license key library manually, or using Maven or NuGet. Important! As of the release of iText 7.2
-
Installing iText 7 pdf2Data for Java
Thank you for your interest in our data extraction add-on — pdf2Data, we hope you will enjoy using our product and share your experiences
-
How to introduce multiple PdfPageEventHelper instances?
I have to generate a large amount of different types of documents using the iTextSharp library that all have things in common. Some pages
-
pdfOffice + pdfSweep Redaction Example
Background: With the addition of pdfOffice to the iText 7 Suite portfolio comes a wide range of potential synergies and new frontiers for
-
Installing iText 7 pdf2Data for .NET
Thank you for your interest in our data extraction add-on—pdf2Data, we hope you will enjoy using our product and share your experiences
-
How to distribute the radio buttons of a radio field across multiple PdfPCells?
I'd like to make a PdfPTable with multiple rows. In each row I'd like to have a Radio button in the first cell and descriptive text in
-
How to make sure a check box is printed?
When I click on File and Print, the check boxes don't show in the print preview, and also don't print. Why is that? I am new to
-
Page events for headers and footers
Some examples for questions such as: Click How to add text as a header or footer? Click How to add a table as a header? Click How to
-
How to define the width of a cell?
I'm trying to change the width of a cell, but I don't succeed. Can someone explain how to define the width of a cell? Posted on
-
Release pdf2Data 2.1.10
Release date: January 14, 2021 In this release, we've extended the list of available selectors to add the possibility to extract text by
-
Release pdf2Data 3.0.0
Release date: October 25, 2021 The main changes for pdf2Data 3.0.0 come from the upgrade of iText to 7.2.0, so all improvements in iText
-
How to create a pop-up window to display images and text?
I want to add and pop-up window in a C# project to display an image and text by clicking on an annotation.
-
Can pdfHTML render Base64 images to PDF?
Yes, iText supports external images as shown in different examples in the previous chapters, but it also supports inline images stored as
-
Which version of the license key library should I use?
This depends on which version of iText you are using: If you're using iText 7 Suite version 7.2 (or newer) you'll need to use version
-
Watermark examples
These examples were written in response to questions such as: How to add a watermark to a page with an opaque image? How to watermark
-
Do we need a browser engine to render HTML+CSS to PDF?
No, pdfHTML does all the work parsing the HTML and CSS, and mapping them to iText objects and styles. Then the iText engine renders the
-
How to introduce a rowspan?
I am adding a table to a PDF file. I have 3 rows and 3 columns. I want the first column to appear only once as a single cell for all the
-
pdfOffice + iText Core Annotations Example
Background: With the addition of pdfOffice to the iText 7 Suite portfolio comes a wide range of potential synergies and new frontiers for
-
How to tile a document and add margins to the tiles?
I am tiling a document as is done in the TilingHero example. That works well, but now I'd also like to add margins to each page. Is that
-
pdfHTML: Custom ResourceRetriever
In release 7.1.13 of iText Core and 3.0.2 of pdfHTML we've implemented a new class called ResourceRetriever. This class allows you to
-
Release pdfOCR 1.0.0
Main blog - 1140x300.png We are proud to announce the first release of pdfOCR https://itextpdf.com/en/products/itext-7/pdfocr, the newest
-
How to introduce a custom font weight in iText 7?
Is there a way to set font weight as a number? I can set bold font like this: iTextSharp.text.Font font_main = new
-
How much does it cost to upgrade iText 5 to iText 7?
Customers who have a commercial license for iText 5 Core, and who are current support and maintenance subscribers can upgrade to iText 7
-
How to introduce rounded cells with a background color?
I have seen how to create cells with rounded borders, but is it possible to make a cell that will have no borders, but colored and
-
Images that use different filters
Read more about these examples in the Q&A entry Click How to add JPEG images that are multi-stage filtered (DCTDecode and FlateDecode)?