Package org.apache.pdfbox.examples.pdmodel
package org.apache.pdfbox.examples.pdmodel
These examples show how to use the classes in the PDModel package.
-
ClassesClassDescriptionAdd annotations to pages of a PDF document.This is an example that creates a reads a document and adds an image to it..This is an example of how to set some javascript in the document.This is an example of how to add a message to every page in a pdf document.This is an example on how to add metadata to a document.Inspired from PdfBox Example.Create a blank PDF and write the contents to a file.This is an example on how to add bookmarks to a PDF document.This example creates a PDF with type 2 (axial) and type 3 (radial) shadings with a type 2 (exponential) function, and a type 4 (gouraud triangle shading) without function.This is an example of how to create a page with a landscape orientation.Create a 3-page PDF with the page labels "RO III", "RO IV", "1".This is an example of how to create a page that uses patterns to paint areas.Creates a simple PDF/A document.This is an example on how to create a portable collection PDF, as described in the PDF 1.7 specification in chapter 12.3.5.This example shows how to use a separation color / spot color.This is an example that creates a simple document and embeds a file into it..An example of using an embedded TrueType font with Unicode text.Output a text without knowing which font is the right one.This is an example on how to extract all embedded files from a PDF document.This is an example on how to extract metadata from a PDF document.This will extract all true type-fonts of a pdf.This is an example on how to an action to go to the second page when the PDF is opened.Creates a "Hello World" PDF using the built-in Helvetica font.Creates a simple document with a TrueType font.Creates a simple document with a Type 1 font (.pfb).Creates a PDF document from an image.This is an example on how to access the bookmarks that are part of a pdf document.This is an example on how to get a documents metadata information.This is an example of how to access a URL in a PDF document.This is an example on how to remove pages from a PDF document.This is an example of how to replace a URL in a PDF document.This is an example on how to add annotations to pages of a PDF document.This is an example on how to add a rubber stamp annotation with an image to pages of a PDF document.Creates a simple document.This example shows how to justify a string using the showTextWithPositioning method.Example to show superimposing a PDF page onto another PDF.This is an example of how to use a text matrix.