iText Knowledge Base
Search in spaces:
-
Why is my font not applied when I create a PDF document?
= PdfFontFactory.createRegisteredFont("garamond bold"); Click Why is my font not applied when I create a PDF document? if you want to see
-
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
-
Why do I get a font embedding error when creating PDFA/1a?
, TTC files, or a combination of AFM and PFB files. Click Why do I get a font embedding error when creating PDFA/1a? if you want
-
How to create a PDF with font information and embed the actual font while merging the files into a single PDF?
, and this is the reason why it's so big. I would like to create PDFs which only embed font information, not the full font. Then when I
-
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
-
Font examples
get a font embedding error when creating PDFA/1a? Can I embed a font only partially? Why is my font not applied when I create
-
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
-
Do I need a license for Windows fonts when using iText?
will be viewed in Adobe Reader and when I use Standard Type 1 fonts, Adobe Reader will have support for it, but my question is about
-
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
-
Why can't I set the font of a Phrase?
Why doesn't setting the font of a Phrase after the construction of the object work? I'm starting with iTextSharp and wondering
-
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
-
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
-
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
-
Why do I get a message saying 1.not.found.as.a.resource?
those metrics, you can't create a proper PDF. This explains what happens. Your question doesn't contain sufficient information
-
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
-
Why are PDF files different even if the content is the same?
to create PDF documents that look like identical twins when opened in a PDF viewer. And even if you create two identical PDF documents
-
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
-
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
-
Why does my header overlap with my content?
I am using page events to create a header that consists of a table. This table is added to each page in my document
-
Why can't I embed a font due to licensing restrictions?
a license for Windows fonts when using iText? Just like all software (including iText), fonts are licensed
-
Why isn't the Rupee symbol showing?
am using iText for creating PDF. I have read the answer to the question "How to display indian rupee symbol
-
How to create a TOC when merging documents?
example. You'll see that your code to merge PDFs is correct, but in my example, I added one extra feature: Text text = new Text
-
Chapter 1: Introducing fonts
, representation, and handling of text expressed in most of the world's writing systems. (i) When you create a font using an 8-bit
-
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
-
Chapter 7: Creating PDF/UA and PDF/A documents
the two PDF/A level A documents we created in the previous sections. Figure 7.6: merging 2 PDF/A level A documents When we look
-
How can I generate a PDF/UA compatible PDF with iText?
are using, you are responsible for creating the tag structure at the lowest PDF level when you use the setTagged() method. In more
-
How to allow a Unicode subscript symbol in a PDF without using setTextRise()?
trying to create PDF files using iText. I have found that Superscript (0,4,5,6,7,8,9) and Subscript (0,1,2,3,4,5,6,7,8,9
-
What is causing syntax errors in a page created with iText 7?
The document prints fine, so why do I get an error? I am getting the following error when I want to print a PDF generated
-
How to make a single letter bold within a word?
Font RED_NORMAL = new Font(BaseColor.RED); In iText 7 you could create a Text instance and set only color value. When you add
-
Chapter 7: Creating PDF/UA and PDF/A documents | .NET
of that image using alt text (line 16 and line 21). We have now created a PDF/UA document. When we look at the resulting page
-
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
-
Chapter 6: Using fonts in pdfHTML
reader. The shall in that last sentence means that you don't have to embed these fonts when creating a PDF document, because you can
-
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
-
How can I load a font from /WEB-INF/resources/fonts/foobar.ttf?
. I get following exception: ExceptionConverter: java.io.IOException: /fonts/CALIBRI.TTF not found as file or resource. Caused
-
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
-
Why is my cell event not triggered?
Please take a look at my code. I am expecting the cell event to be triggered for two cells, but it only triggers on the first
-
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
-
How to set a fixed background image for all my pages?
Click, I generate 4 pages on my PDF, I added this image to provide a background image: string imageFilePath = parent + "/Images
-
Why is content missing in my table?
or anything. Here's my scenario: I create a PdfPTable with 6 columns. However, when I add only 1 or 2 cells to the table, it's
-
How to add JPEG images that are multi-stage filtered (DCTDecode and FlateDecode)?
, and only stretch it up when the PDF is displayed, cutting up the image content into smaller patches of images,... So far, I have
-
Why do I get a "getOutputStream() has already been called for this response" error in JSP?
and then I use iText to create a PDF file which can be downloaded on client machine. The application is coded in HTML/JSP and runs
-
.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
-
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
-
Why is the page size of a PDF always the same, no matter if it's landscape or portrait?
If I call the getPageSize(), the value is always the same. Why isn't the value different for a page in landscape ? I have
-
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
-
Why do I have to pay for pdfhtml during my upgrade, when I already have XML Worker in iText?
XML Worker was created with the intention of converting very small and basic HTML into a PDF as a black-box method. pdfHTML
-
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
-
How to check if a font is bold?
: https://itextpdf.com/sites/default/files/UKSCU.png PDF Reference 1.7 section 5.7.1 I quote: The font contains glyphs outside the Adobe s
-
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
-
How can I use regular and bold in a single String?
a regular font within the text paragraph, while the constant part is bold? This is my code: String cc_cust_name = request.getParameter
-
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
-
.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
-
How to stamp image on existing PDF and create an anchor?
, but I would also like to make this image clickable: when a user clicks on the image I would like the PDF to go to the last page
-
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
-
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
-
.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
-
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
-
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
-
How to preserve high resolution images in PDF?
per page). But if I set page size to A4, I have to resize my pictures, because they're too large. Then they lose their quality
-
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
-
Chapter 4: Creating reports using pdfHTML
. Figure 4.6: Creating a PDF with bookmarks Observe that the resulting PDF document has bookmarks. When we click on the title
-
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
-
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
-
Why do I get a StackOverflowException in the OnEndPage() event handler?
Why does it not work when I override the OnEndPage event to add a paragraph to the document? In the code below, you can see
-
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
-
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
-
Chapter 5: Manipulating an existing PDF document
create a new PdfFont and we use this font and a new font size as extra parameters when we set the value of the "info" field
-
How to watermark PDFs using text or images?
(FontConstants.HELVETICA); Paragraph p = new Paragraph("My watermark (text)").setFont(font).setFontSize(30); // image watermark ImageData
-
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
-
How to update a PDF without creating a new PDF?
working fine. But, in doing so, it is required to create a new PDF and I would like the change to be reflected in the existing PDF
-
How can I add an image to all pages of my PDF?
, you'll discover that it is very easy to port the Java to C#. Click How can I add an image to all pages of my PDF? if you want to see
-
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
-
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
-
How to fit a String inside a rectangle?
some strings, images and tables into my pdf file (there have to be several pages) but when I try to use ColumnText (I use
-
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
-
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
-
Why do I get a BouncyCastle NoClassDefFoundError?
I want to encrypt my PDF but there seems to be an error. Here is the code: PdfReader reader = new PdfReader("my.pdf
-
How to enable LTV for a timestamp signature?
the addLtv() method. I get a PDF with 2 signatures, which is normal: the first is my own signature, the second is the document-level
-
Chapter 5: Adding AbstractElement objects (part 2)
, but we'll add two more chapters to discuss some extra functionality that is useful when creating PDF documents using iText. Published
-
Chapter 3: Generating PDF based on Media Queries
are expensive. What if there was a way to save on colored ink when printing our documents? Creating a PDF file for Print There's
-
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
-
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
-
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
-
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
-
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
-
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
-
Interactive forms
Why does iText enter a cross symbol when CheckType style is check mark? How to create radio buttons inside a table? How
-
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
-
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 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
-
Core SVG: Added support of font-relative units for the font-size property of a text element
incorrectly. This happened because iText would alternatively use default behavior when font size-relative length units
-
How do the measurement systems in HTML relate to the measurement system in PDF?
. For instance: when I open Word on my PC, the default font is Calibri with a font size of 11pt. Although ISO 32000 claims
-
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
-
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
-
Page events
to rotate a page while creating a PDF document? How can I add an image to all pages of my PDF? How to add a rectangle to every
-
Release iText 7.0.3
@font-face Max width for tables in case nested table Initial implementation of new PDF 2.0 tag set Investigate differences PDF 1.7
-
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
-
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
-
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
-
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
-
How to generate and design PDFs with iText or iTextSharp?
to create the PDF design when I could just do it right within the PDF without having to rely on on various files that serves
-
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
-
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
-
How does a PdfPCell's height relate to the font size?
PdfPCell and font size? I am making a PDF with pages of size A3, A4 and A5. I need to know the relation between Font size
-
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
-
How to reorder the pages of a PDF file?
. Suppose that I have 16 pages in my PDF and that the TOC starts from page 13 and ends on page 15. I want to move the TOC
-
How to get the rendered dimensions of text?
of a given width and height. That is, if I have to render the text "Today is a good day to die" in a specific font in a PdfPCell
-
Why iText and Blockchain?
thought that PDF was here to stay, but when boarding a plane, we stopped using paper boarding passes, many of us are using a two
-
How to print mathematical characters like ?, ?, ?, ?, ? ?, ??
) and many others. How can I add them to a PDF? This is my code : Document document = new Document(PageSize.A4, 60, 60, 60, 60); try
-
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
-
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
-
How to send a file to the server through a PDF?
this selected file to server? I'm dynamically creating some PDF files through my application, and I need to use several components
-
Chapter 2: Defining styles with CSS
="www.imdb.com/title/tt4680182">IMDB</a></font> </body> </html> The HTML page and the PDF that were created based on this HTML page are sh
-
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
-
Questions about PDF in general
is the origin (x,y) of a PDF page? Why do PDFs change when processing them? Can I change the page count by changing internal metadata
-
Fix for when a link occupies more than two areas, a NullPointerException is thrown
path for pdf file String outFileName = System.getProperty("user.dir")+"\\output.pdf"; // create Pdfdocument with pdfwriter
-
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
-
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
-
How can I find the maximum character limit for a text field?
a font size in such a way that it fits into the text field. For example: if my text value is of length 100 characters
-
How to calculate/set font line distance?
font size. What should I use as XXX value in document.bottom() - XXX? Posted on StackOverflow on Sep 17, 2013
-
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
-
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
-
How to merge documents correctly?
to have it fit to page? I would like to add a link to an existing pdf that jumps to a coordinate on another page. I have
-
How to add a border to a PDF page?
); Why am I not able to add border to my PDF page even after enabling borders for all sides? I've set border and its color too
-
How can I serve a PDF to a browser without storing a file on the server side?
by Mishal Harish https://stackoverflow.com/users/4315788/mishal-harish You can use any OutputStream when creating a PDF file
-
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
-
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
-
iText 7: Converting HTML to PDF with pdfHTML
is built. The layout is created by traversing that tree, an approach that is much better suited when dealing with HTML to PDF
-
.How to add a border to a PDF page? vLatest
); Why am I not able to add border to my PDF page even after enabling borders for all sides? I've set border and its color too
-
General questions about iText
/ bytes I've processed? How to create a new PDF file if a file name already exists? Why do I get a getOutputStream() has already
-
How to create a pushbuttonfield with double byte character text?
https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/acroforms/CreateJapaneseButton.java exampl
-
How to resize an Image to fit it into a PdfPCell?
? If it's possible, where do have I to do this? Right after I load the image or when I put the image into my PDF table cell? When
-
Release iText 7.1.7
Improve robustness with improperly created form fields Better support for multiple/different fonts kernel Improve the performance
-
How to generate a report with dynamic header in PDF using iText 7?
of the report contains a list of customer transactions. My doubt is: How to generate a header dynamically for each client? I need
-
Inspect a PDF
annotation? How to extract embedded streams? Why do I get an InvalidPdfException: PDF header signature not found ? How can I read
-
How to introduce superscript?
2015. However, the th in 14 should be in superscript as is what happens when you use the "sup" tag. This is my code: ph102 = new
-
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
-
How to align a label versus its content?
to the list. I have a label (e.g. "A list of stuff") and some content (e.g. an actual list). When I add all of this to a PDF, I get
-
How to fix the orientation of a PDF page in order to scale it?
of an existing PDF document. This works fine if the pages aren't rotated, but I don't succeed in rotating pages correctly
-
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
-
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
-
Creating and editing PDF 2.0 Documents
PDF 2.0 support to iText! This page details how to create a PDF 2.0 document using iText, and how to take advantage of the new
-
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
-
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
-
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
-
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
-
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
-
How to solve an UnsupportedCharsetException when using itext-asian.jar
create fonts like this: PdfFont font = PdfFontFactory.createFont("KozMinPro-Regular", "UniJIS-UCS2-H", false); If you want to use
-
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
-
Why does PdfStamper create a file with 0 bytes?
When attempting to encrypt a pdf, I get a zero size file as a result. Any ideas what is causing this? File f = new File("C
-
Release iText 7.1.9
renderers Font selector produces lines with unexpected multiple fonts when calligraphy fonts are present SVG: Fix Preserve AspectRatio
-
How to rotate a page while creating a PDF document?
it to be bottom->top. I have been able to achieve the desired output by opening the PDF after it has been created and rotating
-
Release iText 7.1.3
as Optimized Pdf. [DEVSIX-1812 https://jira.itextsupport.com/browse/DEVSIX-1812] : Characters splitting unexpected when using brackets
-
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
-
How to get the UserUnit from a PDF file?
unit stored in some kind of dictionary in an element called /UserUnit. Loading my PDF file into a PdfReader, what do I need to do
-
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
-
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
-
Release iText 7.1.6
#signDetached Improve OCSPVerifier responder certificate verification Cover the case of updating LTV verification data of PDF when
-
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
-
How to extract a page number from a PDF file?
a minute!" you say, "When I open a PDF in Adobe Reader, I can clearly see a page number in the document!" Yes, you can see that page
-
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
-
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
-
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
-
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
-
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
-
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
-
Chapter 5: Custom tag workers and CSS appliers
file, but we use it to create three different PDF files: String[] names = {"Bruno Lowagie", "Ingeborg Willaert", "John Doe"}; int
-
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
-
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
-
Why aren't images added sequentially?
the document.add() method. Why is this? I am working on a pdf report that contains topics and images (charts). The document is formatted
-
Chapter 6: Creating actions, destinations, and bookmarks
to the one we created in chapter 4 when we rendered the entries in our CSV file to a PDF with a numbered list. Figure 6.1
-
How to reduce redundant code when adding content at absolute positions?
in this snippet look awfully redundant and in my opinion, this can't be the cleanest way to do things. Unfortunately, I can't
-
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
-
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
-
Why does the function to concatenate / merge PDFs cause issues in some cases?
in the original document, and so on. Concatenating PDFs was done using PdfCopy in iText 5. In iText 7 we create a new PdfDocument
-
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
-
Why do I get an "System.IO.FileLoadException: Could not load file or assembly" error?
In my .NET project I get an "System.IO.FileLoadException: Could not load file or assembly" error. What could be causing
-
How to delete attachments in PDF using iText?
see an empty array when I look inside the PDF: Empty array in iText RUPS If you want to remove all the embedded files at once
-
Release iText 7.0.4
] - NullPointerException thrown when converting HTML to PDF [DEVSIX-1441 https://jira.itextsupport.com/browse/DEVSIX-1441] - Digital Signa
-
Can I convert an HTML form to a PDF?
) https://api.itextpdf.com/pdfHTML/dotnet/2.1.6/classi_text_1_1_html2pdf_1_1_converter_properties.html#afeca6138fbda92c63947179d8d09aefe,
-
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
-
Chapter 3: Using renderers and event handlers | .NET
-c03e02_premierleague example looks pretty straight-forward too. Document document = new Document(pdf, ps); PdfFont font
-
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
-
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
-
Chapter 3: Using ILeafElement implementations
, we've used a txt file as a resource to create a PDF document. In this chapter, and in the chapters that follow, we'll also use
-
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
-
PDF and Digital Signatures
-32000 standards, was created to meet specific requirements. Requirements that PDF digital signatures need to meet The purpose
-
How to rotate and scale pages in an existing PDF?
doesn't work, which I suspect means I'm doing it wrong), but I have basically no idea how to properly scale the source page when
-
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
-
Which image types are supported by iText?
into PDF syntax. Instead of adding an Image XObject, iText will create a form XObject. When the image data is encoded using
-
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
-
pdfHTML: Support for overflow-wrap, word-break CSS Properties
">Supercalifragilisticexpialidociouslydociouslydociouslydociouslydociously</i>, think my crabs are over-cooked.</p> <br> <p class="label">
-
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
-
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
-
How to create a table in which the cells have different widths?
https://stackoverflow.com/users/5684405/mcs So you want to use iText to create a table that looks like this: Table with cells of differen
-
Chapter 3: Using renderers and event handlers
()) != null) { process(table, line, font, false); } br.close(); document.add(table); There are only some minor differences when
-
How to add a printable or non-printable bitmap stamp to a PDF?
Dialog box, it would not be printed, but when "Document and stamps" is selected, then the bitmap would print Right now I can create
-
Chapter 7: Handling events; setting viewer preferences and printer properties
to landscape. For instance, when we created PDF with tables in chapter 5, we created our Document object like this new Document
-
Chapter 4: Adding AbstractElement objects (part 1)
: in chapter 2, we've used the Paragraph class to convert a text file to PDF by creating a Paragraph object for each line
-
Release iText 7.1.10
] IndexOutOfBoundsException when processing Gujarati text in pdfCalligraph [PDFCALLIGRAPH] Wrong Toners position. TH SarabunPSK font
-
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
-
Fonts and merging documents
This example was written in answer to the question Click How to create a PDF with font information and embed the actual font
-
Why does using ColumnText result in "The document has no pages" exception?
); column.go(); document.close(); pdfDoc.close(); } When I run this code, I get the following error: ExceptionConverter
-
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
-
How to get specific types from AcroFields? Like PushButtonField, RadioCheckField, etc
); This returned false every time. To better explain my scenario: I have an existing PDF (I am NOT generating this file
-
Chapter 6: Reusing existing PDF documents
Gate Bridge, original size 16.54 x 11.69 in Now we want to create a PDF file with three pages. In page one, the original page
-
How to create a link to a specific page number?
should take to 6th page. I know how to target any text of any PDF page using code: Anchor click = new Anchor("Click to go
-
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
-
Chapter 6: Reusing existing PDF documents | .NET
Gate Bridge, original size 16.54 x 11.69 in Now we want to create a PDF file with three pages. In page one, the original page
-
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
-
Why does ColumnText ignore the horizontal alignment?
Why does the text appear printed on top of a column, where it is unreadable? I'm trying to get some rows of text on the left
-
How to use two different colors in a single String?
. String result = "Developed By : Mr.XXXXX"; I can create a paragraph in iText and set font with color like this: Font
-
Part I - Overview and Simple Cases
though the CNG RSA key class does allow selecting RSASSA-PSS when creating raw signature values. For RSASSA-PSS CMS signatures
-
How to move the content inside a rectangle inside an existing PDF?
in the original PDF should be shifted somewhat in the x and y direction. I have no influence on how the PDFs are created and I can accept
-
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 can I log the number of documents / bytes I've processed?
"How can I count the number of PDF reads and writes in iText 7?" in the Volume Counter FAQs. Please take a look
-
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
-
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
-
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
-
What is the difference between getPageLabels and getPageLabelFormats?
most of the time, but occasionally this is NOT the case. I have an example. It's a 150Mb PDF file which appears to have 4670
-
Create fields in a table
multiple PdfPCells? Click How to create radio buttons inside a table? Click Why does iText enter a cross symbol when CheckType
-
How to render certain HTML entities (such as arrows) to PDF?
https://stackoverflow.com/users/378386/aggsol When we discussed fonts in chapter 6
-
How to change the spacing between words and characters?
https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/objects/SpaceCharRatioExample.java to find
-
Advantages of using Blockchain for Signing PDF documents
the blockchain, based on the ID pair of the document you have at hand. You get a historical overview when each signature was applied
-
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
-
How to create a table based on a two-dimensional array?
. I need to place it in the table created. would like to have 2 Rows with 8 columns: String[] tableTitleList = {" Title", " (Re
-
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
-
Clearer exception messages when Outline Dictionaries break PDF specification rules
In the past iText threw generic exceptions when a PDF's Outline Dictionary violated the PDF specification
-
Volume Counter FAQs
the information that we collect, refer to your Software License Agreement (SLA). Can I use my volume license keys with iText 5? You
-
.How to create a table based on a two-dimensional array? vLatest
. I need to place it in the table created. would like to have 2 Rows with 8 columns: String[] tableTitleList = {" Title", " (Re
-
How to get the co-ordinates of an image?
are same as present in database? In my project, I want to find co-ordinates of the images in my PDFs. I tried searching iText, but I
-
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
-
How to send a 'success' response back to Acrobat Reader from a java servlet?
don't like the JavaScript (it can be annoying to see such an alert), why not stamp that message on the filled out form. When I don't
-
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
-
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
-
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
-
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
-
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
-
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
-
Release iText 7.1.4
] : PDF Debug doesn't work on Netbeans 9 when nb-javac is installed. New features [DEVSIX-1881] : Ship Indic and Arabic fonts
-
How to convert HTML containing Arabic/Hebrew characters to PDF?
/fonts/noto/NotoSansHebrew-Regular.ttf" }; We'll create a FontProvider instance that only uses these font files, and we'll use
-
How to get rid of the top padding in a PdfPCell?
setVerticalAlignment(Element.ALIGN_TOP) which doesn't result in positioning the text near the top border of my cell, even with padding 0.
-
Release iText 7.0.5
font [DEVSIX-1598 https://jira.itextsupport.com/browse/DEVSIX-1598] - ISplitCharacters is ignored in pdfHtml when content
-
pdfHTML: Using emojis in iText
to add the font with the emojis to a FontProvider so it can be provided to the HtmlConverter during conversion. When creating
-
How to extract embedded streams?
[streamLengths.size()])); pdfDoc.close(); } Note that I get all PDF objects that are streams. I also use two different methods: When
-
Digital Signatures Hub
signing PDF documents with iText 7. eBooks Digital Signatures for PDF Documents Our Digital Signatures eBook
-
How do I change the border color of a PdfPCell?
! What am I doing wrong? Here's my test code. cell1 should have a red top border and a blue bottom border: PdfPTable table = new
-
How to create a list without indentation?
) + "_"); Now the result looks like this: Using pre- and post-symbol If you're creating Tagged PDF, it's better to use List because iText
-
I upgraded to iText 7, how do I use my license?
of your application using the static method of the LicenseKey class. When you load a volume license key, the license key library
-
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
-
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
-
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
-
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 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
-
Where is the origin (x,y) of a PDF page?
, so you'll find it in every PDF. /CropBox: the region that is visible when displayed or printed. The /CropBox is equal
-
How to extend the page size of a PDF to add a watermark?
corner (usually, I refer to them as llx, lly, urx and ury). In my code sample, I change the value of llx by subtracting 36 user
-
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
-
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
-
How to divide a page in N parts so we can fill each with a different source?
. In my code, I loop over the different sections, and create a Paragraph object for each language: PdfDocument pdfDoc = new
-
Release iText 7.1.2
https://jira.itextsupport.com/browse/DEVSIX-1677] - font autosize property is not respected when flattening forms [DEVSIX-1732
-
How to add text to an image?
the table, my pdf PDF document has 3 pages. Now I want to add a signature image and add some text on that signature image using
-
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
-
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
-
How to add a table on a form (and maybe insert a new page)?
) and then stamp the table onto the existing PDF. I have two parts to my java project. I need to populate the fields of a PDF I
-
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
-
Absolute positioning of lines and shapes
a rectangle with color? How to set the line width of a clipping path? How to draw a borderless rounded rectangle? How can I serve a PDF
-
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
-
Release iText 7.1.11
formatted [CORE] Adding a PNG to pdf creates unopenable pdf document [CORE] The FillOpacity is not set correctly
-
How can I crop the pages of an existing PDF document?
How can I crop the pages of an existing PDF document? if you want to see how to answer this question in iText 5. page_size
-
How to create a JavaScript action to open the attachments panel?
which opens the attachments panel? Not right away, but when the user presses some text? I know the writer.setViewerPreferences
-
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
-
.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
-
iText Core: Support Type3 fonts reading for stamping mode
. The scenarios where this can be problematic is when attempting to extract or redact text that uses a Type3 font, or trying to read
-
.iText Core: Support Type 3 fonts reading for stamping mode vLatest
. The scenarios where this can be problematic is when attempting to extract or redact text that uses a Type 3 font, or trying to read
-
Chapter 1: Hello HTML to PDF
events; setting viewer preferences and printer properties." In this example, we create the PDF in full compression mode
-
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
-
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
-
Release iText 7.1.1
https://www.nuget.org/packages/itext7/7.1.1 Improvements in font handling: irregular Panose, encoding entries that are PDF Stream objects
-
Which languages are supported in pdfHTML?
: https://itextpdf.com/sites/default/files/pdfHTML_peacePDFfonts.png Peace in different languages (PDF fonts) We added the fonts/noto
-
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
-
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
-
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
-
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
-
Release iText Core 7.2.2
glyphs being displayed in PDF viewers. To address this, the font parsing logic has been rewritten to account for fonts where
-
How to convert colored images to black and white?
", or "An error exists on this page" upon trying to open the resulting PDF. What am I doing wrong? I'm trying to compress PDFs using
-
Release pdfHTML 4.0.2
compliant PDFs that are accessible, searchable and usable for indexing. It's also great for using HTML templates to generate well
-
Release iText 7.1.5
https://www.nuget.org/packages/itext7/7.1.5 kernel We can now also read MMType1 fonts (we treat them like regular Type1 fonts) We now sup
-
How to define the width of a cell?
of the columns and then create a cell with a new width value, then the new width will be applied. See, for instance, ColumnWidthExample
-
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
-
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
-
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
-
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
-
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
-
pdfOptimizer: Support added for Font, Image, Color Space optimization
embedded subsets of font files within a PDF document. Font Subsetting Optimization: Allows the embedding of just the glyph data
-
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
-
When Contracts aren't Smart Contracts
, offers a way to create invoices that can either be read by human beings in the form of an PDF/A-3 document, or processed
-
Release iText Core 7.1.12
works incorrectly with floating elements Pdf/A compliance checker incorrectly throws exception when a /Configs entry is not present
-
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
-
How to set the export value of a check box?
value for a new checkbox. With export value I mean the value which is marked in the screenshot Here is my code to create a check box
-
Release iText 7.1.0
https://jira.itextsupport.com/browse/DEVSIX-1468] - Create FontDescriptor for Type3 fonts and parse it when font is read from document [D
-
How to write a table header if part of a table is forwarded to the next page?
. I am using PdfWriter to create a PDF document. I am adding a PdfPTable to the PDF document. This table has header row
-
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
-
How to only read text from a constant location on PDF pages?
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 change the author name for comments?
with annotations created by "iText" and turn it into a PDF with annotations created by "Bruno Lowagie". The code is really simple: we loo
-
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
-
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
-
How to fill XFA form using iText without breaking usage rights?
there is no error in the XML. This is my code: using (FileStream pdf = new FileStream("C:/test.pdf", FileMode.Open)) using (FileStream xm
-
Image examples
cell? How to add a map with a pointer to a PDF? How to generate 2D barcode as vector image? How to create unique images
-
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
-
How to make an image a qualified mask candidate in itext?
should be masked with image B.jpg. But when I tried to make the image B a mask, I got the following DocumentException: This image
-
Unembed a font
How to unembed a font from a PDF unembedfont <div data-pym-src='https://itext.jdoodle.com/embed/itext' data-java-url
-
Can I change the page count by changing internal metadata?
Where can I read more about the internal structure of a PDF document? Some days ago I started to play with the internal
-
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
-
Does anyone have any idea how TabStop works?
it. My particular problem is that I want to fill the end of all paragraphs with a bunch of dashes. I believe this is called
-
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
-
Does my HTML have to be valid XML?
this problem when confronted with incomplete HTML syntax, we advised the use of jsoup https://jsoup.org to tidy up the HTML before
-
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
-
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
-
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
-
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
-
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
-
Merging documents and create a Table of Contents
These examples were written in answer to questions such as: Click How to create a TOC when merging documents? Click How
-
.How to add "continue on next page" / "continued from next page" to a table? vLatest
corresponds with a row in a PdfPTable and finally I add this PdfPTable to the Document. When the table is split, I need to add
-
How to add "continue on next page" / "continued from next page" to a table?
corresponds with a row in a PdfPTable and finally I add this PdfPTable to the Document. When the table is split, I need to add
-
Safeguards against loops in cross-reference structure of PDF files
https://blog.idrsolutions.com/2011/05/understanding-the-pdf-file-format-%E2%80%93-pdf-xref-tables-explained/. When loading PDF documents
-
How to give an image rounded corners?
into a PDF. Now I want to get the image width and height (while getting the image from disk) and make the edges of image curved
-
Installing the iText license key and license key library for Java and .NET
use your own license key and don't pass your license keys around. License key FAQs How do I check if my key has been loaded
-
.Merging documents and create a Table of Contents vLatest
These examples were written in answer to questions such as: Click How to create a TOC when merging documents? Click How
-
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
-
How to distribute the radio buttons of a radio field across multiple PdfPCells?
() method and I've created my own custom cell events to render text fields and check boxes in PdfPTables. However, I can't seem
-
How to change the color of a circle annotation?
annotation property, but I don't know how. When opening the PDF in Acrobat, the fill color property is in the appearance tab
-
How to set up a table display?
https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/tables/SimpleTable11.java example and the
-
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
-
Flexbox suport in pdfHTML
yet, however, it can already handle a lot of use-cases. Reminder All you need to do to convert the HTML code below into PDF
-
How to create unique images with Image.getInstance()?
https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/images/RawImages.java example. In this exa
-
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
-
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
-
Before we start: Overview of the classes and interfaces
interface is only implemented by the Table class. The basic building blocks make it very easy for you to create tagged PDF. Tagged
-
How to show an image with large dimensions across multiple pages?
this pageSize when creating the PdfDocument instance and I add the same image 4 times using different coordinates: PdfDocument
-
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
-
Scaling large HTML content to render onto smaller PDF page sizes
a PDF of a specific page size (such as A4 or Letter). You might also try fiddling with fonts or margin sizes, but this isn't always
-
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
-
How do I renew my license?
Annual subscribers are sent a series of reminder notices starting 60 days before the annual subscription expires. Contact an iText sales
-
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
-
What does PDF 2.0 stand for?
documents independent of the environment in which they were created or the environment in which they are viewed or printed. The PDF
-
How to tell iText which fields to flatten first?
of the other. When I fill the fields via iText and flatten the form, the form field that I had created on top of the other form
-
Table events
to a PdfPCell? How to set background image in PdfPCell in iText? How to introduce rounded cells with a background color? Why is my
-
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
-
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
-
What's an easy to print "first right, then down"?
and add them to the PDF Document in the right (row-major) order. This seems rather inelegant, so I wanted to check if there's
-
iText 7.1 - Migration guide for Java
https://demo.itextsupport.com/license-key/. 3. Accessibility changes In order to create a PDF/UA document, you need to explicitly call #a
-
iText 7.1 - Migration guide for .NET
. Accessibility changes In order to create a PDF/UA document, you need to explicitly call #AddUAXmpMetadata for WriterProperties, otherwis
-
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
-
How do I use pdfRender in a .NET environment?
parameters when utilizing pdfRender's CLI infrastructure. pdfrender screenshot.jpg Note that --license is required, and is used
-
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
-
Release pdfOptimizer 2.0.1
you in cases when processing can break the PDF/A-1 compatibility. In the future, we will extend the PDF/A-1 standard support
-
How to invoke a page break for nested tables?
), the report looks fine. When I nest a PdfPTable with a limited number of rows into a cell, all works fine too: /-------- 20 string
-
pdfRender: BufferedImage as output format
BufferedImage as well. Meaning it is now possible to create an in memory image object when converting from PDF using pdfRender, which
-
Release pdfHTML 3.0.3
in HTML. Previously when converting HTML code to PDF we supported either Base64 encoded images or images given by URL. Now
-
Absolute positioning of text
What is causing syntax errors in a page created with iText? How to fit a String inside a rectangle? Why does ColumnText ignore
-
How to get the number of characters in a field?
, then the numbers that fall outside the field disappear. I can share my PDF if necessary. Posted on StackOverflow on Jul 15, 2014
-
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
-
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
-
How do I extend my 30-day free trial?
Contact iText sales to see if you’re eligible to extend your free trial. free_trial itext_7_suite faq
-
pdfHTML: Support for generating cross references for TOC creation with target-counter, target-counters CSS properties
pdfHTML to then convert our above HTML into a valid PDF document as follows: Resources: Then, when we are finished, we are left
-
How to get the image DPI in PDF?
scanned images that are saved into PDF files through iText (using Java). I can get width and height (either through Matrix
-
Creating a custom Type 3 font
logo <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
Release iText 7.0.7
https://jira.itextsupport.com/browse/DEVSIX-1677] - font autosize property is not respected when flattening forms [DEVSIX-1756
-
Release pdfHTML 3.0.5
: right in span tag within table causes an incomplete table streams remain open when Exception thrown incorrect font usage when
-
If iText is free why do I have to pay for it?
A common misperception is that open source software is free. Open source software is often better than proprietary closed source software
-
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
-
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
-
XFDF examples
The following examples show how to use the XFDF functionality in iText 7 to create and fill forms: createxfdf <div data-pym
-
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 create a table with 2 rows that can be used as a footer?
copyright notices. I tried to create this table using ColumnText, but I am not able to set the background color for the row (only
-
How to prevent images from resizing in a table cell?
Is there a way to make all the images the same size? I would like to create a table that has a list of dots. I don't know
-
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
-
pdfHTML: Creation and/or merging of outlines for documents
When we generate a PDF file from iText that contains outlines, clicking such outlines should redirect to the corresponding contents
-
Actions and annotations
-printable bitmap stamp to a PDF? How to open an MS Word attachment by clicking an image? How to create a link to a specific page
-
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
-
PDF Portfolios
contain multiple files integrated into a single PDF. Files in a PDF Portfolio can be in a wide range of file types created
-
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
-
Support for linearGradient Color Scheme in Layout, CSS and SVG
for how to use this functionality with pdfHTML, we've created a separate article
-
How to draw lines on an image?
of the ellipse and the position of the lines are different for the different images because I defined my coordinates based on the width
-
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
-
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
-
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
-
How to parse multiple HTML files into one PDF?
a temporary PdfDocument. We merge this temporary PdfDocument into the PdfMerger instance. Once we have created and merged all PDF files
-
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
-
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 source
-
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
-
Evaluating JS with pdfHTML
have a copy of the chromedriver.exe file in my 'Debug' folder, as such I can pass "." as an argument and Selenium
-
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
-
Before we start: installing iText 7
to import iText 7 in Eclipse to create a Hello World PDF? https://www.youtube.com/watch?v=sxArv-GskLc& How to import iText 7
-
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
-
Is it possible to attach multiple layout events to a PdfPCell?
like to separate different cell options in separate events based on my business logic. Sometimes I want to draw an ellipse
-
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
-
How do I create a separate OCR layer?
By default, pdfOCR https://itextpdf.com/en/products/itext-7/pdfocr merges the recognized text into the image that just got processed, but
-
Support of proper word wrapping in languages with special scripts
-26-56.png These changes are automatically applied when using our latest iText Core release so they require no further intervention
-
Creating form fields
These examples were written in answer to questions such as: Click How to send a file to the server through a PDF? Click How
-
.Creating form fields vLatest
These examples were written in answer to questions such as: Click How to send a file to the server through a PDF? Click How
-
Large Image examples
These examples were written in the context of the Help, I only see blank pages in my PDF
-
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
-
How to fill a rectangle with color?
border, because the path created using the rectangle() method has been dealt with when you filled it. No new path has been
-
Getting started
to change the line spacing of text? Argument not specified in iTextSharp How to create a complex PDF document? How to strike through
-
Release iText Core 7.1.16
() in PdfSigner Bugs Streams remain open when Exception thrown Support Type3 fonts extraction, when glyphs have non-standard names
-
Basic Concepts (Glossary)
at the time a new PDF file is created, and it's permanent in the sense that it won't change when the PDF is updated. The second
-
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
-
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
-
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
-
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 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
-
.How to add a shading pattern to a custom shape? vLatest
a PdfShading.Axial object. I created an axial shading that varies from pink to blue from the coordinate (x, y) to the coordinate (x
-
How to add a shading pattern to a custom shape?
a PdfShading.Axial object. I created an axial shading that varies from pink to blue from the coordinate (x, y) to the coordinate (x
-
How to add an inner table surrounded by text?
lines never show up in the PDF * +++++++++++++++++ * * Hello World * ********************* Here is my code example: final
-
Release iText Core 7.1.15
Release date: April 14, 2021 iText Core 7.1.15 is the second quarterly release for 2021 of our multifunctional PDF SDK
-
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
-
Reuse a font from an existing PDF
reusefont <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
Blockchain for PDF Documents
with PDFs to write applications. We all know blockchain because it's the technology used by Bitcoin in the context of cryptocurrency
-
How to add inline spacing in a PdfPCell?
, but instead of introducing space characters to create space, I introduce a special chunk: new TabStop()). This chunk
-
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
-
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
-
pdfOffice + iText Core Annotations Example
(ColorConstants.GREEN); ann.setContents("I love this part!"); ann.setTitle(new PdfString("My favorite part.")); pdfDoc.getFirstPage
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
How to draw vertical gradient in iTextSharp?
at the exact position I want it to be created, but the gradient is horizontal from left (white) to right (green). I want the gradient
-
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 to nest tables without extending the inner table?
table to the bottom? I am using iTextSharp in a .NET project to generate a PDF file. I have a PdfPTable with two cells in one row
-
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
-
Czech example
to create a series of other Font examples. czechexample <div data-pym-src='https://itext.jdoodle.com/embed/itext' data-java-url
-
Use cases
because the technology turned out to be too complex. It would be great if standard PDF viewer would have a button, so that when
-
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
-
Release iText Core 7.2.0
, DictPathItem, IndirectPathItem, LocalPathItem classes have been moved from the CompareTool class to the separate directory. When it's
-
Tables and fonts
">cmp_simple_table7.pdf</a><br/></div> <div><a class="result-file" href
-
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
-
Option to disable AGPL-usage warning messages
eventManager.acknowledgeAgplUsageDisableWarningMessage(); // We are creating PDFs in a loop so that we can trigger the AGPL message for (
-
Part II - Proprietary APIs and Custom Providers
. Another example is the usage of Singapore's National Digital identity (NDI) project to create PDF signatures with iText. You
-
Can pdfHTML render Base64 images to PDF?
Image" src="data:image/png;base64,iVBORw0...ErkJggg==" /> </body> </html> The result is identical to what we had in chapter 1 when
-
Release iText Core 7.1.17
field SVG: missed images in converted PDF Image is cropped when placing visual signature with PdfSignatureAppearance eBooks Best
-
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
-
How to convert an ASP or JSP page to PDF?
responsibility to get the HTML from your choice of framework. If you have an ASP file, run it through your ASP framework to create
-
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
-
pdfHTML: Line Height property support
inline elements. Browsers use logic to calculate the maximum line height independent of the font, and the minimum value required
-
Where do I get the PDF library?
For download instructions go to: iText 5 Java version installation guide; iText 5 .NET version installation guide; iText 7 Java version
-
Release pdfOffice 1.0.0
It was developed to provide best-in-class native conversion of MS Office documents into fully ISO-compliant PDF files. It can handle file
-
Installing iText 7 pdf2Data for Java
with pdf2Data is to create a data field template in the online editor. Upload your template PDF file to the first step
-
Installing iText 7 pdf2Data for .NET
to start with pdf2Data is to create a data field template in the online editor. Upload your template PDF file to the first step
-
Before we start: installing iText 7 | .NET
for PDF/A-specific functionality. pdftest: needed for the examples that are also a test. In this tutorial, we won't use
-
Release pdfCalligraph 2.0.9
one could occur when rendering a string for specific font sizes, where the anchor delta for the last glyph was calculated
-
Release pdfCalligraph 3.0.1
Release date: April 11, 2022 pdfCalligraph is our iText 7 add-on which provides advanced typography support when creating PDF
-
How to define the page size based on the content?
it to the document, so I can calculate the total size before creating the document, but some content types (tables for example) don't hav
-
Release pdfRender 1.0.2
. This means it is now possible to create an in memory image object when converting from PDF using PdfRender, which in some
-
Release pdfHTML 4.0.3
Release date: July 5, 2022 pdfHTML https://itextpdf.com/node/241/ is an iText 7 add-on for Java and .NET to create PDF from
-
Release iText 7.0.2
launches (stay tuned!) as well as bugfixes and performance improvements. Beyond these updates, we have also improved: font
-
Release pdfOptimizer 1.0.1
to remove unused symbols from the fonts embedded in PDF files, so the size of documents with small amounts of text can
-
Create booklet from A4 document
This example was written in response to questions such as: Click How to convert an existing A4 PDF document to an A3 booklet
-
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 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
-
Release iText 7.0.6
https://search.maven.org/#artifactdetails%7Ccom.itextpdf%7Chtml2pdf%7C1.0.3%7Cjar - for .NET https://www.nuget.org/packages/itext7.pdfhtm
-
.Create booklet from A4 document vLatest
This example was written in response to questions such as: Click How to convert an existing A4 PDF document to an A3 booklet
-
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
-
Is iText PDF a PDF viewer?
The iText SDK does not include a pdf viewer. Our SDK helps automate the generation and manipulation of pdf files. itext_7
-
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
-
Creating Table of Contents using events
Example written in answer to the question Click How can I add titles of chapters in ColumnText? createtocincolumn <div data
-
Creating and adding annotations
to a PDF? How to add a map with a pointer to a PDF? addlinkimages <div data-pym-src='https://itext.jdoodle.com/embed/itext' data
-
How to change a background Image into a watermark by altering the opacity?
I want to make my background image in iText transparent. Here is my code for the image: string root = Server.MapPath
-
.Creating Table of Contents using events vLatest
Example written in answer to the question Click How can I add titles of chapters in ColumnText? createtocincolumn <div data
-
Flattening a form
Examples written in answer to questions such as: Click Why does iText enter a cross symbol when CheckType style is check mark
-
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
-
iText 7: Building Blocks
https://kb.itextpdf.com/home/it7kb/ebooks/itext-7-jump-start-tutorial-for-net/chapter-1-introducing-basic-building-blocks-net). In that c
-
pdfCalligraph: Support for Myanmar script
. pathToFontFile - String value to the path of the Myanmar font file. Example output PDF: MyanmarScript.png pdfcalligraph
-
pdfCalligraph: New types of GSOP lookup
and rendering in each script and language system that a font supports. To further expand its ability to support advanced glyph
-
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
-
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
-
PNG Image Handling
images to a PDF. Details When we use iText to add a PNG image to a document, in a few use cases we end up with a PDF file which
-
pdfCalligraph: Support wrapping at word boundaries for languages which don't use spaces for word separation
with specified path to Thai font add Pdf Encodings doc.add(paragraph.setFont(PdfFontFactory.createFont(fontPath
-
pdfOffice: Spreadsheet To PDF Support
and .xls spreadsheets to PDF along with the other Office document formats pdfOffice supports. We have been working hard to include
-
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
-
pdfHTML: more accurate rendering of checkboxes
to the margin erroneously being applied twice in certain situations. Below is an example of HTML that could trigger this bug
-
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
-
Release iText Core 7.1.13
with standard base font is not parsed from PDF correctly NPE on empty letter spacing declaration Potential security vulnerability
-
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
-
iText 7: Jump-Start Tutorial for .NET
. It’s called a Jump-Start Tutorial because it gives you a quick overview of the basic iText functionality, limited to PDF creation
-
iText 7: Jump-Start Tutorial for Java
. It's called a Jump-Start Tutorial because it gives you a quick overview of the basic iText functionality, limited to PDF creation
-
Release iText Core 7.2.3
prevent such XMP metadata causing similar compliance issues when generating PDF/A documents. In addition, another pull request
-
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
-
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
-
How to resize a PdfPTable to fit the page?
I am generating a document that contains a table. I need to make sure that this table never exceeds one page in size
-
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
-
Improving SVG to PDF conversion
to adversely affect document creation. The first bug was causing SvgConverter to create invalid graphics instructions
-
Building blocks : Examples
Chapter 1: Introducing fonts Chapter 2: Adding content to a Canvas or a Document Chapter 3: Using ILeafElement implementations
-
What does TextPositioning in pdfOCR do?
each word to be in its own bounding box? Why should I care? Well, if you're using a tool like pdfSweep
-
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
-
pdfHTML: support for inline-block with a width percent value
situations. For example, when using 'display: inline-block; width: x%;', the width of the inline-box would not be rendered correctly
-
pdfHTML: Accessible PDF Creation
A simple example showcasing the creation of a Tagged PDF with pdfHTML, and the configuration to include the metadata