iText 7 examples

Tags: iText 7iText 7 examplestables

Questions about PDF in general

Can I change the page count by changing internal metadata? Does a PDF file have styles, headers and footers? How do I rotate a PDF page to an arbitrary angle? How should I interpret the coordinates of a rectangle in PDF? How to allow page extraction when setting password security? How to close a PDF file to recreate it? (File in use problem) How to disable the save button and hide the menu bar in Adobe Reader? How to encrypt PDF using a certificate? How to extract a page number from a PDF file? How to get the page number of an arbitrary PDF object? How to hide the Adobe floating toolbar when showing a PDF in browser? How to protect a PDF with a username and password? How to protect an already existing PDF with a password? What does "Not LTV-enabled" mean? What is the connection between LTV and document timestamps? What is the difference between iText, JasperReports and Adobe LC? What is the size limit of pdf file? Where is the origin (x,y) of a PDF page? Why are PDF files different even if the content is the same? Why do PDFs change when processing them?

Undefined

Getting started

Argument not specified in iTextSharp Does anyone have any idea how TabStop works? How can I generate a PDF/UA compatible PDF with iText? How to add a full line break? How to align a label versus its content? How to align two paragraphs to the left and right on the same line? How to change the line spacing of text? How to create a complex PDF document? How to create a custom dashed line separator? How to create a document with unequal page sizes? How to generate and design PDFs with iText or iTextSharp? How to set the page size to Envelope size with Landscape orientation? How to strike through text using iText? How to underline text with a dotted line? How to use the full size of a page?

Undefined

Font examples

Can I embed a font only partially? Do I need a license for Windows fonts when using iText? How can I load a font from /WEB-INF/resources/fonts/foobar.ttf? How can I use regular and bold in a single String? How to allow a Unicode subscript symbol in a PDF without using setTextRise()? How to apply color to Strings in a Paragraph? How to calculate the height of an element? How to calculate/set font line distance? How to check if a font is bold? How to choose the optimal size for a font? How to create Persian content in PDF? How to create a PDF with font information and embed the actual font while merging the files into a single PDF? How to display indian rupee symbol? How to get a font from an array? How to introduce a custom font weight in iText 7? How to introduce superscript? How to make a single letter bold within a word? How to restrict the number of characters on a single line? How to solve an UnsupportedCharsetException when using itext-asian.jar? How to use Cyrillic characters in a PDF? How to use System Font in iTextSharp with VB.net? How to use the font Verdana in PdfStamper? How to use two different colors in a single String? Why aren't my fonts getting registered? Why can't I set the font of a Phrase? Why do I get a font embedding error when creating PDFA/1a? Why doesn't FontFactory.GetFont() work for all fonts? Why is iText embedding a font even when I specify not to embed? Why is my font not applied when I create a PDF document? Why isn't the Rupee symbol showing?

Undefined

Image examples

How to add JPEG images that are multi-stage filtered (DCTDecode and FlateDecode)? How to add a map with a pointer to a PDF? How to add multiple images into a single PDF? How to add text to an image? How to avoid an exception when importing a TIFF file? How to change a background Image into a watermark by altering the opacity? How to convert colored images to black and white? How to create unique images with Image.getInstance()? How to draw lines on an image? How to generate 2D barcode as vector image? How to get the image DPI in PDF? How to give an image rounded corners? How to make an image a qualified mask candidate in itext? How to preserve high resolution images in PDF? How to prevent images from resizing in a table cell? How to show an image with large dimensions across multiple pages? How to use an image as list symbol? Which image types are supported by iText? Why aren't images added sequentially?

Undefined

Absolute positioning of text

How to adapt the position of the first line in ColumnText? How to add an x-offset to a text pattern with every x-step? How to add text inside a rectangle? How to continue an ordered list on a second page? How to divide a page in N parts so we can fill each with a different source? How to draw a rectangle around multiline text? How to fit a String inside a rectangle? How to reduce redundant code when adding content at absolute positions? How to rotate a paragraph? How to rotate a single line of text? How to truncate text within a bounding box? How to write a Zapfdingbats character at a specific location on a page? What is causing syntax errors in a page created with iText? Why does ColumnText ignore the horizontal alignment? Why does using ColumnText result in "The document has no pages" exception?

Undefined

Absolute positioning of lines and shapes

How do I set parameters back to the default value? How to add a border to a PDF page? How to add a shading pattern to a custom shape? How to add an image to an existing PDF using AffineTransform? How to create a PDF with a Cartesian grid? How to draw a borderless rounded rectangle? How to draw vertical gradient in iTextSharp? How to fill a rectangle with color? How to set the line width of a clipping path? Why does the cell background color affect the color of other lines?

Undefined

Tables

How can I convert a CSV file to a table with a repeating header row? How do I change the border color of a PdfPCell? How does a PdfPCell's height relate to the font size? How to add "continue on next page" / "continued from next page" to a table? How to add a table to the bottom of the last page? How to add an image and text to the same cell? How to add an inner table surrounded by text? How to add inline spacing in a PdfPCell? How to add two images in one cell? How to change width of single column of table? How to create a nested column? How to create a table based on a two-dimensional array? How to create a table in which the cells have different widths? How to create a table with complex borders? How to create a table with only vertical borders? How to define spacing and leading in PdfPCell objects? How to define the width of a cell? How to display barcodes in a matrix-like structure? How to draw a borderless table in iTextSharp? How to get rid of the top padding in a PdfPCell? How to get the rendered dimensions of text? How to introduce a rowspan? How to invoke a page break for nested tables? How to maintain a paragraph's indentation inside a table cell? How to nest tables without extending the inner table? How to prevent splitting a table? How to put text above a bar code instead of under the bars? How to resize a PdfPTable to fit the page? How to resize an Image to fit it into a PdfPCell? How to right-align text in a PdfPCell? How to set up a table display? How to split a row over multiple pages? How to tell iText how to clip text to fit in a cell? How to use multiple fonts in a single cell? How to write a table header if part of a table is forwarded to the next page? Is it possible to set a different alignment for text on the same line in the same cell? What is the PdfPTable.DefaultCell property used for? What's an easy to print "first right, then down"? Why doesn't getDefaultCell().setBorder(PdfPCell.NO_BORDER) have any effect? Why is content missing in my table?

Undefined