Search in sources :

Example 1 with PDAnnotationRubberStamp

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);
}
Also used : PDAnnotationRubberStamp(com.tom_roush.pdfbox.pdmodel.interactive.annotation.PDAnnotationRubberStamp) COSDictionary(com.tom_roush.pdfbox.cos.COSDictionary) COSArray(com.tom_roush.pdfbox.cos.COSArray) PDAnnotationLink(com.tom_roush.pdfbox.pdmodel.interactive.annotation.PDAnnotationLink) PDAnnotationSquareCircle(com.tom_roush.pdfbox.pdmodel.interactive.annotation.PDAnnotationSquareCircle) Before(org.junit.Before)

Aggregations

COSArray (com.tom_roush.pdfbox.cos.COSArray)1 COSDictionary (com.tom_roush.pdfbox.cos.COSDictionary)1 PDAnnotationLink (com.tom_roush.pdfbox.pdmodel.interactive.annotation.PDAnnotationLink)1 PDAnnotationRubberStamp (com.tom_roush.pdfbox.pdmodel.interactive.annotation.PDAnnotationRubberStamp)1 PDAnnotationSquareCircle (com.tom_roush.pdfbox.pdmodel.interactive.annotation.PDAnnotationSquareCircle)1 Before (org.junit.Before)1