iText Knowledge Base
Search in spaces:
-
How to change a background Image into a watermark by altering the opacity?
a background Image into a watermark by altering the opacity? if you want to see how to answer this question in iText 5
-
.Background images vLatest
These images were written in response to questions such as: Click How to change a background Image into a watermark
-
Background images
These images were written in response to questions such as: Click How to change a background Image into a watermark
-
How to add a watermark to a page with an opaque image?
a watermark to a page with an opaque image? if you want to see how to answer this question in iText 5. watermark transparency
-
How to add an image watermark to a PDF file?
to add an image watermark to a PDF file? if you want to see how to answer this question in iText 5. images watermark
-
How to watermark PDFs using text or images?
. This may not be what you want: maybe you want the watermark to be added differently. Look how the loop changes
-
How to set a fixed background image for all my pages?
sure those are the dimensions of your page? Click How to set a fixed background image for all my pages? if you want to see how
-
Image examples
with Image.getInstance()? How to show an image with large dimensions across multiple pages? How to change a background Image
-
Adding watermarks to images
These examples were written in answer to the following questions: Click How to add text to an image? Click How to draw lines
-
How to add a background image to a cell?
, 0, 1, new Image(ImageDataFactory.create(IMG)), "Top left", TextAlignment.LEFT)); Click How to add a background image to a cell
-
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 get text and image in the same cell?
to see how to answer this question in iText 5. tables cell images watermark itext_7 itext_7_community itext_7_core
-
How to extend the page size of a PDF to add a watermark?
a rectangle that covers the extra half inch. Now switch to the other watermark examples to find out how to add text or other
-
How can I add an image to all pages of my PDF?
how to answer this question in iText 5. page_events images background itext_7 itext_7_community itext_7_core itext_7_suite faq
-
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
-
How to change the color of pages?
behavior. Click How to change the color of pages? if you want to see how to answer this question in iText 5. background color
-
How to add text to an image?
(watermark, width / 2, height / 2, TextAlignment.CENTER, (float) Math.PI / 6); return new Image(template); } This is how we add
-
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 change the icon of a push button field?
I am currently trying to fill out a predefined Form with itextsharp while adding an image. How can I do this? I'am currently
-
How to convert colored images to black and white?
that is changed into gray colors and stored as a PNG: public static Image makeBlackAndWhitePng(PdfImageXObject image) throws
-
How to resize an Image to fit it into a PdfPCell?
% of the available width of the cell. Color charts Click How to resize an Image to fit it into a PdfPCell? if you want to see how
-
Chapter 3: Using renderers and event handlers
; } table.addCell(cell); } } } Let's start with the ordinary cells. In lines 16, 19, 22, and 25, we change the background color based
-
Chapter 3: Using renderers and event handlers | .NET
with the ordinary cells. In lines 17, 21, 25, and 29, we change the background color based on the column number. In line 14, we set
-
How to make an image a qualified mask candidate in itext?
cannot be an image mask Is there any other way to mask an image using another image in iText? I know how to clip an image
-
How to add two images in one cell?
change the width percentage of the image to 20%: cell = new Cell(); img1.setWidthPercent(20); cell.add(img1); img2.se
-
How to preserve high resolution images in PDF?
, the page will have a margin. Click How to preserve high resolution images in PDF? if you want to see how to answer this question
-
How to create unique images with Image.getInstance()?
fixed images but not that good for on-the-fly image generation. How can I guarantee a new bitmap every time? Posted
-
How to give an image rounded corners?
correspond with 1 inch). Question 2: How do you display the image with rounded corners? Some image formats (such as PNG) allow
-
Manipulating existing PDFs
get an error saying that use of extended features is no longer available? How to add a watermark to a page with an opaque image
-
How to get the image DPI in PDF?
How can I read the width/height/scale of an image and be confident about the result? I'm trying to get information about
-
How to use an image as list symbol?
this: Image as a bullet Click How to use an image as list symbol? if you want to see how to answer this question in iText 5. images
-
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 get the co-ordinates of an image?
How do I know whether the extracted image is the same as an image present in database, and the co-ordinates of the image
-
How to add an image to an existing PDF using AffineTransform?
. However: you can't see it because the dimension of the image is 1 user unit by 1 user unit. I've made an example to show you how
-
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 stamp image on existing PDF and create an anchor?
, 100); image.setAnnotation(new Annotation(0, 0, 0, 0, 3)); content.addImage(image); stamper.close(); Any idea how to do
-
How to show an image at a text field position?
= position.position; } This is how I try to set the image on that position: Image image = Image.getInstance("ImageFileName"); Float dimen
-
Chapter 7: Handling events; setting viewer preferences and printer properties
, but what if we want to add a watermark, background, header or footer to every page? How do we know when a new page is created? We'll
-
Why do PDFs change when processing them?
, but I don't change anything. I just take the original metadata and I put it back unchanged: public void manipulatePdf(String
-
pdfHTML: Added full background support
element has a CSS declared multi-image background: image2020-10-16_15-33-14.png In previous versions, pdfHTML would select
-
How to prevent images from resizing in a table cell?
How to prevent images from resizing in a table cell? if you want to see how to answer this question in iText 5. tables images
-
How to add an image to an AcroForm field?
adding images. How is this done? Posted on StackOverflow on Apr 17, 2013
-
How to add an image and text to the same cell?
); table.addCell(cell); doc.add(table); doc.close(); } Click How to add an image and text to the same cell? if you want to see
-
How to generate and design PDFs with iText or iTextSharp?
a handful of lines. Whenever you need to change the layout, you alter the AcroForm template. You do not need to change your code
-
Chapter 5: Manipulating an existing PDF document
at the following lines: line 3: we set the value of the "name" field to "James Bond", but we also change the background color
-
Chapter 5: Manipulating an existing PDF document | .NET
3: we set the value of the "name" field to "James Bond", but we also change the background color to Color.ORANGE. line 8-17: we
-
.Why does the cell background color affect the color of other lines? vLatest
); cb.LineTo(pdfDoc.PageSize.Width, 561); } On one specific page, there's a table where I'm using the following code to change
-
Why does the cell background color affect the color of other lines?
); cb.LineTo(pdfDoc.PageSize.Width, 561); } On one specific page, there's a table where I'm using the following code to change
-
Adding a background to a table
Examples written in answer to questions such as: Click How to set background image in PdfPCell in iText? coloredbackground
-
Which image types are supported by iText?
Which image types are supported by iText? if you want to see how to answer this question in iText 5. images image_type itext_7
-
How to introduce rounded cells with a background color?
I have seen how to create cells with rounded borders, but is it possible to make a cell that will have no borders, but colored
-
Why aren't images added sequentially?
Paragraph("Quick brown fox"); int i = 0; while (i Click Why aren't images added sequentially? if you want to see how to answer
-
How to create a pop-up window to display images and text?
the content. Click How to create a pop-up window to display images and text? if you want to see how to answer this question in iText 5
-
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
-
How to draw lines on an image?
add text in the example written in answer to "How to add text to an image
-
Page events
to change the color of pages? How to set a fixed background image for all my pages? How to check for an event and remove it? How
-
How to precisely position an image on top of a Table?
https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/tables/AddOverlappingImage.java class, we
-
How to change the author name for comments?
")); } } pdfDoc.close(); } Click How to change the author name for comments? if you want to see how to answer this question in iText 5. an
-
How to change the properties of an annotation?
in Java. You'll need to apply small changes to the methods if you want to use them in C# code. Click How to change the properties
-
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 change width of single column of table?
float[]{2, 1, 1}); Now the width of the first column is double the size of the second and third column. Click How to change width
-
How to change the text color of an AcroForm field?
", but the fields in the TOTAL column are written in red. Click How to change the text color of an AcroForm field? if you want
-
How to change the order of Optional Content Groups?
https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/stamper/ChangeOCGOrder.java example to fin
-
How to generate 2D barcode as vector image?
difference with ordinary images, is that this image is a vector image. Click How to generate 2D barcode as vector image? if you
-
How to change the spacing between words and characters?
); document.close(); } How can I change this code to get a result like in figure 2? Posted on StackOverflow on Jun 16, 2015
-
Chapter 4: Adding AbstractElement objects (part 1)
didn't go into detail regarding the IRenderer implementations, but we looked at an example in which we changed the way a background
-
Adding images to a table
This example was written to answer questions such as: Click How to precisely position an image on top of a PdfPTable
-
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
-
How to change the color of a circle annotation?
. That is not a problem caused by the PDF (nor iTextSharp), that is a viewer problem. Click How to change the color of a circle
-
Chapter 5: Adding AbstractElement objects (part 2)
a different background color for some of the cells. Additionally, we've changed the padding here and there. Figure 5.10: Cells
-
pdfOptimizer: Support added for Font, Image, Color Space optimization
Background: pdfOptimizer https://itextpdf.com/en/products/itext-7/compress-pdf-pdfoptimizer is iText's latest and greatest
-
How to change the line spacing of text?
, it will be 20, and so on. You cannot combine fixed and multiplied leading. You can use only one of them. Click How to change the line
-
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 do I change the border color of a PdfPCell?
How do I change the border color of a PdfPCell? if you want to see how to answer this question in iText 5. tables cell_border
-
Chapter 3: Using ILeafElement implementations
to change the font, to change the background color, to add borders, and so on. Extra methods available in the Text class We've
-
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 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
-
How to change the zoom factor in link annotations?
I want to change only zoom property of links. This is what I currently have: int n = reader.getNumberOfPages(); PdfDestination
-
.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
-
Chapter 5: Custom tag workers and CSS appliers
> </body> </html> Do you see how we defined the colors in this HTML file? We used achtergrond instead of background, kleur instead
-
Release iText Core 7.1.13
also made important changes regarding how word-wrapping is handled in the context of languages that use special scripts
-
Chapter 4: Creating reports using pdfHTML
in the next example where we'll introduce company stationery as a background image. Adding a background and a custom header or footer
-
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
-
Page events for Watermarking
watermarking <div data-pym-src='https://itext.jdoodle.com/embed/itext' data-java-url
-
Can I change the page count by changing internal metadata?
structure of PDF document. While searching the internet, I've found some nice tools to edit the metadata, so far I haven't found how
-
How to get specific types from AcroFields? Like PushButtonField, RadioCheckField, etc
far so good, but then comes the second question: How do I find the check type? How do I change it? That question reveals a lack
-
pdfRender: BufferedImage as output format
The pdfRender add-on enables you to easily display (render) any PDF as an image. Before version 1.0.2 of the library you were
-
How to add a printable or non-printable bitmap stamp to a PDF?
to viewer. You want to use an image instead of one of these predefined stamps. This is shown in the AddStamp
-
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
-
How to add a map with a pointer to a PDF?
with a pointer to a PDF? if you want to see how to answer this question in iText 5. images annotations line_annotation itext_7
-
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
-
How to define the data encoding when submitting a PDF form using AcroForm technology?
), and I submit the data to a server, how can I specify/retrieve the encoding that will be used? For instance. When I submit
-
How to continue field output on a second page?
implements IEventHandler { protected PdfFormXObject background; public PaginationEventHandler(PdfFormXObject background) throws
-
Part IV - Appearances
">appearance.SetReuseAppearance(true);</div> </div> Adding a background image In addition to the signature graphic foreground
-
Actions and annotations
? How to change the color of a circle annotation? How to create hierarchical bookmarks? How to modify the size of annotations
-
How to introduce multiple PdfPageEventHelper instances?
. Some pages have common headers, page counts, watermarks my initial thought was to have different PdfPageEventHelper subclasses
-
Changing the zoom factor in a link destination
written in the context of questions such as: Click How to set the zoom level of a PDF using iTextSharp? Click How to change the zoom
-
How to create a table with 2 rows that can be used as a footer?
I want to add footer with 2 rows. The 1st row will have the document name with a background color. The 2nd row will have
-
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
-
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 the zoom factor in a link destination vLatest
written in the context of questions such as: Click How to set the zoom level of a PDF using iTextSharp? Click How to change the zoom
-
Release iText 7.1.3
SVG can be regarded as "just another image format" that users can expect iText to support out-of-the-box, we decided
-
How to use Cyrillic characters in a PDF?
" This will also make sure that the content doesn't get altered when compiling the code using a compiler that expects a different
-
.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 pdfHTML 3.0.1
to better handle splitting Support CSS text-decoration shorthand properly Bugs Support background-image CSS property for text span
-
Changing the author of an annotation
Example written in answer to the question Click How to change the author name for comments? changeauthor <div data-pym-src
-
.Changing the author of an annotation vLatest
Example written in answer to the question Click How to change the author name for comments? changeauthor <div data-pym-src
-
Chapter 3: Generating PDF based on Media Queries
{ background-color: #F9C227; color: #FFFFFF; margin-bottom:10px; } This CSS snippet defines the colors and some metrics for a header
-
Interactive forms
to show an image at a text field position? How to change the icon of a push button field? How to set the export value of a check box
-
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
-
Raw images
This example was written in answer to the question Click How to create unique images with Image.getInstance()? rawimages <div
-
pdfCalligraph: New types of GSOP lookup
Background: The Glyph Positioning table (GPOS) provides precise control over glyph placement for sophisticated text layout
-
pdfHTML: more accurate rendering of checkboxes
. Therefore, there should be no changes required in how users currently process HTML. 7_2_2_example pdfhtml html_to_pdf
-
Tiling images
This example was written in answer to the question Click How to show an image with large dimensions across multiple pages
-
Image masks
This example was written in response to the question Click How to make an image a qualified mask candidate in itext
-
Replacing images
This example was written in response to the question Click How to convert colored images to black and white? replaceimage <div
-
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
-
Multiple images
This example was written in response to the question Click How to add multiple images into a single PDF? multipleimages <div
-
Image on rotated page
Example that shows how to position an image on a rotated page. imageonrotatedpage <div data-pym-src
-
.Tiling images vLatest
This example was written in answer to the question Click How to show an image with large dimensions across multiple pages
-
.Replacing images vLatest
This example was written in response to the question Click How to convert colored images to black and white? replaceimage <div
-
.Multiple images vLatest
This example was written in response to the question Click How to add multiple images into a single PDF? multipleimages <div
-
Release iText 7.0.3
when adding image/barcode DEVSIX-1118 https://jira.itextsupport.com/browse/DEVSIX-1118: Ignore /Differences entries that come
-
Images that use different filters
Read more about these examples in the Q&A entry Click How to add JPEG images that are multi-stage filtered (DCTDecode
-
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 get the color properties of an AcroForm field?
of numbers that shall be in the range 0.0 to 1.0 specifying the colour of the widget annotation’s background. The number of array
-
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
-
Chapter 7: Creating PDF/UA and PDF/A documents
created a document that included images. In the sentence "Quick brown fox jumps over the lazy dog", we replaced the words "fox
-
Why is content missing in my table?
I am adding image cells based on an imagelist that may not contain 6 or 12 or 18 images. The number of images can be 1 or 7
-
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
-
How to set the OCG state of an existing PDF?
value to "on". How can I change this to "off"? Posted on StackOverflow on May 1, 2014
-
How to avoid an exception when importing a TIFF file?
begin with EOL code word. I can open the tiff file in any image viewer, so it's valid. Posted on StackOverflow on Apr 22, 2015
-
Use cases
digital invoice can be intercepted and altered. Some criminal organizations specialize in changing the wiring information
-
Release iText 7.1.6
border, background and font for FormFields Allow unknown annotation type in PdfAnnotation#makeAnnotation() layout Update a table's
-
How to rotate a single line of text?
How do I rotate text using the central point? I'm converting a document which is created with a online editor. I need
-
How to create a list without indentation?
the label and the content of a list item by default in iText 7. Your question is: how can we remove this indentation. So at first I
-
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
-
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
-
Chapter 7: Creating PDF/UA and PDF/A documents | .NET
created a document that included images. In the sentence "Quick brown fox jumps over the lazy dog", we replaced the words "fox
-
Appendix
that the method works because the image isn't transparent. For instance: it doesn't make sense to set a background color for an opaque im
-
How can I find the border color of a field?
(PdfName.MK); PdfArray bc = mk.getAsArray(PdfName.BC); The values stored in the array bc will inform you about the background color
-
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
-
PDF and Digital Signatures
changed somewhere in the workflow, Authenticity: we want assurance about the origin of the document, e.g. about the identity
-
How to convert an A4 size PDF to a PDF booklet?
: How book pages are printed (The image was taken from a blog entitled "Page counts explained
-
PNG Image Handling
iText Core 7.1.11 introduced more robust PNG image handling to address an issue which could occur when adding certain PNG
-
How do the measurement systems in HTML relate to the measurement system in PDF?
-dependent. The default value of the UserUnit is 1, so unless we change the UserUnit deliberately, we don't have to worry about
-
How to modify the size of annotations and make them read-only?
1. Is it possible to disable the options dropdown list for annotations(text,stamp etc.)? If so, how? 2. Can the size
-
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 define the width of a cell?
I'm trying to change the width of a cell, but I don't succeed. Can someone explain how to define the width of a cell? Posted
-
Can pdfHTML render Base64 images to PDF?
Yes, iText supports external images as shown in different examples in the previous chapters, but it also supports inline
-
How to rotate and scale pages in an existing PDF?
basically no idea how to properly scale the source page when it needs to be resized. To this end I'm using the PdfWriter class
-
How to draw a borderless table in iTextSharp?
anymore, you should use Cell instead. By default, each cell has a border. You can change this default behavior by changing
-
How can I generate a PDF/UA compatible PDF with iText?
. However, I have not been able to find a good example of how to generate a PDF/UA document. Can you provide an example? Posted
-
How to align a label versus its content?
I want my content to be aligned so that every line starts at the same X position, no matter how many items are added
-
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
-
Chapter 1: Introducing basic building blocks
, List, Image, Chunk, and other high-level objects. By combining these intuitive building blocks, a developer could easily create
-
Chapter 2: Adding low-level content | .NET
: adding skewed and colored text at absolute positions Changing the color of the background is the easy part
-
.Chapter 2: Adding low-level content | .NET vLatest
: adding skewed and colored text at absolute positions Changing the color of the background is the easy part in the StarWarsCrawl
-
.How do I set parameters back to the default value? vLatest
(PdfContentByte.TEXT_RENDER_MODE_FILL_STROKE); That works, but creates another problem. I don't know how to set these parameters back
-
How do I set parameters back to the default value?
(PdfContentByte.TEXT_RENDER_MODE_FILL_STROKE); That works, but creates another problem. I don't know how to set these parameters back
-
How to enable LTV for a timestamp signature?
Acrobat tells me my signature is LTV enabled, but the timestamp signature is not. How can I make both LTV enabled? I'm using
-
How to format a field as a percentage?
, the JavaScript methods that are triggered when a form is filled out manually, aren't executed. Hence 1.0 will not be changed
-
Chapter 1: Introducing basic building blocks | .NET
, List, Image, Chunk, and other high-level objects. By combining these intuitive building blocks, a developer could easily create
-
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
-
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
-
How to shrink pages in an existing PDF?
example. It's only a matter of changing the default version of the user unit. By default, this unit is 1, meaning that 1 user unit
-
How to rename named destinations in existing PDF files?
and new names in a Map named renamed. I use this map to change the destinations of the Link annotations on the first page. Click How
-
How to get the rendered dimensions of text?
(), but I'm looking for more detailed information like: How many lines would a string need if rendered in a cell of a given width (say
-
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
-
Chapter 2: Adding low-level content
text at absolute positions Changing the color of the background is the easy part in the StarWarsCrawl
-
How to convert PdfStamper to a byte array?
doesn't contain any resources such as fonts, images, form XObjects, etc... Click this link if you want to see how to answer
-
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 decrypt a PDF document with the owner password?
, but after a change in version 5.3.5 of the library that solution no longer works. Posted on StackOverflow on January 9, 2015
-
How to make a field not required?
at the “How to find out which fields are required?” question. Is solves the same problem. Based on your question, I assume that you have
-
How to tile a document and add margins to the tiles?
how we make a distinction between rect and pagesize? We define rect as the size of the original pages and we define pagesize
-
Release pdfOffice 1.0.0
want to add watermarks (iText 7 Core) and redact sensitive data (pdfSweep). For archiving, you would definitely benefit from
-
How to rotate a paragraph?
images to the PDFs was really simple, the problem comes when I try to add the text. In theory what I would need to do
-
How to add a page number in the header of a PDF/A Level A file?
an exception telling me that the content I'm adding isn't tagged. How do I solve this problem? Posted on StackOverflow on Dec 16, 2014
-
How to fill a rectangle with color?
How do I ensure that I can choose the fill color? I have the following code : PdfContentByte canvas = writer.getDirectContent
-
What is the PdfPTable.DefaultCell property used for?
find some changes in creating tables. PdfPTable and PdfPCell don’t exist anymore, we use Table and Cell. You should use addCell
-
How to extract embedded streams?
as is done in this question: How to change the zoom factor in link annotations
-
How to add a rectangle to every page of a document?
to get a rectangle on every single page of the document but I'm not sure how to do this. I tried adding this at the end of my code
-
How do I rotate a PDF page to an arbitrary angle?
means that I cannot convert the page to an image because of the loss of resolution. Posted on StackOverflow on Feb 1, 2015
-
How to create a custom dashed line separator?
between two parts of text on the same line. The DottedLine class draws a dotted line. You can define the size of the dots by changing
-
How to align AcroFields?
getting proper PDF, but I want to change the alignment of some fields. I am using the following code. fields.setFieldProperty
-
How to create a table with complex borders?
to change parameters such as the widths array, the padding, the fixed height, etc. Click How to create a table with complex
-
How to rotate a page while creating a PDF document?
in your image. The possible values for the rotation in iText7 are the following: INVERTEDPORTRAIT = new PdfNumber(180); LANDSCAPE
-
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
-
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
-
Can I convert an HTML form to a PDF?
background: A simple PDF form If we don't change the ConverterProperties (Java
-
How to allow a Unicode subscript symbol in a PDF without using setTextRise()?
Is there a setting to change the encoding/font of the text to UTF-8, so that it allows all the Unicode symbols? I have been
-
How can I crop the pages of an existing PDF document?
I have an existing document of which the pages are too big. How can I crop the pages? Posted on StackOverflow on Apr 12, 2014
-
How to introduce a rowspan?
for all the rows. The result should be like where it says Deloitte in the column of company as shown in the image
-
How to allow page extraction when setting password security?
are as follows: Printing: ALLOW_DEGRADED_PRINTING or ALLOW_PRINTING Changing the document: ALLOW_MODIFY_CONTENTS Commenting
-
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.
-
How to get the UserUnit from a PDF file?
in. = 25.4 mm = 72 user units (which roughly corresponds to 72 pt). On the next page, I explain that it's possible to change
-
How to find out which fields are required?
changes, you can adapt that example to check for required fields: public void manipulatePdf(String src, String desttxt) throws
-
How does a PdfPCell's height relate to the font size?
of the cell. It's similar to the concept with the same name in HTML. You can change the padding of a cell with the setPadding
-
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 introduce a custom font weight in iText 7?
control the boldness of your font by changing the line-width render-mode. This is especially useful in case you are working
-
How to use the font Verdana in PdfStamper?
to change that to the Verdana Font, but simply exchanging the Part BaseFont.HELVETICA with "Verdana" doesn't work. Posted
-
iText Core: Support Type3 fonts reading for stamping mode
Background: Type3 fonts are user-defined fonts in which arbitrary characters are mapped to custom glyphs. For instance
-
.iText Core: Support Type 3 fonts reading for stamping mode vLatest
Background: Type 3 fonts are user-defined fonts in which arbitrary characters are mapped to custom glyphs. For instance
-
How to create a table with only vertical borders?
https://stackoverflow.com/users/5064085/semil-sebastian You can change the borders of the cells so that they only show
-
How to adapt the position of the first line in ColumnText?
https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/objects/ColumnTextAscender.java example. H
-
How to make a particular sub-string Bold when converting HTML to PDF?
a suitable method for this. How should I do this? Posted on StackOverflow on Jun 4, 2014
-
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
-
Changing properties of an annotation
Examples in response to questions such as: Click How to modify the size of annotations and make them read-only? movepopup <div
-
Changing the alignment of a field
This example was written in answer to the question Click How to align AcroFields? alignfield <div data-pym-src
-
.Changing properties of an annotation vLatest
Examples in response to questions such as: Click How to modify the size of annotations and make them read-only? movepopup <div
-
.Changing the alignment of a field vLatest
This example was written in answer to the question Click How to align AcroFields? alignfield <div data-pym-src
-
Release pdfCalligraph 2.0.7
this change (everyone likes a before and after image, right?) Before: image2020-7-10_10-51-58.png After: image2020-7-10_10
-
How to create a complex PDF document?
to code once. If for some reason you want to move the fields to another place, you only have to change the template, you don't have
-
Change the position of a field
These examples were written in answer to questions such as: Click How to move an AcroForm field? changefieldsize <div data-pym
-
How to extract text and anchor information from a PDF?
text you can see in an PDF file is stored in content streams using PDF syntax as described in Adobe's Imaging Model
-
Basic Concepts (Glossary)
be validated for integrity, authenticity, and non-repudiation, Existing records can't be removed, nor can their order be changed
-
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 draw a line every 25 words?
as shown in the following image: https://itextpdf.com/sites/default/files/HiSHy.png I'm aware there's a way of that I can extract text
-
How to draw a borderless rounded rectangle?
misconception that changing the width of a line to 0 means that the line isn't drawn when invoking stroke(). If you don't want
-
How to check if a font is bold?
representation of font. I know that there is one more way of making text appear bold, for instance by changing the render mode. However
-
How to fill XFA form using iText without breaking usage rights?
filled pdf, Adobe Reader says something like this: This document enabled extended features. This document was changed since
-
How to read text from a specific position?
))); text.Append(currentText); } pdfReader.Close(); } return text.ToString(); But how can I only restrict it to a specific location? Poste
-
Release pdfHTML 3.0.2
of the background properties in CSS: background-repeat, background-position-x, background-position-y, background-blend-mode, background
-
Flexbox suport in pdfHTML
https://www.w3.org/TR/css-flexbox-1/ module. Background CSS Flexible Box Layout, commonly known as Flexbox, is a CSS 3 web layout model
-
Release iText Core 7.1.14
as Beveled, Underline and Inset are now available in iText Core. A few changes have been made to OpenType Font (OTF) processing which
-
Questions about PDF in general
What does Not LTV-enabled mean? How to protect a PDF with a username and password? How to hide the Adobe floating toolbar when
-
pdfRender: WEBP format support added
settings. Not a lot changes in the actual pdfRender library, other than the fact that it is now able to handle WEBP images
-
How to add a new form from an existing PDF template?
: In this case, the PDF is merely a container for an XML stream that defines your form. The only way to change it, is by editing
-
pdfHTML: Support for overflow-wrap, word-break CSS Properties
Background: The word-break property is utilized to specify how line breaks are inserted within text elements. In the following
-
Release iText 7.1.5
24bit and 8bit depth Transparent PNG images A fix for a very rare yet stingy memory leak layout It is now possible to add a Link
-
Release iText Core 7.2.0
change in this release of iText 7 is the new Unified License Mechanism, where we can have independent licenses for iText 7 Core
-
How to create a table based on a two-dimensional array?
only want 2 rows, a title row and a data row, change the following line: for (int i = 0; i < 10; ) { Into this: for (int i = 0
-
Chapter 6: Creating actions, destinations, and bookmarks
of branches, and leaves. It also shows how you can change the color and style of an element in the outline tree, and how you can
-
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
-
Chapter 6: Reusing existing PDF documents
example shows how it's done. PdfDocument pdf = new PdfDocument(new PdfWriter(dest)); PdfDocument origPdf = new PdfDocument(new
-
Chapter 6: Reusing existing PDF documents | .NET
https://itextpdf.com/content/itext-7-jump-start-tutorial/examples/chapter-6#c06e01_thegoldengatebridge_scale_shrink.cs example shows how
-
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
-
.How to create a table based on a two-dimensional array? vLatest
only want 2 rows, a title row and a data row, change the following line: for (int i = 0; i < 10; ) { Into this: for (int i = 0
-
Drawing extra content on an image
This example was written in answer to the question Click How to add a map with a pointer to a PDF? addpointer <div data-pym
-
Release iText 7.1.7
https://www.nuget.org/packages/itext7.pdfhtml/2.1.4 Improve display: inline-block support Improve image support within list, div and tabl
-
Which PDF filters are used to encode data?
, because that's the standard compression for PDF. Image streams use other filters when applicable, for instance: JPEG images
-
Release iText 7.0.4
https://jira.itextsupport.com/browse/DEVSIX-1366] - How can we change the default leading of a document? [DEVSIX-1371 https://jira.itexts
-
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
-
.Drawing extra content on an image vLatest
This example was written in answer to the question Click How to add a map with a pointer to a PDF? addpointer <div data-pym
-
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
-
Release pdfRender 1.0.2
Release date: October 22, 2020 The most important feature which was added in this release is a change to the supported output
-
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
-
pdfOffice + iText Core Annotations Example
Background: With the addition of pdfOffice to the iText 7 Suite portfolio comes a wide range of potential synergies and new
-
pdfHTML: Bézier Curve Improvements
Background: With the 7.1.16 release of iText Core and 3.0.5 of pdfHTML have come some improvements to how Bézier curves
-
pdfOffice + pdfSweep Redaction Example
Background: With the addition of pdfOffice to the iText 7 Suite portfolio comes a wide range of potential synergies and new
-
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
-
Improving SVG to PDF conversion
fixes, not much will change for the average user in terms of how they code their applications, all SVG creation elements work
-
General questions about iText
the accuracy of measurements in iTextSharp? How to change the spacing between words and characters? Why do I get a BouncyCastle
-
Why do I get a message saying 1.not.found.as.a.resource?
to explain why it happens. All of this shouldn't be a problem when using the correct jar with a JDK that knows how to read
-
Chapter 2: Defining styles with CSS
">IMDB</a></div> </body> </html> Colossal The width of the image and its position are now defined in a style attribute. So
-
pdfHTML: Using emojis in iText
format. Emojis may give you the impression that they are small images in a traditional sense, but they are actually more closely
-
Release pdfOffice 2.0.1
below. As for the rest of the changes, expect a few bug fixes and a reduction in size for the resulting PDF documents. Release
-
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 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.1.1
algorithm. Link annotation improvements. Alignment bugs for floating elements, large tables, and landscape mode. Image extraction
-
How to add a border to a paragraph?
I've created a Paragraph using iText. Now I have to add a border to this paragraph, not to the whole document. How do I do
-
How to nest tables without extending the inner table?
How can I avoid that the smaller table stretches to fit the cell of the outer table? Additionally: how do I align the inner
-
Argument not specified in iTextSharp
in .NET start with upper case, so when people ask you to use Java code as pseudo code and to convert Java to .NET, you need to change
-
How to tell iText how to clip text to fit in a cell?
control over how text is clipped? Thanks. Posted on StackOverflow on Feb 28, 2014
-
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
-
Support of proper word wrapping in languages with special scripts
In release 7.1.13 of the iText Core layout API, we have made some important changes regarding how word-wrapping is handled
-
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
-
Volume Counter FAQs
the instructions marked iText 7.1.x in this FAQ. However, if you have a JSON license key file, see the instructions for iText 7.2.x. How
-
Release iText Core 7.1.12
to check our future releases, as even wider support is coming. As for the rest of the changes, expect the typical ongoing mix
-
How much does it cost to upgrade iText 5 to iText 7?
changes in the document model. iText 7 puts more emphasis on the separation of the high-level document model and the low-level
-
How to create a link to a specific page number?
My question is how to target a page based on its number. For example if targeted page number is 6, clicking on the Anchor text
-
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 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
-
How to get the number of characters in a field?
with a value but then I need to know how many digits are expected for the date of birth. I figured that if I could get
-
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 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 create a table with rounded corners?
How do I do this? I have to create a table having rounded corners, something like it: Posted on StackOverflow on May 14, 2014
-
How to 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 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 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
-
Why can't I set the font of a Phrase?
https://stackoverflow.com/users/487313/alain-buferne In your example "Nos formules" will be written in Helvetica. You change the font aft
-
How can I find the maximum character limit for a text field?
How can I find the maximum character limit for a text field in an AcroForm form? I've researched this problem and I tried
-
How to position text relative to page?
. Please help, I don't know how to properly use mediabox and cropbox and I'm new to iText. Posted on StackOverflow on Jul 13
-
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 introduce superscript?
How do I format dates so that the "th" in 14th or "rd" in 3rd is in superscript? I want to format a date like this: 14th may
-
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
-
Release iText 7.1.11
https://itextpdf.com/en/products/itext-7/pdfsweep, also benefits from changes to Core. Included is some pretty cool stuff (even a new ico
-
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
-
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
-
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 use two different colors in a single String?
I want to set the color for only part of the string. How do I do this? I have string like below, and I can't split the string
-
How to delete attachments in PDF using iText?
I want to write another program to delete the embedded files. How can I do this? Attachment shown in Adobe Acrobat public void
-
How can I use regular and bold in a single String?
I have a String that consists of a constant part and a variable part. How do I get the variable to be formatted using
-
How to fix the orientation of a PDF page in order to scale it?
How do I properly rotate page contents and how can I scale the rotated contents correctly? I need to scale down the pages
-
How do I get a free trial?
Click here https://itextpdf.com/en/get-startedto request your free 30 day trial. free_trial itext_7_suite faq Changed non
-
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 an In Reply To annotation?
. It needs a reference to the parent popup. Like /IRT 16 0 R. How do I find this reference? Posted on StackOverflow on Feb 11, 2015
-
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
-
Change the content of a button
changebutton <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
.Change the content of a button vLatest
changebutton <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
How to draw vertical gradient in iTextSharp?
I can make a horizontal gradient, but how do I make it vertical? I am trying to draw a vertical gradient at the bottom
-
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 display indian rupee symbol?
like this: ?). Note that it's very important to check if the font you're using knows how to draw the symbol. If it doesn't
-
How to add a full line break?
how to do this. The document always has a margin to the left and the right. Chunk linebreak = new Chunk(new DottedLineSeparator
-
How to encrypt PDF using a certificate?
need to post another question: how to get a public certificate from a smart card. Once you have this certificate, you can encrypt
-
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 to check for an event and remove it?
removeAllHandlers(). Click How to check for an event and remove it? if you want to see how to answer this question in iText 5. page_event
-
Release iText 7.0.2
Support @media, initial support for @page rules Support base64-encoded images Better CSS positioning support Maven If you're using
-
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 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 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 set initial view properties?
this [ {Catalog} > /PUT pdfmark. How is it done in PDF? Posted on StackOverflow on Jun 23, 2014
-
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
-
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 convert an existing A4 PDF document to an A3 booklet?
can guide me how to do this. A sample would be appreciated. Note: the output PDF should be an A3 booklet format. Posted
-
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 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 check a check box?
: Check box appearance states Click How to check a check box? if you want to see how to answer this question in iText 5. forms
-
pdfOffice: improved conversion of docx files containing embedded videos
an embedded image of the video's thumbnail. Now, such conversions will preserve the embedded video's link to the online version
-
How to create a pushbuttonfield with double byte character text?
1 font Helvetica. This font doesn't know how to write Japanese. I used the font freesans.ttf. If you don't have that font, you
-
How to send a file to the server through a PDF?
prepared an example that explains how to create such a field when creating a document from scratch: FileSelectionExample
-
How to define spacing and leading in PdfPCell objects?
different values to demonstrate how it works. The third paragraph sticks to the second one, because the leading of the third
-
How to create a document with unequal page sizes?
https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/objects/UnequalPages.java example for you
-
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 calculate/set font line distance?
() - 20, 0); I need to add 3 lines, but I don't find how to calculate the distance between the lines. Each line has different
-
How to prevent the resizing of pages in PDF?
to be taken, by setting the PRINTSCALING to NONE. Click How to prevent the resizing of pages in PDF? if you want to see how
-
How to get the current page count?
: pdfDoc.getNumberOfPages(); Click How to get the current page count? if you want to see how to answer this question in iText 5. page_numb
-
How do setMinimumSize() and setFixedSize() interact?
text in cells set to a fixed height clip. Is that what iText does? If not, how do I achieve this? While we're at it, am I
-
How to create a table in which the cells have different widths?
How to create with Java a table with three different row widths. How to create a table with Java that has three rows
-
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
-
How to load a PDF from a stream and add a file attachment?
to create in memory and never will be in file system. How can I do this with iText? I'm using a MS SQL Report Server web service
-
Generating and displaying bar codes
How to generate 2D barcode as vector image? barcodes <div data-pym-src='https://itext.jdoodle.com/embed/itext' data-java-url
-
Which languages are supported in pdfHTML?
with a combination of Chinese and English text, you will only see the English text, unless you provide a font that knows how
-
How to set up a table display?
; } Using this method will make your code easier to read and maintain. This is how we create the document and add the table: public
-
How do I insert a hyperlink to another page in an existing PDF?
(10,10,100,100,0); rectangle.BackgroundColor = BaseColor.BLUE; overContent.Rectangle(rectangle); stamper.Close(); How can I do similar
-
How to add a hidden text field?
property. field.Visibility = PdfFormField.HIDDEN; Click How to add a hidden text field? if you want to see how to answer
-
How to resize a PdfPTable to fit the page?
* 2, tableHeightTotal + margin * 2) and the table should fit the document exactly. Click How to resize a PdfPTable to fit
-
How to underline text with a dotted line?
(using the constructor of DottedLine). Click How to underline text with a dotted line? if you want to see how to answer
-
How to merge PDFs from ByteArrayOutputStreams?
understand how to do this because it seems that I need an InputStream (and I only have ByteArrayOutputStreams). Posted
-
How to get a font from an array?
of two files: a metrics file (AFM or PFM) and a font binary (PFB). In the code above afm and pfb are byte arrays. Click How
-
How to merge PDFs and add bookmarks?
. Click How to merge PDFs and add bookmarks? if you want to see how to answer this question in iText 5. bookmarks merge_documents
-
How to attach files to a PDF?
have to do an extra effort trying to read the PDF standard... Click How to attach files to a PDF? if you want to see how to answer
-
How to hyphenate text?
")); table.addCell(new Cell().add(paragraph)); Click How to hyphenate text? if you want to see how to answer this question in iText 5
-
How to add a table as a header?
it throws the following exception: The table width must be greater than zero. Why? What is the problem? How is it possible
-
Why iText and Blockchain?
; often it's merely data presented to us in an app. The mentality towards documents is changing: In the past, users didn't trust
-
Digital Signatures Hub
on our website. Since then, they have been completely updated and rewritten for iText 7. This meant significant changes in some
-
How to superimpose pages from existing documents into another document?
error: Exception in thread "main" java.io.IOException: RandomAccessSource not opened How can I solve this problem? Posted
-
How to write a table header if part of a table is forwarded to the next page?
https://stackoverflow.com/questions/32582927 by Amit Ware https://stackoverflow.com/users/4684743/amit-ware This is how you create
-
How do I add XMP metadata to each page of an existing PDF?
something to it. This is how you get the XMP bytes: byte[] xmpBytes = page.getXmpMetadata().getBytes(); You perform your XML
-
How to align two paragraphs to the left and right on the same line?
should be like Name:ABC date:2015-03-02 How can I do this? Posted on StackOverflow on Apr 11, 2015
-
Does anyone have any idea how TabStop works?
I'm still trying to learn iText and have a few of the concepts down. However I can't figure out what TabStop is or how to use
-
How can I add titles of chapters in ColumnText?
https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/events/CreateTOCinColumn.java example to f
-
How to get the page number of an arbitrary PDF object?
the object containing the open action. How do I get the page number of that object? PdfReader soPdfItext = null; try
-
How to remove text from a PDF?
has been removed. Click How to remove text from a PDF? if you want to see how to answer this question in iText 5. redaction
-
How to use the full size of a page?
you 13 by 128 user units to add content. This is somewhat consistent with what you experience. Click How to use the full size
-
How to insert a "linked rectangle" with iText?
of a rectangle on a given page. I want to link this rectangle to another page of the same PDF (which I also know in advance). How do I
-
How to set the export value of a check box?
the possible values of an existing check box by looking at the appearance dictionary (/AP), but I don't know how to set the export
-
How to create a link to launch an external program?
to the PdfAction. Click How to create a link to launch an external program? if you want to see how to answer this question in iText 5
-
How to create a JavaScript action to open the attachments panel?
= Adobe Reader) and it won't work if people disable Javascript. Click How to create a JavaScript action to open the attachments
-
How can I read Roman page numbers?
Movies-5 Movies-6 Movies-7 Movies-8 Click How can I read Roman page numbers? if you want to see how to answer this question in iText
-
How to write a Zapfdingbats character at a specific location on a page?
how to draw a Zapfdingbats character: PdfFont zapfdingbats = PdfFontFactory.createFont(FontConstants.ZAPFDINGBATS); Once you
-
How to set the zoom level of a PDF using iTextSharp?
example. This is how it’s done in iText 7: PdfDocument pdfDoc = new PdfDocument(new PdfReader(SRC), new PdfWriter(DEST
-
Chapter 4: Making a PDF interactive
#iText7jump-starttutorial:Chapter4-c04e01_02_linkannotation example shows how it's done. PdfLinkAnnotation annotation = new
-
Chapter 4: Making a PDF interactive | .NET
https://itextpdf.com/content/itext-7-jump-start-tutorial/examples/chapter-4#c04e01_02_linkannotation.csa example shows how it's done. /Cr
-
How to add a table on a form (and maybe insert a new page)?
https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/acroforms/AddExtraPage.java example writte
-
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 can I convert a CSV file to a table with a repeating header row?
in the beginning of every page) should be in a different font and color. Just to be clear, I know how to set the font style/size/color. I
-
How to add blank pages while concatenating several PDFs using PdfSmartCopy
of files, which is why I'm not using it. I've read the answer to the question "How to add blank pages in exist PDF in java
-
pdfCalligraph: Support wrapping at word boundaries for languages which don't use spaces for word separation
Paragraph paragraph = new Paragraph(this.thaiText); //set width of paragraph (optional) paragraph.setWidth(50); //set background
-
How to create a clickable polygon or path?
QuadPoints ;-) Allow me to explain how QuadPoints are used by showing you the AddPolygonLink
-
How to add text as a header or footer?
the text that was added as a header and a footer to each page. Click How to add text as a header or footer? if you want to see
-
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
-
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 merge documents correctly?
the unofficial documentation for the popularity of this wrong approach. Click How to merge documents correctly? if 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
-
iText 7: Converting HTML to PDF with pdfHTML
find a full list of features here https://itextpdf.com/features. Introduction In this tutorial, we'll learn how to convert HTML
-
How to keep specific words together on one line?
instead. Click How to keep specific words together on one line? if you want to see how to answer this question in iText 5. non
-
How to find the absolute position and dimension of a field?
that corresponds with the annotation. That's more work than can be provided in a code sample on this site. Click How to find
-
How to underline a portion of text in a text field?
enclosed in -tag to be underlined. How could I do that? For example: U>This text/U> should be underlined. I need the text enclosed
-
How to make sure a check box is printed?
with this problem in iText 7. Click How to make sure a check box is printed? if you want to see how to answer this question
-
How to add an inner table surrounded by text?
Table and Cell classes in iText 7 instead of PdfPTable and PdfPCell. Click How to add an inner table surrounded by text? if you
-
How to maintain a paragraph's indentation inside a table cell?
at the level of the Paragraph are preserved. Click How to maintain a paragraph's indentation inside a table cell? if you want to see
-
How to extract a page number from a PDF file?
, not only with iText, Tika, PdfBox, or any other tool you might try). Click How to extract a page number from a PDF file
-
How to define the page size based on the content?
measurements are done in user units and that one user unit equals 1 pt by default. Click How to define the page size based
-
How to use multiple fonts in a single cell?
is identical. Click How to use multiple fonts in a single cell? if you want to see how to answer this question in iText 5. fonts
-
How should I interpret the coordinates of a rectangle in PDF?
right Y Every time, I get confused about how to make dimensions based on these coordinates to draw rectangle. If possible, can I
-
How to strike through text using iText?
, iText has made a couple of decisions for you: where do I put the line? How thick is the line? If you want to make
-
Why do I get an error saying that "use of extended features is no longer available"?
functionality (as defined in the usage rights when signing) is unlocked in Adobe Reader. You change the content of such a PDF
-
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 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 disable the save button and hide the menu bar in Adobe Reader?
); stamper.setViewerPreferences(PdfWriter.HideToolbar); My problem boils down to this: how do I disable the "save" button in the Adobe Rea
-
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
-
.Color of a circle annotation vLatest
Example written in answer to the question Click How to change the color of a circle annotation? circleannotation <div data-pym
-
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 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 can I add a new AcroForm field to a PDF?
fields to a PDF. Is this possible with iText? If so, how can I do this? Posted on StackOverflow on Nov 30, 2014
-
iText 7: Building Blocks
https://api.itextpdf.com/iText7/java/latest/com/itextpdf/layout/element/List.html/.NET https://api.itextpdf.com/iText7/dotnet/latest/clas
-
Do I need a license for Windows fonts when using iText?
for the Monotype Imaging Corporation https://en.wikipedia.org/wiki/Monotype_Imaging. The Monotype Imaging EULA
-
How to add a table in the top-right corner of the page?
= tableLayoutResult.getOccupiedArea().getBBox().getHeight(); Click How to add a table in the top-right corner of the page? if you want to
-
How to create a TOC when merging documents?
https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/merge/MergeWithToc2.java example. Click Ho
-
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
-
Release iText 7.1.10
https://itextpdf.com/en/products/itext-7/pdfsweep had a bug which would remove /ColorSpace when redaction would partially affect an image
-
How to create and apply redactions?
. If you try to select the original text, you'll notice that is is no longer present. Click How to create and apply redactions
-
Color of a circle annotation
Example written in answer to the question Click How to change the color of a circle annotation? circleannotation <div data-pym
-
Release pdfXFA 2.0.9
Release date: January 14, 2021 Not much has changed in this release, we fixed some bugs and improved the performance for some
-
Release pdfXFA 3.0.0
to you: How to modify XFA documents before flattening
-
Is it possible to attach multiple layout events to a PdfPCell?
How do I separate different cell options in separate events? I'm not sure if it's possible to set multiple events. I would
-
XFA examples
These example were written in answer to questions such as: Click Is it safe to remove XFA? Click How to change the text color
-
How to distribute the radio buttons of a radio field across multiple PdfPCells?
to figure out how to do it with radio buttons / radio groups. Is this possible with iText? Does anyone have an example? Posted
-
How to set the page size to Envelope size with Landscape orientation?
, 0f); I googled but I couldn't find the Envelope size. How do I set the page size as Envelope with Landscape orientation? Posted
-
How to merge forms from different files into one PDF?
https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/acroforms/reporting/FillFlattenMerge2.java
-
How to calculate the height of an element?
. That's a different question, though. Click this link if you want to see how to answer this question in iText 5. faq
-
Why are PDF files different even if the content is the same?
or writer of a PDF content stream may change an arrangement of graphics state operators to any other arrangement that achieves
-
Where is the origin (x,y) of a PDF page?
to change the coordinate system, for instance change the angle between the x and y axis from 90 degrees (the default) to another
-
Installing iText 7 pdfRender for Java developers
How to install pdfRender Java version Thank you for your interest in our renderer of PDFs as images, we hope you will enjoy
-
How to create a PDF with a Cartesian grid?
want to see how to answer this question in iText 5. faq Published by Scroll Versions from this space and version Latest
-
How to add an x-offset to a text pattern with every x-step?
the type of pattern you require. Click How to add an x-offset to a text pattern with every x-step? if you want to see how
-
How to format a String resulting in a two-column display?
: I suppose the spaces in every string name, surname and school are the problem. How can I deal with this? EXPECTED OUTPUT: Name
-
When is the content flushed to a PDF File by iTextSharp?
objects, such as fonts, the cross-reference table, Form XObjects,... are kept into memory, because they can change during
-
Release pdfRender 1.0.0
as images. You can generate images from specific pages (for instance to create cover page thumbnails for books), or multiple pages
-
How to create an uncompressed PDF file?
be compressed. Click this link if you want to see how to answer this question in iText 5. faq Published by Scroll Versions from this spac
-
How to read bookmark titles?
of the outline tree. Click this link if you want to see how to answer this question in iText 5. faq Published by Scroll Versions
-
How to add an onMouseOver javaScript action to a TextField?
How can I add javascripts to iTextsharp created textfields? To add an onMouseOver JavaScript action to a TextField, use
-
How to crop out a part of PDF file?
save and restore the graphics state stack, but that's rather obvious. Click How to crop out a part of PDF file? if you want
-
How to reduce redundant code when adding content at absolute positions?
figure out how to create a separate function to which I can simply pass some parameters, such as string, x_Cord, y_Cord, tilt
-
How to use a text extraction strategy after applying a location extraction strategy?
> This will filter only the text where the PostScript font name ends with Bold or Oblique. This is how you use this filter: <div data
-
Positioning different text snippets on a page
with a different source? Click How to draw a rectangle around multiline text? Click How can I automatically change the font size
-
.How to create a PDF with a Cartesian grid? vLatest
want to see how to answer this question in iText 5. faq
-
Reduce image
reducesize <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
Reusing images
repeatimage <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
How to add a border to a PDF page?
PageBorderEventHandler()); Click this link if you want to see how to answer this question in iText 5. faq Published by Scroll
-
How to get the page width and height of a PDF document?
of your page. Variable page is the integer number of page you are interested in. Click this link if you want to see how to answer
-
How to solve an UnsupportedCharsetException when using itext-asian.jar
). Just use the font file with an encoding that is supported by that font program. Click this link if you want to see how
-
How to solve an UnsupportedCharsetException when using itext-asian.jar?
and require a font pack in Adobe Reader), you should use KozMinPro-Regular (without the otf). Click this link if you want to see how
-
Release pdfOCR 1.0.0
, the newest addition to our iText 7 Suite https://itextpdf.com/en/products/itext-7, which enables you to OCR your images
-
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
-
Installing the iText license key and license key library for Java and .NET
library. Download the license key library: NOTE: For iText versions 5.5.13 and later, we changed to use the same license key
-
How to add inline spacing in a PdfPCell?
will separate the two parts by introducing as much space as possible. Click this link if you want to see how to answer this question
-
How to right-align text in a PdfPCell?
: https://itextpdf.com/sites/default/files/rAi47.png Alignments in Cell Click this link if you want to see how to answer this question in
-
Release pdfRender 1.0.3
supported image format - WebP. This is a modern format employing both lossy and lossless compression, and typically produces
-
How to flatten a XFA PDF Form using pdfXFA
https://stackoverflow.com/users/2413934/chuck You didn't insert a code sample to show how you are currently flattening the XFA form. I
-
.How to add a border to a PDF page? vLatest
PageBorderEventHandler()); Click this link if you want to see how to answer this question in iText 5. faq
-
.How to add a shading pattern to a custom shape? vLatest
() method to set the fill color for the canvas. Click this link if you want to see how to answer this question in iText 5. faq
-
How to add a shading pattern to a custom shape?
() method to set the fill color for the canvas. Click this link if you want to see how to answer this question in iText 5. faq
-
How to invoke a page break for nested tables?
that there are no PdfPTable and PdfPCell classes anymore. We use Table and Cell instead. Click this link if you want to see how to answer
-
How to add a table to the bottom of the last page?
totalHeight = tableLayoutResult.getOccupiedArea().getBBox().getHeight(); Click this link if you want to see how to answer
-
How to get the author of a "free text" annotation?
()); } } pdfDoc.close(); } Click this link if you want to see how to answer this question in iText 5. faq rups Published by Scroll
-
How to flatten a XFA PDF Form using iTextSharp?
https://stackoverflow.com/users/2413934/chuck You didn't insert a code sample to show how you are currently flattening the XFA form. I
-
Advantages of using Blockchain for Signing PDF documents
, or, if some signatures are expired, verify those records that confirm that the integrity of the document is still preserved. How
-
What does "Not LTV-enabled" mean?
use of the DSS information but may consider the addition of DSS a change of the signed document resulting in verification warnings
-
Images and Affine Transformations
addimageaffinetransform <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
Large Image examples
These examples were written in the context of the Help, I only see blank pages in my PDF
-
.Reduce image vLatest
reducesize <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
.Reusing images vLatest
repeatimage <div data-pym-src='https://itext.jdoodle.com/embed/itext'
-
Release iText 7.1.2
to 3.0.2. Some more good news! We're also releasing support for SVG files. SVG is an image format that is based on vectors, which
-
Release pdfHTML 3.0.4
ones in the coming releases. You can refer to the examples section to get insight into how flexbox can be already used for PDF
-
Release pdfOCR 1.0.3
Release date: July 5, 2021 This the first release of the pdfOCR add-on this year. It brings more advanced image type detection
-
pdfHTML: Support for generating cross references for TOC creation with target-counter, target-counters CSS properties
Background: The target-counter and target-counter CSS Level 3 properties retrieve counter values and display information from
-
pdfHTML: Support attr() function for content property
Background: Supporting the attr() CSS function for content property has been a long-requested feature for users of our popular
-
How to fill out a PDF file programmatically? (Dynamic XFA)
() method, the data is sufficient. Click this link if you want to see how to answer this question in iText 5. faq pdfxfa
-
I upgraded to iText 7, how do I use my license?
How to install your new iText license. If you're using iText 7.2 and later, you should have a license key in JSON format
-
How To find internal links in a PDF file?
if you want to see how to answer this question in iText 5. faq Published by Scroll Versions from this space and version Latest
-
How to add "continue on next page" / "continued from next page" to a table?
that the header appears on the first page: table.setSkipFirstHeader(true); Click this link if you want to see how to answer
-
Where can I download the license key library?
How to download the iText 7 or iText 5 license key library manually, or using Maven or NuGet. Important! As of the release
-
Release pdfRender 2.0.1
a number of bug fixes. In particular, Unicode text rendering has been improved in this release, and an issue with inline image
-
iText 7.1 - Migration guide for .NET
will broadly cover the breaks in the API. Please consult the breaking changes on the iText website
-
iText 7.1 - Migration guide for Java
will broadly cover the breaks in the API. Please consult the breaking changes on the iText website
-
.How to add "continue on next page" / "continued from next page" to a table? vLatest
that the header appears on the first page: table.setSkipFirstHeader(true); Click this link if you want to see how to answer
-
How to use a Digital Signing Service (DSS) such as GlobalSign, with iText 7
and provider of Identity Services. In this tutorial we will demonstrate how to use the GlobalSign API and iText 7 Core to sign a PDF
-
pdfHTML: Support for the CSS object-fit Property
and design of image and video objects in PDF's. Often used in company logos as well as articles, the object-fit property
-
Release pdfOCR 1.0.2
it on with: tesseract4OcrEngineProperties.setUseTxtToImproveHocrParsing(true); Possibility for configuration of image preprocessing
-
pdfOffice: Digital Signing
Background With the introduction of the pdfOffice add-on to the iText 7 Suite, we have now extended our capabilities to cover
-
Before we start: Overview of the classes and interfaces
: you can add a Text or an Image element to a Paragraph object, but you can't add any object to a Text or an Image element. Text
-
Chapter 6: Using fonts in pdfHTML
that are supported by default if you don't change the font provider. That's pretty limited, so let's find out how we can add support
-
Installing iText 7 for .NET
How to install iText 7 .NET version Thank you for your interest in our open-source PDF library, iText 7, we hope you
-
How to create a PDF with font information and embed the actual font while merging the files into a single PDF?
this link if you want to see how to answer this question in iText 5. fonts concatenate font_subset merge_documents itext_7
-
Release pdfSweep 2.0.6
: in .NET pdfSweep could cause an exception when dealing with images using an indexed color space, where it would try to fill
-
pdfHTML: Custom ResourceRetriever
{ // The image with name 'imageToReplace.png' will be replaced by the default image. if (url.toString().contains("imageToReplace.png
-
Release pdfRender 1.0.4
to image conversion faster and smoother than ever before. BMP and PNG conversion have been significantly improved
-
Installing iText 7 for Java
How to install iText 7 Java version Thank you for your interest in our open-source PDF library, we hope you will enjoy using
-
Chapter 1: Hello HTML to PDF
will consist of a "Test" header, a "Hello World" paragraph, and an image representing the iText logo. Structure of the examples All
-
Release iText Core 7.1.15
version was updated to 1.68. In addition this release brings many important changes to iText 7. While many of these changes relate
-
Release iText Core 7.1.17
field SVG: missed images in converted PDF Image is cropped when placing visual signature with PdfSignatureAppearance eBooks Best
-
Font examples
How can I use regular and bold in a single String? How can I load a font from /WEB-INF/resources/fonts/foobar.ttf? Why do I
-
Release iText Core 7.1.16
. This can be beneficial for processing complicated SVG images and make code clearer. Another important improvement in this release
-
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
-
.Release pdfHTML 4.0.0 vLatest
Release date: October 25, 2021 The pdfHTML 4.0.0 release doesn't bring as many visible changes compared to the previous major
-
Release pdfHTML 4.0.0
Release date: October 25, 2021 The pdfHTML 4.0.0 release doesn't bring as many visible changes compared to the previous major
-
Are iText 5 and iText 7 backwards compatible?
No. During development iText 7 went through some architectural changes which means some public class or package names have
-
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
-
Migration guide from iText 5 to iText 7
changes Dependency iText5 iText7 logback (Java) N/A 1.1.3 log4net (.NET) N/A 2.0.8 For the full list of dependencies, check out
-
Release pdf2Data 3.0.0
Release date: October 25, 2021 The main changes for pdf2Data 3.0.0 come from the upgrade of iText to 7.2.0, so all
-
Release iText Core 7.2.1
), and Documents (iOS). Please see the release-related examples to get a full insight into these changes, and as usual, pdfHTML also
-
Deploying iText 7 Suite SDK/API on Amazon Web Services
in the correct container image address (e.g. 709825985650.dkr.ecr.us-east-1.amazonaws.com/itext-software/itext7suite:1.0.2
-
Webapp installation guide pdf2Data template editor
account wasn’t sent you would change your account access for less secure apps
-
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
-
Why can't I embed a font due to licensing restrictions?
Arial https://en.wikipedia.org/wiki/Arial was created by the Monotype Imaging Corporation
-
Release iText 7.0.5
https://jira.itextsupport.com/browse/DEVSIX-1447] - Signature image squished when flattening signature field [DEVSIX-1453
-
Page events for headers and footers
Some examples for questions such as: Click How to add text as a header or footer? Click How to add a table as a header? Click