Package com.artifex.solib
Class MuPDFPage
java.lang.Object
com.artifex.solib.ArDkPage
com.artifex.solib.MuPDFPage
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DisplayListprotected MuPDFPagestatic final intstatic final intstatic final intFields inherited from class com.artifex.solib.ArDkPage
SOLayer_All, SOLayer_Background, SOLayer_None, SOSelectMode_Caret, SOSelectMode_DefaultUnit, SOSelectMode_End, SOSelectMode_Start -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHighlightAnnotation(String author) voidaddPageListener(SOPageListener listener) voidaddRedactAnnotation(android.graphics.Rect r, String author) voidaddRedactAnnotation(String author) voidaddSquigglyAnnotation(String author) voidaddStrikeOutAnnotation(String author) voidaddUnderlineAnnotation(String author) voidvoidvoidintintcountAnnotations(int type) voidcreateAttachmentAnnotAt(android.graphics.PointF point, android.content.Context context, android.net.Uri uri, String mimetype) voidcreateAttachmentAnnotAt(android.graphics.PointF point, String filename, String mimetype, InputStream stream) voidcreateCircleAnnotation(android.graphics.RectF rect, float thickness, int color, int fillColor, int opacity) voidcreateFreeTextAt(android.graphics.RectF rect, float thickness, int color, String text, String fontName, Integer fontSize) voidcreateHighlightAnnotation(Quad[] quads, int color) voidcreateInkAnnotation(SOPoint[] points, float width, int color, int alpha) voidcreateLineAnnotation(SOPoint start, SOPoint end, float thickness, int color, int startingLineStyle, int endingLineStyle, int opacity) voidcreateLink(android.graphics.Rect hitRect, LinkDestination dest) voidcreateLink(android.graphics.Rect hitRect, String url) voidcreatePolygonAnnotation(SOPoint[] points, float thickness, int color, int fillColor, int opacity) voidcreatePolyLineAnnotation(SOPoint[] points, float thickness, int color, int opacity) voidcreateSquareAnnotation(android.graphics.RectF rect, float thickness, int color, int fillColor, int opacity) voidcreateSquigglyAnnotation(Quad[] quads, int color) voidcreateStampAt(android.graphics.PointF point, Image image) voidcreateStrikeOutAnnotation(Quad[] quads, int color) voidcreateUnderlineAnnotation(Quad[] quads, int color) voiddeleteAnnotation(MuPDFAnnotation annot) booleandeleteKeywords(String name) voiddeleteWidget(MuPDFWidget widget) voidprotected voidprotected voidfinalize()intfindSelectableAnnotAtPoint(android.graphics.Point p, int type) getAnnotation(int index) android.graphics.RectgetAnnotationRect(int index) String[]getKeywords(String name) Link[]getLinks()getPage()intstatic PDFPagegetPDFPage(Page page) Quad[]android.graphics.Rect[]Quad[]android.graphics.Rectandroid.graphics.Pointandroid.graphics.Pointandroid.graphics.Rect[]voidgetStructuredText(MuPDFPage.StructuredTextResult onStructuredTextResult) static intmakeSOHyperlink(Link link) objectAtPoint(float atX, float atY) static Quad[]rectsToQuads(Rect[] rects) static QuadrectToQuad(Rect r) voidvoidvoidreload()renderLayerAtZoomWithAlpha(int layer, double zoom, double originX, double originY, ArDkBitmap bitmap, ArDkBitmap alpha, SORenderListener listener, boolean uiThread, boolean inverted) intselect(int mode, double atX, double atY) voidselectAnnot(int index) voidvoidvoidsetAnnotationRect(int index, android.graphics.Rect r) booleansetKeywords(String name, String[] words) voidvoidvoidsetSearchIndex(int i) intandroid.graphics.PointsizeAtZoom(double zoom) android.graphics.RectFtoRectF(android.graphics.Rect r) voidupdate()voidvoidvoidupdateSelectedRedaction(android.graphics.Rect r) voidvoidupdateSelectionRects(android.graphics.Point pStart, android.graphics.Point pEnd) voidandroid.graphics.PointFzoomToFitRect(int w, int h) Methods inherited from class com.artifex.solib.ArDkPage
getTopLeftCell, renderAtZoom, setTopLeftCell
-
Field Details
-
mDispList
-
mNextLru
-
PDF_ANNOT_TEXT
public static final int PDF_ANNOT_TEXT- See Also:
-
PDF_ANNOT_HIGHLIGHT
public static final int PDF_ANNOT_HIGHLIGHT- See Also:
-
PDF_ANNOT_REDACT
public static final int PDF_ANNOT_REDACT- See Also:
-
-
Method Details
-
getPageNumber
public int getPageNumber() -
setPage
-
getPage
-
refreshPageElements
public void refreshPageElements() -
setSearchString
-
setSearchIndex
public void setSearchIndex(int i) -
getSearchHighlight
public android.graphics.Rect[] getSearchHighlight() -
getSearchHighlightQuads
-
addPageListener
-
zoomToFitRect
public android.graphics.PointF zoomToFitRect(int w, int h) - Overrides:
zoomToFitRectin classArDkPage
-
sizeAtZoom
public android.graphics.Point sizeAtZoom(double zoom) - Overrides:
sizeAtZoomin classArDkPage
-
reload
public void reload() -
renderLayerAtZoomWithAlpha
public ArDkRender renderLayerAtZoomWithAlpha(int layer, double zoom, double originX, double originY, ArDkBitmap bitmap, ArDkBitmap alpha, SORenderListener listener, boolean uiThread, boolean inverted) - Overrides:
renderLayerAtZoomWithAlphain classArDkPage
-
createFreeTextAt
-
createStampAt
-
createAttachmentAnnotAt
public void createAttachmentAnnotAt(android.graphics.PointF point, String filename, String mimetype, InputStream stream) -
createAttachmentAnnotAt
public void createAttachmentAnnotAt(android.graphics.PointF point, android.content.Context context, android.net.Uri uri, String mimetype) -
createInkAnnotation
-
createLineAnnotation
-
createSquareAnnotation
public void createSquareAnnotation(android.graphics.RectF rect, float thickness, int color, int fillColor, int opacity) -
createCircleAnnotation
public void createCircleAnnotation(android.graphics.RectF rect, float thickness, int color, int fillColor, int opacity) -
createPolygonAnnotation
public void createPolygonAnnotation(SOPoint[] points, float thickness, int color, int fillColor, int opacity) -
setNeedsUpdate
public void setNeedsUpdate() -
createPolyLineAnnotation
-
createHighlightAnnotation
-
createStrikeOutAnnotation
-
createUnderlineAnnotation
-
createSquigglyAnnotation
-
update
-
update
public void update() -
updateWidgets
public void updateWidgets() -
updateAnnotations
public void updateAnnotations() -
getSelectedText
-
findSelectableAnnotAtPoint
public int findSelectableAnnotAtPoint(android.graphics.Point p, int type) -
selectLastAnnot
public void selectLastAnnot() -
selectLastLinkAnnot
public void selectLastLinkAnnot() -
selectAnnot
public void selectAnnot(int index) -
select
public int select(int mode, double atX, double atY) -
toRectF
public android.graphics.RectF toRectF(android.graphics.Rect r) -
selectionLimits
- Overrides:
selectionLimitsin classArDkPage
-
getAnnotation
-
getSelectedAnnotationRect
public android.graphics.Rect getSelectedAnnotationRect() -
deleteAnnotation
-
deleteWidget
-
getSelectionRects
public android.graphics.Rect[] getSelectionRects() -
rectToQuad
-
rectsToQuads
-
addRedactAnnotation
-
addRedactAnnotation
-
applyRedactAnnotation
public void applyRedactAnnotation() -
addHighlightAnnotation
-
addSquigglyAnnotation
-
addStrikeOutAnnotation
-
addUnderlineAnnotation
-
clearSelection
public void clearSelection() -
getTextSelPageNum
public static int getTextSelPageNum() -
clearSelectedText
public void clearSelectedText() -
updateSelectionRects
public void updateSelectionRects(android.graphics.Point pStart, android.graphics.Point pEnd) -
getQuads
-
releasePage
public void releasePage()- Overrides:
releasePagein classArDkPage
-
destroyPage
public void destroyPage()- Overrides:
destroyPagein classArDkPage
-
finalize
-
objectAtPoint
- Overrides:
objectAtPointin classArDkPage
-
makeSOHyperlink
-
getLinks
-
findFormFields
-
evictDisplayList
protected void evictDisplayList() -
getPDFPage
-
countAnnotations
public int countAnnotations() -
countAnnotations
public int countAnnotations(int type) -
getAnnotationRect
public android.graphics.Rect getAnnotationRect(int index) -
setAnnotationRect
public void setAnnotationRect(int index, android.graphics.Rect r) -
getSelectedAnnotStart
public android.graphics.Point getSelectedAnnotStart() -
getSelectedAnnotEnd
public android.graphics.Point getSelectedAnnotEnd() -
updateSelectedRedaction
public void updateSelectedRedaction(android.graphics.Rect r) -
updateSelectedTextMarkup
public void updateSelectedTextMarkup() -
createLink
-
createLink
-
getStructuredText
-
setKeywords
-
getKeywords
-
deleteKeywords
-