Class PDFileAttachmentAppearanceHandler
java.lang.Object
org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAbstractAppearanceHandler
org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDFileAttachmentAppearanceHandler
- All Implemented Interfaces:
PDAppearanceHandler
-
Field Summary
FieldsFields inherited from class org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAbstractAppearanceHandler
ANGLED_STYLES, ARROW_ANGLE, document, INTERIOR_COLOR_STYLES, SHORT_STYLES -
Constructor Summary
ConstructorsConstructorDescriptionPDFileAttachmentAppearanceHandler(PDAnnotation annotation) PDFileAttachmentAppearanceHandler(PDAnnotation annotation, PDDocument document) -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddrawGraph(PDAppearanceContentStream contentStream) private voiddrawPaperclip(PDAppearanceContentStream contentStream) Draw a paperclip.private voiddrawPushPin(PDAppearanceContentStream contentStream) private voiddrawTag(PDAppearanceContentStream contentStream) voidvoidvoidMethods inherited from class org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAbstractAppearanceHandler
addRectDifferences, applyRectDifferences, createCOSStream, drawArrow, drawCircle, drawCircle2, drawDiamond, drawStyle, getAnnotation, getAppearance, getColor, getDefaultFont, getDownAppearance, getNormalAppearanceAsContentStream, getNormalAppearanceAsContentStream, getPaddedRectangle, getRectangle, getRolloverAppearance, handleBorderBox, setOpacityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAppearanceHandler
generateAppearanceStreams
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOG
-
-
Constructor Details
-
PDFileAttachmentAppearanceHandler
-
PDFileAttachmentAppearanceHandler
-
-
Method Details
-
generateNormalAppearance
public void generateNormalAppearance() -
drawPaperclip
Draw a paperclip. Shape is from Iconscout (Apache licensed).- Parameters:
contentStream-- Throws:
IOException
-
drawPushPin
- Throws:
IOException
-
drawGraph
- Throws:
IOException
-
drawTag
- Throws:
IOException
-
generateRolloverAppearance
public void generateRolloverAppearance() -
generateDownAppearance
public void generateDownAppearance()
-