iText Knowledge Base
Search in spaces:
-
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
-
How to rotate and scale pages in an existing PDF?
that the width is greater than the height. Summarized: it's a piece of cake to rotate pages in an existing PDF, so is scaling the pages u
-
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 data-pym-src
-
How to reorder pages in an existing PDF file?
I can move pages in an existing PDF? Actually I want to move a couple of the last pages to the start of the document
-
How do I add XMP metadata to each page of an existing PDF?
creating a PDF from scratch, but about modifying an existing PDF. In that case, you also need the page dictionary. It is very
-
.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 data-pym-src
-
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
-
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 to shrink pages in an existing PDF?
it to photos of people standing up vertically, you'll make them look fat. Click How to shrink pages in an existing PDF? if you want
-
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
-
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
-
Adding page numbers to an existing PDF
In this example, we use ColumnText to add page numbers to an existing PDF document. stamppagexofy <div data-pym-src
-
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 5: Manipulating an existing PDF document | .NET
https://itextpdf.com/content/itext-7-jump-start-tutorial/examples/chapter-5#c05e03_addcontent.cs example shows how we can add content to
-
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
-
Chapter 5: Manipulating an existing PDF document
of examples of chapter 4, we worked with an existing PDF document. We took an existing interactive PDF form and filled it out, either
-
How to convert an existing A4 PDF document to an A3 booklet?
https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/merge/MakeA3Booklet.java example. In this
-
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
-
Chapter 6: Reusing existing PDF documents | .NET
instance for the first page of the existing PDF (line 3), and we get its dimensions (line 6). We then add three pages to the new PDF
-
Chapter 6: Reusing existing PDF documents
for the first page of the existing PDF (line 3), and we get its dimensions (line 4). We then add three pages to the new PDF document: We
-
How to stamp image on existing PDF and create an anchor?
, you jump to the last page of the document. Click How to stamp image on existing PDF and create an anchor? if you want to see how
-
How to crop out a part of PDF file?
clipping. I've written an example that clips the content of all pages of a PDF by introducing a margin of 200 user units (that's
-
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 reorder the pages of a PDF file?
10, page 11, page 12, page 16. To learn more see the answer to the “How to reorder pages in an existing PDF file” question
-
How to add a page number in the header of a PDF/A Level A file?
); canvas.endMarkedContent(); I use this second approach to add several elements. Click How to add a page number in the header of a PDF
-
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
-
How to add blank pages while concatenating several PDFs using PdfSmartCopy
to, I explained how to insert a blank page into an existing PDF using PdfDocument: PdfDocument pdfDoc = new PdfDocument(new
-
How to extend the page size of a PDF to add a watermark?
the page dictionary. It has plenty of information about a specific page in the PDF. We are only looking at one entry
-
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
-
.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
-
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 to rename named destinations in existing PDF files?
to rename named destinations in existing PDF files? if you want to see how to answer this question in iText 5. named_destinations
-
How to move the content inside a rectangle inside an existing PDF?
the resulting PDF more demonstrative. Click How to move the content inside a rectangle inside an existing PDF? if you want to see how
-
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
-
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 watermark PDFs using text or images?
on each odd page and a transparent image on each even page of an existing PDF document. This is how it's done: protected void
-
How to convert an A4 size PDF to a PDF booklet?
to the following question: How to convert an existing A4 PDF document to an A3 booklet? I have more or less the same requirement, but I
-
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
-
How to set the OCG state of an existing PDF?
and adapt it to your language of choice. Click How to set the OCG state of an existing PDF? if you want to see how to answer
-
Questions about PDF in general
the coordinates of a rectangle in PDF? What is the connection between LTV and document timestamps? How to protect an already existing
-
Scaling and rotating pages
and scale pages in an existing PDF? Click How to shrink pages in an existing PDF? Click How to fix the orientation of a PDF page
-
.Scaling and rotating pages vLatest
and scale pages in an existing PDF? Click How to shrink pages in an existing PDF? Click How to fix the orientation of a PDF page
-
How to add an image to an existing PDF using AffineTransform?
to an existing PDF using AffineTransform? if you want to see how to answer this question in iText 5. images itext_7 itext_7_suite
-
How to prevent the resizing of pages in PDF?
to have a PDF file that contains no differences between the actual size vs "fit to page" when printing. Posted on StackOverflow
-
How to merge PDFs and add bookmarks?
https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/merge/MergeWithOutlines.java example that
-
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
-
Reordering pages
Read the following Q&As for more info: Click How to reorder pages in an existing PDF file? Click How to reorder the pages
-
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 add a watermark to a page with an opaque image?
for customers) on Mar 19, 2015 If you have opaque shapes in your PDF (such as images, but also colored shapes), you need to add
-
.Reordering pages vLatest
Read the following Q&As for more info: Click How to reorder pages in an existing PDF file? Click How to reorder the pages
-
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
-
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
-
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 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
-
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
-
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
-
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 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 to rotate a page while creating a PDF document?
->top. I want to produce a PDF with pages in landscape. While I can set the size of the page to landscape using
-
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
-
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
-
How to continue an ordered list on a second page?
consists of variable data (text/barcodes/images) that is added to existing PDF documents/templates (think boiler plate). Most
-
Where is the origin (x,y) of a PDF page?
of the coordinate system of the page. What is the coordinate of the bottom left corner, top right corner, bottom right corner, top left
-
.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
-
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
-
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
-
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 tile a document and add margins to the tiles?
page. Is that possible? Posted on StackOverflow on Sep 24, 2015 https://stackoverflow.com/questions/32769493 by lagnat
-
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
-
Actions and annotations
of an annotation? How do I insert a hyperlink to another page in an existing PDF? How to delete attachments in PDF using iText
-
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
-
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
-
Can I change the page count by changing internal metadata?
(and if) I can edit the page count in a way it won't affect the way the PDF is visualized. Can I change some metadata field, so
-
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
-
Page events
to a paragraph? How to introduce multiple PdfPageEventHelper instances? How to add a page number in the header of a PDF/A Level A file? H
-
How to insert a "linked rectangle" with iText?
can use PdfDocument to manipulate an existing PDF. Adding a rectangular link on one page to another page, is as simple as adding
-
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
-
Chapter 3: Using ILeafElement implementations
3.23, you see a WMF file representing a butterfly and a page from an existing PDF file that were added to a Document using
-
Chapter 3: Generating PDF based on Media Queries
https://raw.githubusercontent.com/itext/i7js-examples/develop/src/main/java/com/itextpdf/samples/htmlsamples/chapter03/C03E01_Normal.java
-
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
-
Cut and paste content in a page
Example in answer to the question Click How to move the content inside a rectangle inside an existing PDF? cutandpaste <div
-
How to parse multiple HTML files into one PDF?
the PdfMerger class. This class can merge different PDF files on a page per page basis into a master PdfDocument, in this case
-
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
-
Chapter 7: Handling events; setting viewer preferences and printer properties
an existing PDF generated by one of the examples in the previous chapter. We inserted one page to be the new page 1. We removed
-
Release iText 7.1.5
page-margin box dimensions calculation bugs related to font providers, RTL, and property inheritance "!important" CSS attribute
-
.Cut and paste content in a page vLatest
Example in answer to the question Click How to move the content inside a rectangle inside an existing PDF? cutandpaste <div
-
What does PDF 2.0 stand for?
or printed. It is intended for developers of : software that creates PDF files (PDF writers), software that reads existing PDF
-
How to change the color of pages?
page becomes blue. I'm creating report based on client activity. I'm creating this report with the help of the iText PDF library
-
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 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 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
-
Superimposing content from one PDF into another PDF
Example written in answer to the question Click How to superimpose pages from existing documents into another document
-
How to add an In Reply To annotation?
of the PDF and the page number of the page to which the annotation is added. Click this link if you want to see how to answer
-
When is the content flushed to a PDF File by iTextSharp?
https://stackoverflow.com/questions/21854409/when-is-the-content-flushed-to-a-pdf-file-by-itextsharp by sameer https://stackoverflow.com/
-
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
-
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
-
Does a PDF file have styles, headers and footers?
page, is just a bunch of glyphs, paths and shapes drawn on a canvas. However: if your PDF is a Tagged PDF, the PDF contains
-
Can I generate a PDF from a URL instead of from a file on disk?
, and the result will look like this: The IMDB page rendered to A4 pages in PDF Maybe an A4 page isn't the ideal page size for a web
-
.Superimposing content from one PDF into another PDF vLatest
Example written in answer to the question Click How to superimpose pages from existing documents into another document
-
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
-
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
-
Chapter 4: Creating reports using pdfHTML
. If you use the second approach, you'll discover that you soon hit the limitations of the existing forms technology in PDF
-
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
-
pdfOffice: improved conversion of docx files with repeating table header on new page
and the output PDF file below. If you download both files and compare them, you will find that the table header cells on the second page
-
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
-
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
-
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
-
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
-
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
-
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
-
Why do PDFs change when processing them?
metadata to an existing PDF using a PdfDocument instance: PdfDocument pdfDoc = new PdfDocument(reader, writer); This creates a new
-
How to use Cyrillic characters in a PDF?
generating a PDF. I'm mostly using paragraphs for inserting some static text into my PDF report. Here is some sample code I used
-
How to extract text and anchor information from a PDF?
. The interactive features you can see in a PDF file are stored outside the content stream of a page in a so-called Annotation dictionary
-
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
-
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
-
Chapter 2: Adding content to a Canvas or a Document
a self-sufficient PDF. It manages high-level operations such as setting page size and rotation, adding elements, and writing text
-
Interactive forms
to a PDF? How to add a new form from an existing PDF template? How to fill out a PDF file programmatically? (Dynamic XFA) How to get
-
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
-
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
-
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
-
Chapter 3: Using renderers and event handlers | .NET
would draw an opaque rectangle after the page was rendered, that rectangle would cover all the existing content. We need access
-
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
-
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
-
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
-
Chapter 6: Creating actions, destinations, and bookmarks
click on the first link, the PDF we created in the previous example is opened on the first page in a new viewer window. When we
-
Why does using ColumnText result in "The document has no pages" exception?
is added to the PDF and rather than showing an empty page, iText throws an exception saying: there are no pages! You didn't add
-
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
-
How to add alternative text for an image in Tagged PDF?
in an existing tagged PDF without changing anything else? I need to implement this feature in a program without using GUI
-
Chapter 3: Using renderers and event handlers
an opaque rectangle after the page was rendered, that rectangle would cover all the existing content. We need access to a content
-
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
-
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 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
-
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
-
Part IV - Appearances
and page of an existing, unused signature field simply by setting its name in the PdfSigner, see the excursion above. Built-in iText
-
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
-
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 convert an ASP or JSP page to PDF?
the HTML. The pdfHTML add-on will gladly accept that HTML for conversion to PDF. faq pdfhtml
-
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
-
Release iText 7.0.3
DEVSIX-1173 https://jira.itextsupport.com/browse/DEVSIX-1173: Signature Appearance not added when page has a pre-existing anots
-
Release iText 7.1.10
an already tagged pdf rewrites the parenttree dictionary [CORE] Problem with PDF/A end page event [PDFCALLIGRAPH
-
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
-
iText 7: Converting HTML to PDF with pdfHTML
pages to PDF, yet that was how many developers tried to use it. This caused plenty of frustration because HTMLWorker didn't
-
How to remove text from a PDF?
the following page: Original PDF Now we want to remove all the text in the rectangle defined by the coordinates: llx = 97, lly = 405
-
Which PDF filters are used to encode data?
. That means that content streams (e.g. for pages) use /FlateDecode, which is what every other PDF producer will use by default
-
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 add "continue on next page" / "continued from next page" to a table?
a header on the next page that explains that this is the next page of a table that started on the previous page. Unfortunately
-
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 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 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
-
Page orientation and rotation
Examples written in answer to questions such as: Click How to rotate a page while creating a PDF document? pageorientations
-
Reuse a font from an existing PDF
reusefont <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
How to move an AcroForm field?
https://stackoverflow.com/users/3381321/cro717 First some info about fields and their representation on one or more pages. A PDF form can
-
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
-
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
-
Page events for headers and footers
How to create a table with 2 rows that can be used as a footer? Click How to add HTML headers and footers to a page
-
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 add "continue on next page" / "continued from next page" to a table? vLatest
a header on the next page that explains that this is the next page of a table that started on the previous page. Unfortunately
-
PDF and Digital Signatures
this page is served. If you have a URL to a PDF document, e.g. the address of the PDF reference, you can encounter the problem
-
How to create a PDF with a Cartesian grid?
left corner on a PDF of page size "Letter"? (max X = 8.5 Inches; max Y = 11 Inches) Posted on StackOverflow on Jun 10, 2014
-
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
-
Release iText 7.0.4
] - NullPointerException thrown when converting HTML to PDF [DEVSIX-1441 https://jira.itextsupport.com/browse/DEVSIX-1441] - Digital Signa
-
How do the measurement systems in HTML relate to the measurement system in PDF?
https://stackoverflow.com/questions/14586315/how-to-get-the-userunit-property-from-a-pdffile-using-itextsharp-pdfreader If you live in th
-
.How to create a PDF with a Cartesian grid? vLatest
left corner on a PDF of page size "Letter"? (max X = 8.5 Inches; max Y = 11 Inches) Posted on StackOverflow on Jun 10, 2014
-
How to flatten a XFA PDF Form using pdfXFA
())); pdfdoc.close(); Where src, dest and xml are String paths to your documents. A dynamic XFA form usually consists of a single page PDF
-
How to flatten a XFA PDF Form using iTextSharp?
src, dest and xml are String paths to your documents. A dynamic XFA form usually consists of a single page PDF (the one
-
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 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
-
How to make a single letter bold within a word?
is to write a program that colorizes existing PDF files without changing the structure of the PDF. Do you think this approach
-
Chapter 4: Adding AbstractElement objects (part 1)
shows yet another conversion of the story to PDF. The total number of pages is lower because we changed the distance between
-
How to create hierarchical bookmarks?
this in an existing pdf? I mean without creating new PDF, I want to add bookmarks to an existing pdf. As it is shown above, iText 7
-
Volume Counter FAQs
maxPageCount = 2; // create a new PDF per 2 pages from the original file new PdfSplitter(new PdfDocument(new PdfReader(new File(SRC
-
Using iText 7 and AWS KMS to digitally sign a PDF document: Part 1
, please see the following links: Page Title Using iText 7 and AWS KMS to digitally sign a PDF document: Part 2
-
Using iText 7 and AWS KMS to digitally sign a PDF document: Part 5
examples relating to this article, please see the following links: Page Title Using iText 7 and AWS KMS to digitally sign a PDF
-
How should I interpret the coordinates of a rectangle in PDF?
to the question "Where is the origin (x,y) of a PDF page?" The main thing is that the origin of the coordinate system is (0, 0). Positive
-
How to position text relative to page?
My code gives me inconsistent positions of text. int n = reader.getNumberOfPages(); PdfImportedPage page; PdfCopy.PageStamp
-
How to merge forms from different files into one PDF?
, we need to rename the fields, because we probably want different values on different pages. In PDF a field can only have
-
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
-
Using iText 7 and AWS KMS to digitally sign a PDF document: Part 2
relating to this article, please see the following links: Page Title Using iText 7 and AWS KMS to digitally sign a PDF document
-
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
-
Adding metadata
These examples were written in answer to questions such as: Click How do I add XMP metadata to each page of an existing PDF
-
Can pdfHTML render Base64 images to PDF?
was truncated to fit this page): <html> <head><title>Test</title></head> <body> <h1>Test</h1> <p>Hello World</p> <img alt="Embedded
-
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
-
Adding fields to an existing form
Example to answer Click How can I add a new AcroForm field to a PDF? addfield <div data-pym-src
-
How to check for an event and remove it?
, PdfDocumentEvent.REMOVE_PAGE, PdfDocumentEvent.END_PAGE) using hasEventHandler(String type) method. To remove an existing page event, yo
-
Chapter 5: Adding AbstractElement objects (part 2)
developers use iText to convert the result set of a database query into a report in PDF. They create a Table of which every row
-
How to invoke a page break for nested tables?
I have one PdfPTable with one column. One page fits 50 rows. If I add some text data to table (for an example, 300 rows
-
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
-
XFDF examples
="https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/acroforms/cmp_listInSetField.pdf" target="_blank">cmp_listInSetFiel
-
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
-
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
-
General questions about iText
to encode data? How to set initial view properties? How to prevent the resizing of pages in PDF? When is the content flushed
-
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
-
.Write on previous page vLatest
This example in answer to the question Click How to add text at an absolute position on the top of the first page
-
Basic Concepts (Glossary)
If you are new at Blockchain and PDF, you'll find this short glossary interesting. Concepts related to Blockchain: Distributed
-
What is the difference between iText, JasperReports and Adobe LC?
, fill out PDF forms, examine and manipulate existing PDFs. JasperReports is a Business Intelligence / Reporting tool that uses
-
Write on previous page
This example in answer to the question Click How to add text at an absolute position on the top of the first page
-
Image on rotated page
Example that shows how to position an image on a rotated page. imageonrotatedpage <div data-pym-src
-
PDF Portfolios
This example demonstrates the use of the PDF Portfolio feature (sometimes called Portable Collections). A PDF Portfolio can
-
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
-
Chapter 1: Introducing basic building blocks
. These PDF documents couldn't be produced manually due to the volume (the high number of pages and files) and because the content wasn't
-
Chapter 1: Introducing basic building blocks | .NET
. These PDF documents couldn’t be produced manually due to the volume (the high number of pages and files) and because the content wasn’t
-
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
-
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
-
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
-
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
-
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
-
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
-
Release iText Core 7.1.12
signing a PDF using an existing signature field, PdfSigner.PreClose does not mark the AcroForm dictionary as modified eBooks
-
pdfHTML: Support for generating cross references for TOC creation with target-counter, target-counters CSS properties
to pages 1, 2, and 3 respectively. We use target-counter to gather the page of each destination within the table of contents
-
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
-
How to make a field not required?
an existing PDF where you have required fields. It’s really simple to change the FF_REQUIRED flag in iText 7: public void
-
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 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 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
-
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
-
Getting started
text using iText? How to set the page size to Envelope size with Landscape orientation? How can I generate a PDF/UA compatible PDF
-
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
-
Release pdfHTML 3.0.4
such as the handling of percentage width values for inline-block elements, or rendering cells distributed between two pages of the output
-
Release pdfRender 1.0.0
in comparison to other PDF to image solutions. To give you an idea of performance, we rendered a 4.6 MB 130-page PDF to images
-
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
-
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
-
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
-
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
-
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
-
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 tell iText how to clip text to fit in a cell?
of the string which fits. Can I control this clipping algorithm? For example: Print a suffix of the string rather than a prefix
-
What does "Not LTV-enabled" mean?
iText to sign and timestamp PDF documents. It works very well. But I recently switched from Acrobat Pro X to XI and now I see
-
Page events for Paragraphs
=https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/events/cmp_border_for_paragraph2.pdf>cmp_border_for_paragraph2.pdf</
-
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
-
Header and footer examples
http://stackoverflow.com/questions/24678640/itext-pdfdocument-page-size-inaccurate regarding stamping content on an existing document in
-
.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
-
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
-
Is it safe to remove XFA?
corresponds with one or more widgets with fixed positions on specific pages. The form is described using nothing but PDF syntax. Dynamic
-
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
-
Positioning different text snippets on a page
These examples were written in response to questions such as: Click How to divide a page in N parts so we can fill each
-
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 an uncompressed PDF file?
During development testing, I'd prefer to create uncompressed, non-binary PDF files with iTextSharp so that I can check
-
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
-
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 extract embedded streams?
I use ((PdfStream)obj).getBytes(), iText will look at the filter. For instance: page content streams consists of PDF syntax
-
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 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
-
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
-
What's an easy to print "first right, then down"?
I would like to print "first right, then down", which is similar to row-major order. Print the first page-full of rows
-
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
-
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 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
-
Release iText 7.1.7
/creation of PDF/A-3 and PDF/A-1b documents sign Improve placement of signatures on rotated pages svg Added support for em values
-
Release pdfOffice 2.0.1
with the existing Word and PowerPoint conversions. As an example is worth a thousand words, make sure that you check out the one
-
Which languages are supported in pdfHTML?
to this question is Every language is supported as long as you provide the appropriate font. For instance: if you want to convert an HTML
-
Fail-safe processing of Outlines without Parent link
PDF or copying PDF pages. In the iText 7.2.1 release iText ignores the Parent links in the PDF; instead, it follows the hierarchy
-
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
-
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
-
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
-
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 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 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
-
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
-
How to create Persian content in PDF?
have problem with UNICODE character showing in PDF file. There is a solution for this that it is not very efficient for me
-
Release pdfOffice 2.0.2
documents to PDF. pdfOffice 2.0.2 brings a bumper selection of newly-supported features for document conversions, including
-
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
-
Chapter 5: Custom tag workers and CSS appliers
worker factory in such a way that the <a>-tag is treated as a <span> tag. Figure 5.1 shows the resulting PDF. Figure 5.1: A PDF
-
How to delete attachments in PDF using iText?
at the Attachments panel of the resulting PDF, we see an attachment test.txt with description "some test file": Attachment shown in Adobe
-
Content parsing, extraction and redaction of text
can't I extract text added using a Type3 font correctly from a PDF? Why is the text I extract from an English PDF page garbled
-
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 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
-
.Named destinations vLatest
Examples in answer to questions such as: Click How to rename named destinations in existing PDF files? renamedestinations <div
-
Fix for when a link occupies more than two areas, a NullPointerException is thrown
link PdfAction action = PdfAction.createURI("http://itextpdf.com"); //create div with height 2000 will expand to three pdf pages
-
pdfHTML: Accessible PDF Creation
A simple example showcasing the creation of a Tagged PDF with pdfHTML, and the configuration to include the metadata
-
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
-
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
-
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
-
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
-
pdfRender: BufferedImage as output format
able to convert PDF pages to JPG, PNG or other image file formats. As of pdfRender 1.0.2 this has been extended to include
-
Before we start: Overview of the classes and interfaces
or a showTextAligned() method. The Document object will add this content to a page. The Canvas object doesn't know the concept of a page
-
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 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
-
How to convert HTML containing Arabic/Hebrew characters to PDF?
https://github.com/itext/i7js-examples/blob/develop/src/main/resources/htmlsamples/html/say_peace.html HTML file to PDF. Say Peace in HTM
-
Release iText 7.1.0
for iText 7 Core and Community, focusing on PDF 2.0 support. iText 7.1 brings new improvements, and some changes to our
-
Named destinations
Examples in answer to questions such as: Click How to rename named destinations in existing PDF files? renamedestinations <div
-
Changing OCGs
Examples in response to questions such as: Click How to set the OCG state of an existing PDF? Click How to change the order
-
.Changing OCGs vLatest
Examples in response to questions such as: Click How to set the OCG state of an existing PDF? Click How to change the order
-
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
-
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
-
Removing Items from a PDF's Outline Tree
an existing PDF's outline tree. Previously, there existed full functionality for adding and reading outlines, but you now have
-
PDF/A-3
=https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/pdfa/cmp_pdf_a3.pdf>cmp_pdf_a3.pdf</a><br/></div> xml_worker itext_7
-
Digital Signatures Hub
signing PDF documents with iText 7. eBooks Digital Signatures for PDF Documents Our Digital Signatures eBook
-
Release pdfOffice 2.0.0
to improve on this latest addition to the iText 7 Suite, and have made some changes to produce more precise Office document to PDF
-
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
-
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
-
Release iText 7.1.3
: placeholder color is now grey, as in browsers. page-break-before is now also applied for tables. pdfSweep 2.0.2 for Java
-
Chapter 6: Using fonts in pdfHTML
fonts is especially welcome if you want to convert web pages found in the wild to PDF, but please take into account that your
-
.PDF/A-3 vLatest
=https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/pdfa/cmp_pdf_a3.pdf>cmp_pdf_a3.pdf</a><br/></div> xml_worker itext_7
-
Release iText 7.1.6
#signDetached Improve OCSPVerifier responder certificate verification Cover the case of updating LTV verification data of PDF when
-
How to change the author name for comments?
over the annotations of a page and change the title (if it equals to "iText"). We use PdfDocument to persist the changed PDF
-
Large Image examples
These examples were written in the context of the Help, I only see blank pages in my PDF
-
How does iText Group count processes/files?
for purposes of our volume licensing: Opening a PDF file and extracting the text on the second page. Creating a single invoice
-
Release iText 7.0.8
https://www.nuget.org/packages/itext7.pdfhtml/1.0.5 1 backported fix for @Page rules in CSS License Key Library 3.0.3 for Java
-
How to add a text to the left and to the right in a header?
side, the page number in the middle and some info regarding the contents in my table to the right. Posted on StackOverflow on Feb
-
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 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
-
Release iText 7.1.4
for Pages entry in Catalog. Optional content requirements in PDF/A. Copying AcroForm fields with a dot in their name. Post-care
-
Release iText Core 7.1.13
or ImageRenderer PDF/A: page transparency check PDF/A: "Implementation limits" requirement check Refactor MemoryLimitsAwareHandler
-
Encrypting / Decrypting PDFs
These examples were written in answer to questions such as: Click How to decrypt a PDF document with the owner password
-
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
-
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
-
Release pdfXFA 2.0.8
https://itextpdf.com/en/blog/technical-notes/how-modify-xfa-documents-flattening iText DITO: An alternative to PDF forms
-
Chapter 1: Introducing fonts
Stevenson. I made a first example turning a plain text file into a PDF eBook and I liked the result. When I discovered how many movies
-
.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
-
Release iText 7.1.2
]<optgroup>[/blockcode]. Added support for borders and margins for body and HTML tags. Added support for CSS3: Paged Media feature
-
How to render certain HTML entities (such as arrows) to PDF?
. Special characters in a PDF The HTML code uses HTML entities to represent these special symbols: public static final String HTML
-
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
-
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
-
Release pdfRender 1.0.2
formats. Previously, you could render PDF pages to JPG, PNG or other image file formats, but now BufferedImage as also supported
-
Do we need a browser engine to render HTML+CSS to PDF?
renders the PDF based on these objects and styles. However, pdfHTML doesn't support SVG for now, nor does it evaluate JavaScript
-
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 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
-
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
-
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
-
pdfOffice - Example
pdfOffice is an iText 7 add-on that allows generating a PDF document from either a Word, PowerPoint, or Excel file. Currently
-
How to create a clickable polygon or path?
= PdfAnnotation.CreateLink(stamper.Writer, r, pfn, ac); int page = 1; stamper.AddAnnotation(anno, page); Is there any way to do
-
Use cases
Invoices The ZUGFeRD https://www.ferd-net.de/standards/zugferd.html invoicing standard uses a combination of PDF/A-3
-
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
-
Release iText 7.1.11
https://kb.itextpdf.com/home/it7kb/faq/volume-counter-faqs. iText pdfHTML the Ledger page size https://www.w3.org/TR/css-page-3/#page-siz
-
How can I create a Reader enabled PDF with a signature field that can be signed in Adobe Reader
Software. The technology that is used to enable a PDF document is based on public-key cryptography, where the viewer
-
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
-
Release pdfRender 1.0.6
up to 2021.08 Bugs Getting blank pages when certain pdfs are converted to jpegs release pdfrender 7_1_17_suite_release
-
Release pdfRender 2.0.0
of exception in PdfDocument/PdfReader constructors Getting blank pages when certain pdfs are converted to jpegs release pdfrender
-
Best iText 7 Questions on StackOverflow
PDF in general, high-level iText objects, low-level functionality, fonts, forms, page events, tables, HTML, and much more
-
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 can I find the maximum character limit for a text field?
, and if the limit is 60, then I need to add 60 characters in the first page and the remaining 40 character text in next page of pdf form
-
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
-
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 reduce redundant code when adding content at absolute positions?
to use Canvas.showTextAligned() method: PdfPage page = pdfDoc.addNewPage(); PdfCanvas pdfCanvas = new PdfCanvas
-
Release iText 7.0.5
, but they are deprecated and will be removed in iText 7.1 PDF/A: we are now more strict on color space enforcement Barcodes: support
-
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
-
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
-
Nested tables
How to invoke a page break for nested tables? Click How to add an inner table surrounded by text? nestedtableproblem <div data
-
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
-
Release iText Core 7.2.0
RootRenderer#getCurrentArea().getPageNumber()to get the page number of current layout area. Inside DocumentRenderer#addNewPage
-
Repeating rows
rows of a table on the next page? http://stackoverflow.com/questions/22153449/print-last-5-rows-to-next-page-itext-java
-
Support for linearGradient Color Scheme in Layout, CSS and SVG
The following addLinearGradientAsElementBackground function example generates a PDF paragraph object colored with a linearGradient which
-
Release iText 7.0.2
support with FontProvider/FontSelector advanced page range definition, contributed by GitHub user @NayoLyon (thanks!) auto layout
-
Page Labels
pagelabels <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
Splitting tables
Examples that show what happens when a table doesn't fit the page: Click How to prevent splitting a table? splitrowatendofpage
-
Cell and table widths
-right corner of the page? columnwidthexample <div data-pym-src='https://itext.jdoodle.com/embed/itext' data-java-url
-
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
-
Page events for Watermarking
watermarking <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
Page events for Chunks
These examples were written in answer to questions such as: Click How to draw a line every 25 words? dashedunderline <div
-
TOC as first page
tableofcontents <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
.Page Labels vLatest
pagelabels <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
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
-
Widow and Orphan content support added
Support for controlling widow and orphan content was added in iText 7.1.11 so that content looks precise on the document page
-
Tables
surrounded by text? How to resize a PdfPTable to fit the page? How to add - continue on next page/continued from next page - to a table
-
Release iText 7.1.8
API page including the highly anticipated .NET API documentation
-
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
-
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
-
pdfHTML: Added full background support
, and a full list of the supported background tags and CSS properties. In addition, the existing background CSS property support
-
How to find the absolute position and dimension of a field?
, ury]. If you want to know some information about the page, try this: PdfPage page = form.getField(name).getWidgets().get(0
-
PDF/A-1
pdfa1a_images <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
PDF/A-2
hellopdfa2a <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
Parsing PDFs
Examples written in answer to questions such as: Click How to use a text extraction strategy after applying a location extraction
-
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
-
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
-
How to define the width of a cell?
. The available space is the width of the page minus the size of the left and the right margin. If you create a document like
-
Release iText 7.0.0
increasingly rely on PDF. iText is the right partner to help you automate your documentation processes. We offer powerful and flexible
-
How to create a table with 2 rows that can be used as a footer?
= docEvent.getDocument(); PdfPage page = docEvent.getPage(); PdfCanvas canvas = new PdfCanvas(page.newContentStreamBefore(), page.getReso
-
Replacing PDF objects
replacestream <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
Extracting objects from a PDF
Example written in answer to the question Click How to extract embedded streams? extractstreams <div
-
Splitting a PDF file
mergeandcount <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
.PDF/A-1 vLatest
pdfa1a_images <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
.PDF/A-2 vLatest
hellopdfa2a <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
.Replacing PDF objects vLatest
replacestream <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
.Splitting a PDF file vLatest
mergeandcount <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
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
-
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
-
Release iText 7.0.6
compressed data during image extraction. [DEVSIX-1704] - Showing a horizontal page with 0 rotation value. Task [DEVSIX-561
-
How to change the zoom factor in link annotations?
https://github.com/itext/i5js-sandbox/blob/master/resources/pdfs/xyz_destination.pdf on page 11, there are 10 links to the 10 previous pa
-
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
-
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
-
pdfHTML: Support for linearGradient in CSS and SVG
to HTML input for this PDF: linearGradient.html Link to resultant PDF: CSSOutput.pdf This code yields the following resultant
-
pdfOffice: Improved line space calculation
of the output PDF file. In pdfOffice 2.0.0 we have made the required improvements to calculate the correct amount of line spacing
-
iText 7 Building Blocks - Chapter 3: ILeafElement examples
=https://github.com/itext/i7js-highlevel/blob/develop/cmpfiles/chapter03/cmp_jekyll_hyde_tabs1.pdf>cmp_jekyll_hyde_tabs1.pdf</a><br/></div
-
How to introduce multiple PdfPageEventHelper instances?
. Some pages have common headers, page counts, watermarks my initial thought was to have different PdfPageEventHelper subclasses
-
Repeating parts of a form
These examples were written in answer to questions such as: Click How to continue field output on a second page? Click How
-
.Repeating parts of a form vLatest
These examples were written in answer to questions such as: Click How to continue field output on a second page? Click How
-
Release iText Core 7.2.1
Release date: January 11, 2022 iText Core 7.2.1 is the latest release of your favorite PDF library for Java and .NET (and more
-
Font examples
a PDF document? How to create a PDF with font information and embed the actual font while merging the files into a single PDF? How
-
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
-
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
-
Tagged PDF: Adding Alt to the Structure Tree
addalttags <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
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
-
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
-
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
-
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
-
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
-
pdfOffice + pdfSweep Redaction Example
frontiers for your company's document workflow, thanks to its capabilities for accurate conversion of MS Office documents to PDF
-
iText 7 Building Blocks - Chapter 5: AbstractElement examples (part 2)
.pdf</a><br/></div> <div><a class="result-file" href
-
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
-
pdfOffice: improved conversion of docx files containing embedded videos
in the resulting PDF documents. Below is a Java example showing how to do this: Java public static void main(String[] args) throws
-
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
-
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
-
pdfHTML: Using emojis in iText
and communication formats support them in one form or another. For us this means of course that they are also supported in the PDF
-
How to enable LTV for a timestamp signature?
iText to sign PDF documents. I need these documents to be timestamped and LTV-enabled. I followed the instructions and used
-
iText 7 Building Blocks - Chapter 2: RootElement examples
>cmp_jekyll_hyde_v1.pdf</a><br/></div><div><a class='result-file' href
-
How to precisely position an image on top of a Table?
to the Document at that position, perhaps in direct content mode. But the table may split across pages, because it may have hundreds
-
iText 7
iText 7 is the latest version of iText's powerful PDF Toolkit for PDF generation, PDF programming, handling & manipulation
-
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 do I use pdfRender in a .NET environment?
to specify the location of your pdfRender license file. The following is a list of the image file types which a PDF can be rendered
-
pdfHTML: support for inline-block with a width percent value
) would convert the HTML above into the following PDF output: image2021-4-6_14-32-57.png As you can see, the specified width
-
iText 7 Signing Examples
Signing a PDF with early versions of iText was something akin to rocket science: the code had to do a lot of stuff which
-
pdfCalligraph: Support for Myanmar script
Myanmar script. This functionality will allow users to easily render Myanmar script within their PDFs. Below is an quick example
-
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
-
Why do I get a font embedding error when creating PDFA/1a?
, but it isn't. You can check this by using that font in any other PDF that isn't PDF/A: if you go to Document Properties > Fonts, you'll
-
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
-
Adding watermarks to images
=https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/images/cmp_watermarked_images1.pdf>cmp_watermarked_images1.pdf</a><b
-
pdfOffice + iText Core Annotations Example
frontiers for your company's document workflow, thanks to its capabilities for accurate conversion of MS Office documents to PDF
-
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
-
Does my HTML have to be valid XML?
converting it to PDF with XML Worker. This is no longer necessary with pdfHTML. We have integrated jsoup https://jsoup.org
-
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
-
iText 7 Building Blocks - Chapter 4: AbstractElement examples (part 1)
=https://github.com/itext/i7js-highlevel/blob/develop/cmpfiles/chapter04/cmp_jekyll_hyde_overviewV1.pdf>cmp_jekyll_hyde_overviewV1.pdf</a>
-
How do I get a free trial?
-existent relative link to website page
-
Do you have customer testimonials?
testimonial case_study itext_7_suite itext_5 faq Changed non-existent relative link to website case studies page
-
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
-
Using forms for reporting
How to merge forms from different files into one PDF? Click How to merge documents correctly? mergeforms <div data-pym-src
-
.Using forms for reporting vLatest
How to merge forms from different files into one PDF? Click How to merge documents correctly? mergeforms <div data-pym-src
-
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 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
-
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 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 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
-
Merging documents with bookmarks
This example was originally written in answer to the question Click How to merge PDFs and add bookmarks? for iText5. The code
-
.Merging documents with bookmarks vLatest
This example was originally written in answer to the question Click How to merge PDFs and add bookmarks? for iText5. The code
-
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
-
Table events
How to define different border types for a single cell? How to add a table in the top-right corner of the page? How to get
-
pdfHTML: Support for overflow-wrap, word-break CSS Properties
, then provide an HTML code snippet, a Java/C# code sample, and an output PDF document for testing purposes. Feature demonstration
-
How to modify the size of annotations and make them read-only?
people to add annotations. Once the PDF is encrypted, you'll notice that the entries in the drop-down list are limited. (See How
-
How to print mathematical characters like ?, ?, ?, ?, ? ?, ??
I am using iText for PDF generation. I have some characters/symbols to print like ∈, ∩, ∑, ∫, ? (Mathematical symbols
-
Tiling and N-upping
=https://github.com/itext/i7js-examples/blob/develop/src/main/resources/pdfs/links1.pdf>links1.pdf</a><br/><a class='resource-file' href
-
.Tiling and N-upping vLatest
=https://github.com/itext/i7js-examples/blob/develop/src/main/resources/pdfs/links1.pdf>links1.pdf</a><br/><a class='resource-file' href
-
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
-
Release iText Core 7.2.2
favorite PDF library for Java and .NET (and more! https://itextpdf.com/en/products/itext-7/itext-7-suite-byol-aws). On the Java
-
Tiling images
This example was written in answer to the question Click How to show an image with large dimensions across multiple pages
-
.Tiling images vLatest
This example was written in answer to the question Click How to show an image with large dimensions across multiple pages
-
Colspan and rowspan
>cmp_simple_table11.pdf</a><br/></div><div><a class='result-file' href
-
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
-
Release pdfRender 1.0.3
from password-protected PDFs (if you know the password, of course). pdfRender is a closed-source add-on and is currently only
-
Part II - Proprietary APIs and Custom Providers
iText 7 and AWS KMS to digitally sign a PDF document
-
Is it possible to set a different alignment for text on the same line in the same cell?
In one cell and on the same line, I must add two text (name and date). The first snippet of text must be on the left page side
-
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
-
Table and cell events to draw borders
="https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/tables/cmp_custom_border2.pdf">cmp_custom_border2.pdf</a><br/></div
-
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
-
Deploying iText 7 Suite SDK/API on Amazon Web Services
Converting PDF to Image job key payload (request on /api/job/) {"request": { "type":"PDF_TO_IMAGES", "imageType":"JPEG
-
How to check a check box?
" for the possible values. You need to use a value that is stored in the PDF. Try the CheckBoxValues
-
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 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
-
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 pdfOptimizer 1.0.1
of your PDFs using compression and proprietary optimization strategies to achieve best-in-class performance. This second release
-
Release pdfHTML 4.0.1
Release date: January 11, 2022 The pdfHTML 4.0.1 release is the first release of our HTML to PDF creation add-on in 2022
-
Release pdfXFA 3.0.1
to static PDF. It also enables you to add a digital signature to converted XFA forms as additional security for further processing
-
How to create radio buttons inside a table?
field using Rectangle objects that define the position of the radio buttons on the page. What I don't know, is how to make sure
-
How to change the icon of a push button field?
by xXx Your code sample simply adds an image to the content of a page. As you indicate, that's not what you want. You want
-
Why do I get a StackOverflowException in the OnEndPage() event handler?
to use document.Add() in a page event. The document object passed as a parameter is actually a PdfDocument object
-
How to rotate a single line of text?
(), endText(), etc. PdfPage page = pdfDoc.addNewPage(); PdfCanvas canvas = new PdfCanvas(page.newContentStreamBefore(), page.getResources
-
How to display indian rupee symbol?
, nothing will show up on your page. Please take a look at the RupeeSymbol
-
How to adapt the position of the first line in ColumnText?
= new Rectangle[]{new Rectangle(50, 750, 200, 50), new Rectangle(300, 750, 200, 50)}; // for canvas usage one should create a page
-
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 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
-
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
-
How to rotate a paragraph?
Library to automatize the creation of the Photobooks Hight Quality PDFs that are printed latter on. Adding the user uploaded
-
Multiline fields
=https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/acroforms/cmp_read_only_field2.pdf>cmp_read_only_field2.pdf</a><br/>
-
Embedded files
Examples for adding and removing embedded files in PDFs. These examples were written in answer to the question Click How
-
Removing content with pdfSweep
to questions such as Click How to remove text from a PDF? removecontentinrectangle <div data-pym-src
-
How to draw lines on an image?
also add a white ellipse using the ellipse() and stroke() method. This results in a PDF that looks like
-
How to get the author of a "free text" annotation?
: https://itextpdf.com/sites/default/files/hJlWA.png Annotations in a PDF You'll find this inside the PDF: https://itextpdf.com/sites/defa
-
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 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
-
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 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
-
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
-
Release pdf2Data 2.1.10
data grouping logic based on the field location on the page Bugs fixed potential licensing issues with the CLI Installation
-
Migration guide from iText 5 to iText 7
to rendering HTML to PDF (which in iText 5 was possible using XMLWorker). XMLWorker, which was originally intended to convert
-
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
-
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 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
-
Tables and fonts
">cmp_simple_table7.pdf</a><br/></div> <div><a class="result-file" href
-
pdfHTML: Support for the CSS object-fit Property
at this https://www.w3schools.com/css/css3_object-fit.asplink. object-fit in Practice: Attached is a PDF converted with pdfHTML which con
-
Core SVG: Support <pattern> element
" width="100" height="100" fill="url(#star)" stroke-width="0.8" stroke="black"/> </svg> The iText 7 Core code for generating the PDF
-
Release iText Core 7.1.16
that, support of non-encrypted PDF files with encrypted attachments, and ICCBased colorspaces has been added. Note: We are happy
-
iText 7 Building Blocks - Chapter 6: actions, destinations, bookmarks
=https://github.com/itext/i7js-highlevel/blob/develop/cmpfiles/chapter06/cmp_jekyll_hyde_toc1.pdf>cmp_jekyll_hyde_toc1.pdf</a><br/></div><
-
Objects in columns
Examples in answer to questions such as: Click How to continue an ordered list on a second page? columntextchunkimage <div
-
.Objects in columns vLatest
Examples in answer to questions such as: Click How to continue an ordered list on a second page? columntextchunkimage <div
-
How to draw a borderless rounded rectangle?
and shapes in PDF, you use path construction operators. The following method introduces an re (rectangle) operator to construct
-
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 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