iText

Creating and adding annotations

These examples were written in the context of questions such as:


addlinkimages

##GITHUB:https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/annotations/AddLinkImages.java##


##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/annotations/AddLinkImages.cs##



addpointerannotation

##GITHUB:https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/annotations/AddPointerAnnotation.java##


##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/annotations/AddPointerAnnotation.cs##



addrotatedannotation

##GITHUB:https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/annotations/AddRotatedAnnotation.java##


##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/annotations/AddRotatedAnnotation.cs##



addstamp

##GITHUB:https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/annotations/AddStamp.java##


##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/annotations/AddStamp.cs##



fileattachmentannot

##GITHUB:https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/annotations/FileAttachmentAnnot.java##


##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/annotations/FileAttachmentAnnot.cs##



imageslinkstable

##GITHUB:https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/annotations/ImagesLinksTable.java##


##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/annotations/ImagesLinksTable.cs##



##GITHUB:https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/annotations/RelativeLink.java##


##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/annotations/RelativeLink.cs##



remotegotopage

##GITHUB:https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/annotations/RemoteGoToPage.java##


##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/annotations/RemoteGoToPage.cs##



remotegoto

##GITHUB:https://github.com/itext/i7js-examples/blob/develop/src/main/java/com/itextpdf/samples/sandbox/annotations/RemoteGoto.java##


##GITHUB:https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/annotations/RemoteGoto.cs##



Resources

https://github.com/itext/i7js-examples/blob/develop/src/main/resources/pdfs/hello.pdf
https://github.com/itext/i7js-examples/blob/develop/src/main/resources/img/butterfly.wmf
https://github.com/itext/i7js-examples/blob/develop/src/main/resources/img/dog.bmp
https://github.com/itext/i7js-examples/blob/develop/src/main/resources/img/fox.bmp
https://github.com/itext/i7js-examples/blob/develop/src/main/resources/img/info.png
https://github.com/itext/i7js-examples/blob/develop/src/main/resources/img/itext.png
https://github.com/itext/i7js-examples/blob/develop/src/main/resources/img/map_cic.png
https://github.com/itext/i7js-examples/blob/develop/src/main/resources/xml/data.xml

Results

https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/annotations/cmp_add_link_annotation.pdf
https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/annotations/cmp_add_pointer_annotation.pdf
https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/annotations/cmp_add_rotated_annotation.pdf
https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/annotations/cmp_file_attachment_annot.pdf
https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/annotations/cmp_images_links_table.pdf
https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/annotations/cmp_relative_link.pdf
https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/annotations/cmp_remote_go_to_page.pdf
https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/annotations/cmp_remote_goto.pdf
https://github.com/itext/i7js-examples/blob/develop/cmpfiles/sandbox/annotations/cmp_xyz_destination.pdf