1 47 package com.lowagie.text.pdf; 48 49 public class StampContent extends PdfContentByte { 50 PdfStamperImp.PageStamp ps; 51 PageResources pageResources; 52 53 54 StampContent(PdfStamperImp stamper, PdfStamperImp.PageStamp ps) { 55 super(stamper); 56 this.ps = ps; 57 pageResources = ps.pageResources; 58 } 59 60 public void setAction(PdfAction action, float llx, float lly, float urx, float ury) { 61 ((PdfStamperImp)writer).addAnnotation(new PdfAnnotation(writer, llx, lly, urx, ury, action), ps.pageN); 62 } 63 64 70 public PdfContentByte getDuplicate() { 71 return new StampContent((PdfStamperImp)writer, ps); 72 } 73 74 PageResources getPageResources() { 75 return pageResources; 76 } 77 78 void addAnnotation(PdfAnnotation annot) { 79 ((PdfStamperImp)writer).addAnnotation(annot, ps.pageN); 80 } 81 } | Popular Tags |