public LinkAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, annotDictionary); this.pdLink = new PDAnnotationLink(annotDictionary); this.pdAnnot = this.pdLink; }
annot = new PDAnnotationLink(annotDic);
public LinkAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, annotDictionary); this.pdLink = new PDAnnotationLink(annotDictionary); this.pdAnnot = this.pdLink; }
public LinkAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, annotDictionary); this.pdLink = new PDAnnotationLink(annotDictionary); this.pdAnnot = this.pdLink; }
PDAnnotationLink link = new PDAnnotationLink(); PDActionNamed action = new PDActionNamed (); action.setN("GoBack"); // this is one of Acrobat's default named action link.setAction(action);
PDAnnotationLink txtLink = new PDAnnotationLink(); txtLink.setBorderStyle(borderULine); PDAnnotationLink pageLink = new PDAnnotationLink(); pageLink.setBorderStyle(borderULine);
annot = new PDAnnotationLink(annotDic); annot = new PDAnnotationLink(annotDic);
annot = new PDAnnotationLink(annotDic);
String key = (String) entry.getKey(); PDAnnotationLink txtLink = new PDAnnotationLink(); PDBorderStyleDictionary borderULine = new PDBorderStyleDictionary(); borderULine.setWidth(0);
PDAnnotationLink annot = new PDAnnotationLink(); annot.setAction(action); if (!placeAnnotation(transform, linkShape, targetArea, annot)) return; PDAnnotationLink annot = new PDAnnotationLink(); annot.setAction(uriAct); if (!placeAnnotation(transform, linkShape, targetArea, annot))
PDAnnotationLink annot = new PDAnnotationLink(); annot.setAction(action); if (!placeAnnotation(transform, linkShape, targetArea, annot)) return; PDAnnotationLink annot = new PDAnnotationLink(); annot.setAction(uriAct); if (!placeAnnotation(transform, linkShape, targetArea, annot))
PDAnnotationLink annot = new PDAnnotationLink(); annot.setAction(action); if (!placeAnnotation(transform, linkShape, targetArea, annot)) return; PDAnnotationLink annot = new PDAnnotationLink(); annot.setAction(uriAct); if (!placeAnnotation(transform, linkShape, targetArea, annot))
private PDRectangle addAnnotationLinkRectangle(final float x, final float y, final float width, final float height, final String linkURL) throws IOException { final float startingY = checkYAndSwitchPage(y, height); final PDAnnotationLink txtLink = new PDAnnotationLink(); final PDRectangle position = new PDRectangle(); position.setLowerLeftX(x); position.setLowerLeftY(startingY); position.setUpperRightX(x + width); position.setUpperRightY(startingY + height); txtLink.setRectangle(position); final PDActionURI action = new PDActionURI(); action.setURI(linkURL); txtLink.setAction(action); currentPage.getAnnotations().add(txtLink); return new PDRectangle(x, startingY, width, height); }
PDBorderStyleDictionary borderULine = new PDBorderStyleDictionary(); borderULine.setStyle(PDBorderStyleDictionary.STYLE_UNDERLINE); borderULine.setWidth(1); PDAnnotationLink txtLink = new PDAnnotationLink(); txtLink.setBorderStyle(borderULine); // Set the rectangle containing the link textWidth = font.getStringWidth("Click here") / 1000 * xscale; position = new PDRectangle(); position.setLowerLeftX(...); position.setLowerLeftY(...); position.setUpperRightX(...); position.setUpperRightY(...); txtLink.setRectangle(position); // add an action PDActionURI action = new PDActionURI(); action.setURI("http://pdfbox.apache.org"); txtLink.setAction(action); annotations.add(txtLink);
action.setDestination(dest); PDAnnotationLink link = new PDAnnotationLink(); link.setAction(action); link.setDestination(dest);
float textWidth = font.getStringWidth(text) / 1000.0 * 12; PDAnnotationLink link = new PDAnnotationLink(); PDGamma colourBlue = new PDGamma(); colourBlue.setB(1);
PDAnnotationLink txtLink = new PDAnnotationLink(); txtLink.setBorderStyle(borderULine); PDAnnotationLink pageLink = new PDAnnotationLink(); pageLink.setBorderStyle(borderULine);