static float getLineWidth(PDAnnotationWidget widget) { PDBorderStyleDictionary bs = widget.getBorderStyle(); if (bs != null) { return bs.getWidth(); } return 1; }
private int resolveRotation(PDAnnotationWidget widget) { PDAppearanceCharacteristicsDictionary characteristicsDictionary = widget.getAppearanceCharacteristics(); if (characteristicsDictionary != null) { // 0 is the default value if the R key doesn't exist return characteristicsDictionary.getRotation(); } return 0; }
public InkAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, annotDictionary); this.pdUnk = new PDAnnotationUnknown(annotDictionary); this.pdAnnot = this.pdUnk; }
public LinkAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, annotDictionary); this.pdLink = new PDAnnotationLink(annotDictionary); this.pdAnnot = this.pdLink; }
public LineAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, annotDictionary); this.pdLine = new PDAnnotationLine(annotDictionary); this.pdAnnot = this.pdLine; }
/** * Creates a TextMarkup annotation of the specified sub type. * * @param subType the subtype the annotation represents */ protected PDAnnotationTextMarkup(String subType) { setSubtype(subType); // Quad points are required, set an empty array setQuadPoints(new float[0]); }
/** * Create a new appearance stream. * * @param appearance * The appearance stream to add to. * @param outputStream * The appearances output stream to write to. */ public PDAppearanceContentStream(PDAppearanceStream appearance, OutputStream outputStream) { super(null, outputStream, appearance.getResources()); }
public RubberStampAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, annotDictionary); this.pdRStamp = new PDAnnotationRubberStamp(annotDictionary); this.pdAnnot = this.pdRStamp; }
public PopupAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, annotDictionary); this.pdPopup = new PDAnnotationPopup(annotDictionary); this.pdAnnot = this.pdPopup; }
public TextAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, annotDictionary); this.pdText = new PDAnnotationText(annotDictionary); this.pdAnnot = this.pdText; }
public SquareAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, new PDAnnotationSquare(annotDictionary)); } }
/** * This will retrieve the border color. * * @return the border color. */ public PDColor getBorderColour() { return getColor(COSName.BC); }
protected StrikeoutAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, annotDictionary); this.pdMarkup = new PDAnnotationStrikeout(annotDictionary); this.pdAnnot = this.pdMarkup; } }
protected UnderlineAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, annotDictionary); this.pdMarkup = new PDAnnotationUnderline(annotDictionary); this.pdAnnot = this.pdMarkup; } }
/** * Returns the appearance stream to process for the given annotation. May be used to render * a specific appearance such as "hover". * * @param annotation The current annotation. * @return The stream to process. */ public PDAppearanceStream getAppearance(PDAnnotation annotation) { return annotation.getNormalAppearanceStream(); }
protected SquigglyAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, annotDictionary); this.pdMarkup = new PDAnnotationSquiggly(annotDictionary); this.pdAnnot = this.pdMarkup; } }
/** * This will retrieve the interior color. * * @return object representing the color. */ public PDColor getInteriorColor() { return getColor(COSName.IC); }
/** * This will set the difference between the annotations "outer" rectangle defined by * /Rect and the border. * * <p>This will set an equal difference for all sides</p> * * @param difference from the annotations /Rect entry */ public void setRectDifferences(float difference) { setRectDifferences(difference, difference, difference, difference); }
static float getLineWidth(PDAnnotationWidget widget) { PDBorderStyleDictionary bs = widget.getBorderStyle(); if (bs != null) { return bs.getWidth(); } return 1; } }
public TrapNetAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, annotDictionary); this.pdUnk = new PDAnnotationUnknown(annotDictionary); this.pdAnnot = this.pdUnk; } }