Skip to main content
Skip table of contents

Adding images to a table

This example was written to answer questions such as:

addoverlappingimage

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/master/src/main/java/com/itextpdf/samples/sandbox/tables/AddOverlappingImage.java##

##GITHUB:https://github.com/itext/itext-publications-samples-dotnet/blob/master/itext/itext.samples/itext/samples/sandbox/tables/AddOverlappingImage.cs##

icondescriptiontable

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/master/src/main/java/com/itextpdf/samples/sandbox/tables/IconDescriptionTable.java##

##GITHUB:https://github.com/itext/itext-publications-samples-dotnet/blob/master/itext/itext.samples/itext/samples/sandbox/tables/IconDescriptionTable.cs##

imagenexttotext

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/master/src/main/java/com/itextpdf/samples/sandbox/tables/ImageNextToText.java##

##GITHUB:https://github.com/itext/itext-publications-samples-dotnet/blob/master/itext/itext.samples/itext/samples/sandbox/tables/ImageNextToText.cs##

imagesinchunkincell

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/master/src/main/java/com/itextpdf/samples/sandbox/tables/ImagesInChunkInCell.java##

##GITHUB:https://github.com/itext/itext-publications-samples-dotnet/blob/master/itext/itext.samples/itext/samples/sandbox/tables/ImagesInChunkInCell.cs##

imagesnexttoeachother

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/master/src/main/java/com/itextpdf/samples/sandbox/tables/ImagesNextToEachOther.java##

##GITHUB:https://github.com/itext/itext-publications-samples-dotnet/blob/master/itext/itext.samples/itext/samples/sandbox/tables/ImagesNextToEachOther.cs##

multipleimagesincell

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/master/src/main/java/com/itextpdf/samples/sandbox/tables/MultipleImagesInCell.java##

##GITHUB:https://github.com/itext/itext-publications-samples-dotnet/blob/master/itext/itext.samples/itext/samples/sandbox/tables/MultipleImagesInCell.cs##

multipleimagesintable

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/master/src/main/java/com/itextpdf/samples/sandbox/tables/MultipleImagesInTable.java##

##GITHUB:https://github.com/itext/itext-publications-samples-dotnet/blob/master/itext/itext.samples/itext/samples/sandbox/tables/MultipleImagesInTable.cs##

positioncontentincell

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/master/src/main/java/com/itextpdf/samples/sandbox/tables/PositionContentInCell.java##

##GITHUB:https://github.com/itext/itext-publications-samples-dotnet/blob/master/itext/itext.samples/itext/samples/sandbox/tables/PositionContentInCell.cs##

positioncontentincell2

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/master/src/main/java/com/itextpdf/samples/sandbox/tables/PositionContentInCell2.java##

##GITHUB:https://github.com/itext/itext-publications-samples-dotnet/blob/master/itext/itext.samples/itext/samples/sandbox/tables/PositionContentInCell2.cs##

simpletable8

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/master/src/main/java/com/itextpdf/samples/sandbox/tables/SimpleTable8.java##

##GITHUB:https://github.com/itext/itext-publications-samples-dotnet/blob/master/itext/itext.samples/itext/samples/sandbox/tables/SimpleTable8.cs##

Resources

berlin2013.jpg
https://github.com/itext/i7js-examples/blob/develop/src/main/resources/img/berlin2013.jpg

bulb.gif
https://github.com/itext/i7js-examples/blob/develop/src/main/resources/img/bulb.gif

javaone2013.jpg
https://github.com/itext/i7js-examples/blob/develop/src/main/resources/img/javaone2013.jpg

brasil.png
https://github.com/itext/i7js-examples/blob/develop/src/main/resources/img/brasil.png

dog.bmp
https://github.com/itext/i7js-examples/blob/develop/src/main/resources/img/dog.bmp

fox.bmp
https://github.com/itext/i7js-examples/blob/develop/src/main/resources/img/fox.bmp

hero.jpg
https://github.com/itext/i7js-examples/blob/develop/src/main/resources/img/hero.jpg

info.png
https://github.com/itext/i7js-examples/blob/develop/src/main/resources/img/info.png

Results

cmp_add_overlapping_image.pdf
https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/tables/cmp_add_overlapping_image.pdf

cmp_image_next_to_each_other.pdf
https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/tables/cmp_image_next_to_each_other.pdf

cmp_image_next_to_text.pdf
https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/tables/cmp_image_next_to_text.pdf

cmp_position_content_in_cell.pdf
https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/tables/cmp_position_content_in_cell.pdf

cmp_position_content_in_cell2.pdf
https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/tables/cmp_position_content_in_cell2.pdf

cmp_simple_table8.pdf
https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/tables/cmp_simple_table8.pdf

cmp_icon_description_table.pdf
https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/tables/cmp_icon_description_table.pdf

cmp_images_in_chunk_in_cell.pdf
https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/tables/cmp_images_in_chunk_in_cell.pdf

cmp_multiple_images_in_cell.pdf
https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/tables/cmp_multiple_images_in_cell.pdf

cmp_multiple_images_in_table.pdf
https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/tables/cmp_multiple_images_in_table.pdf

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.