Package org.faceless.pdf2
Contains the classes used to create a PDF document
-
Interface Summary Interface Description ArlingtonModelIssue This interface represents an "issue" reported by comparing a PDF against the Arlington Model, a formal description of the PDF file format described at https://github.com/pdf-association/arlington-pdf-model.Cache This interface represents a structure which can be used to store parts of a PDF to disk, a database or some other secondary storage, to reduce the amount of memory required to generate a PDF.Cache.Entry Represents a single entry in the Cache.EGIZSignatureHandler.Factory An implementation of this Factory is required to create and control the EGIZSignatureHandlerLoadState An interface which can be used to query the progress of a load of a page in a Linearized PDF.OpenTypeFont.Palette A Palette defines the color palette used for Color OpenType fonts with the SVG or COLR tables (although only COLR is currently supported).OutputProfiler.ColorAction An action that can beset
on an OutputProfiler to replace Colors.OutputProfiler.FontAction An action that can beset
on an OutputProfiler to replace one font with another in the PDF.OutputProfiler.ImageAction An action that can be used to resample or recompress bitmap images.PDFDrawable This interface is implemented by PDFPage and PDFDrawable, and covers all of the operations common to both used to place content (graphics, images and text) onto the output.PKCS7SignatureHandler.SigningEngine This interface defines the engine used to actually sign a PDF.PropertyManager This interface defines an object which can be used to set values to be used to control the PDF library - turning on or off debug flags, controlling the location of additional software and so on.SignatureHandlerFactory This interface defines a factory for creatingSignatureHandler
objects. -
Class Summary Class Description AcrobatSignatureHandlerFactory An implementation ofSignatureHandlerFactory
that returns handlers suitable for signing documents for use with Acrobat 6.0 or later.AnnotationFile A subtype newPDFAnnotation
that allows files to be attached to the PDF.AnnotationLink A subtype newPDFAnnotation
that performs the specified action when clicked.AnnotationMarkup This class represents the type ofPDFAnnotation
created by the "Text Edit" option in Acrobat 6.AnnotationNote This class represents the type ofPDFAnnotation
created by the "Note Tool" in Acrobat.AnnotationRichMedia This class is a type ofPDFAnnotation
that acts as a container for interactive media such as video.AnnotationShape Creates an annotation based on the specifiedShape
.AnnotationSound A subtype ofPDFAnnotation
that allows audio samples to be attached to the PDF.AnnotationStamp A "Rubber-Stamp" annotation, which can also contain a longer message in an associated pop-up window.AnnotationText This class represents the type ofPDFAnnotation
created by the "Text Markup" tool in Acrobat.BarCode This class allows the creation of various bar code symbols.CMYKColorSpace A subclass ofColorSpace
representing the uncalibrated (device-dependent) CMYK color space available in PDF documents.DeviceNColorSpace This class represents a "Device N" ColorSpace, which is a ColorSpace with N individual inks - theSpotColorSpace
class is a special case of this class where there is only one ink.DeviceNColorSpace.Builder The Builder subclass allows the creation of a custom DeviceN ColorSpace, by specifying first the fallback ColorSpace, then the individual inks.DiskCache A general purposeCache
which optionally writes closed streams to files on disk.DocumentPart A DocumentPart represents a contiguous list of pages from a PDF.EGIZSignatureHandler The EGIZSignatureHandlerSignatureHandler
provides the framework for signing documents according to the requirements set by http://www.egiz.gv.at/.EmbeddedFile This class represents a file which may be embedded into a PDF document, either by using theAnnotationFile
class, thegetAssociatedFiles
list onPDFPage
orPDFAnnotation
, by adding to theStructureTree
, or (most typically) through thePDF.getEmbeddedFiles()
map.EncryptionHandler An EncryptionHandler is the abstract superclass of all algorithms that are used to encrypt a PDF document before saving.Event Enumeration class for listing the various types of event that can occur while a PDF document is being loded in Acrobat.FDF A class representing anFDF
object.Form The Form class represents the interactive Form that may be included as part of a PDF document.FormBarCode A type of form element representing a BarCode.FormButton A type ofFormElement
representing a "Push Button", of the kind used to trigger an action like submitting or resetting a form.FormCheckbox A type of form element representing a Check Box, which can be either "checked" or "cleared" (on or off), in the same way as the HTML "checkbox" input type.FormChoice A "ListBox" type of form element, where the user can select an entry off a list of several predefined options.FormElement TheFormElement
class is the baseclass for all elements which may be added to aForm
.FormRadioButton A type of form element representing a Radio Button, which can be either "checked" or "cleared" (on or off), in the same way as the HTML "radiobutton" input type.FormSignature This class represents a public key "Digital Signature" which can be used to sign a PDF document.FormText A type of form element representing a Text Field.GlobalSignDSSManager This class creates aSignatureHandlerFactory
that makes use of GlobalSign's Digital Signing Service to sign documents remotely.HtmlDerivation The HtmlDerivation class can be used to derive an HTML document from PDF.ICCColorSpace A pure Java version ofICC_ColorSpace
andICC_Profile
, this class avoids the many issues with the use of those classes in a multi-threaded environment.LabColorSpace Represents the CIE 1976 (L*, a*, b*) or "CIELAB" device-independent ColorSpace.LayoutBox ALayoutBox
is a box for laying out text, which allows a great deal more control over positioning than the standarddrawText
method.MeshGradient A MeshGradient is a "Coons Patch Array" based shading pattern, which can be used to give photorealistic shading to a fill.MeshGradient.Builder A Builder used for creating aMeshGradient
.OpenTypeFont A subclass ofPDFFont
that represents an OpenType font.OptionalContentDescriptor An OptionalContentDescriptor is either anOptionalContentLayer
or a logical expression containing one or two OptionalContentDescriptors.OptionalContentLayer This class represents an optional content layer in the PDF.OutputIntent The OutputIntent class represents an intended output device for PDF.OutputProfile An OutputProfile defines a variation on the PDF specification which a document must adhere to.OutputProfile.Extension Describes an extension to the PDF specification, as recorded in the "Extensions" item of the PDF catalog.OutputProfile.Feature AnOutputProfile
is made up ofFeatures
, which may be required or denied.OutputProfile.Separation Represents an individual "ink" used in the PDF.OutputProfiler AnOutputProfiler
is used to create anOutputProfile
for a PDF or to attempt to apply a new OutputProfile, modifying the PDF in the process.OutputProfiler.AutoEmbeddingFontAction TheAutoEmbeddingFontAction
class is an implementation ofOutputProfiler.FontAction
that will replace unembedded fonts with embedded ones via a "best fit" algorithm.OutputProfiler.ProcessColorAction TheProcessColorAction
class is an implementation ofOutputProfiler.ColorAction
which will convert any process colors (i.e.OutputProfiler.RasterizingAction An action that will rasterize a page to a bitmap if required.OutputProfiler.SimpleImageAction An implementation ofOutputProfiler.ImageAction
that implements the functionality that was available via theOutputProfiler.setMaxImageDPI(org.faceless.pdf2.OutputProfiler.ImageType, float, float)
method.PageExtractor This class enables the extraction of text and images from aPDFPage
.PagePainter The PagePainter class renders a page of a PDF to aGraphics2D
object - typically to a bitmap image or a printer.PDF APDF
describes a single document in Adobe's Portable Document Format.PDFAction An action tells the PDF viewer how to navigate around the document.PDFAnnotation A PDFAnnotation allows the user to interact with the generated PDF document, by adding / viewing rubber-stamps, popup notes hyperlinks and so on.PDFBookmark This class describes theBookmark
orOutline
part of a PDF document - the "Table of Contents" structure that allows easy navigation through the document.PDFCanvas This class represents a the visible content of a page, annotation or similar.PDFFont The PDFFont is the abstract superclass for all Fonts in a PDF document.PDFGlyphVector A PDFGlyphVector is a sequence of glyphs in a particular font.PDFImage The PDFImage class encapsulates a bitmap image, like a JPEG or PNG file, which can be inserted directly into the PDF document.PDFImageSet ThePDFImageSet
class is a thin wrapper around a multi-page image format (currently only TIFF images).PDFPage Represents a Page in aPDF
document.PDFParser ThePDFParser
class can be used to parse the contents of a PDF document, for example converting it to an Image, writing to TIFF, printing it and so on.PDFPattern Create a new "pattern" fill to paint with.PDFReader ThePDFReader
class adds the ability to load an existing PDF to the library.PDFSound A PDFSound represents an audio sample in a PDF document.PDFStyle A PDFStyle controls the colors, font and many other aspects of the actual display of elements on a PDF page.PKCS7SignatureHandler This class represents the subclass of digital signatures that rely on Public/Private key pairs and that meet the requirements laid down in the document "PDF Public-Key Digital Signature and Encryption Specification", published by Adobe.PKCS7SignatureHandler.OCSPResponse An OCSP response relating to the validity of a digital signature.PKCS7SignatureHandler.OCSPResponse.SingleResponse Represents a SingleResponse item from the OCSP responsePortfolio A "Portfolio PDF" is a PDF that primarily exists as a container for other documents, which are included asEmbeddedFile
objects in thePDF.getEmbeddedFiles()
map.Portfolio.FieldType The FieldType class determines which properties of an EmbeddedFile are presented in the user-interface.PublicKeyEncryptionHandler The PublicKeyEncryptionHandler can be used to encrypt and decrypt documents using public/private key Encryption, so documents can only be opened by someone in posession of the private key.Redactor The Redactor can be used to redact (completely remove) text and images from a PDF.ServletContextPropertyManager Defines aPropertyManager
which checks theServletContext.getInitParameter(java.lang.String)
method for properties.SignatureHandler This class is the baseline handler for all digital signatures - it could theoretically be used for any type of signature, using biometrics, public/private key and so on.SignatureHandler.Placeholder A Placeholder can be used to mark a point in the PDF which needs to be updated after the signature has been appliedSignaturePolicy A SignaturePolicy represents a policy against which digital signatures are verified.SpotColorSpace A type of ColorSpace dealing with Separation ("Spot") Colors.StandardCJKFont A subclass of PDFFont representing the "standard" Chinese, Japanese and Korean fonts which are supplied by default with Acrobat 5.0 or later, or with a supplementary "language pack" for earlier releases.StandardEncryptionHandler Represents the standard Acrobat encryption algorithm, both 40-bit and 128-bit variants.StandardFont A concrete subclass ofPDFFont
representing the standard 14 fonts guaranteed to exist in all PDF readers.TimeStampHandlerFactory An implementation ofSignatureHandlerFactory
that returns aSignatureHandler
suitable for adding a "Document Level Timestamp" to the PDF.Type1Font Create a new PostScript Type 1 font.Type3Font A Type3 font is an artificial font made up of shapes drawn directly to the PDF, rather than stored in a font file embedded in the PDF.WidgetAnnotation TheWidgetAnnotation
class represents the type of annotation used to represent the visual contents of aFormElement
on the page.XMP The XMP class encapsulates the "Extensible Metadata Platform" format metadata which underpins all PDF metadata since PDF 1.4.XMP.Property A Property is a "key" for any values set on the XMP.XMP.Schema A Schema is a collection of properties and types, grouped together under a single XML namespace.XMP.Type A Type determines the underlying Type of a Property.XMP.Value A Value is a typed-value which is stored in the XMP against aXMP.Property
. -
Enum Summary Enum Description OptionalContentLayer.When The "When" enum can be used to set under what conditions a layer is printed/exported.OutputProfiler.ImageType ImageType constants are passed in to thesetMaxImageDPI
methodOutputProfiler.RenderingIntent RenderingIntent constants are passed in to theOutputProfiler.ProcessColorAction.setRenderingIntent(org.faceless.pdf2.OutputProfiler.RenderingIntent)
methodOutputProfiler.Strategy The Strategy enum determines how a PDF is repaired when an OutputProfile is applied to it - for example, are invalid fields in the metadata deleted?PKCS7SignatureHandler.SigningEngine.Type An enum that determine which type of PKCS7 Signature structure will be embedded with a SigningEngine -
Exception Summary Exception Description LinearizedException This exception is thrown when there is a problem completing the load of a Linearized PDF.PasswordException A subclass ofIOException
that's thrown by thePDFReader
class when loading a PDFProfileComplianceException This exception is thrown when an action is not allowed based on the OutputProfile that is applied to the PDF - for example, if the PDF only allows CMYK colors and an attempt is made to add RGB to the page.