use of com.tom_roush.pdfbox.pdmodel.interactive.annotation.PDAnnotationRubberStamp in project PdfBox-Android by TomRoush.
the class TestPDPageAnnotationsFiltering method initMock.
@Before
public void initMock() {
COSDictionary mockedPageWithAnnotations = new COSDictionary();
COSArray annotsDictionary = new COSArray();
annotsDictionary.add(new PDAnnotationRubberStamp().getCOSObject());
annotsDictionary.add(new PDAnnotationSquareCircle(PDAnnotationSquareCircle.SUB_TYPE_SQUARE).getCOSObject());
annotsDictionary.add(new PDAnnotationLink().getCOSObject());
mockedPageWithAnnotations.setItem(COSName.ANNOTS, annotsDictionary);
page = new PDPage(mockedPageWithAnnotations);
}
Aggregations