public class PDFResourceHandler extends Object implements ResourceHandler
Modifier and Type | Field and Description |
---|---|
static String |
_df
Detail factor
|
static String |
_pg
Page number
|
static String |
_sc
Scale factor
|
static String |
RESOURCE_TYPE_PDF
Resource of type PDF document.
|
Constructor and Description |
---|
PDFResourceHandler() |
Modifier and Type | Method and Description |
---|---|
PDFPageDescription |
createResourceDescription(double x,
double y,
String id,
int zindex,
Region region,
URL resourceURL,
boolean sensitivity,
Color stroke,
String params)
Create a description of this resource.
|
static Document |
getDocument(URL pdfURL)
Get a PDF Document (IcePDF Document instance) given its URL.
|
static void |
resetCache()
Reset memory cache
|
public static final String RESOURCE_TYPE_PDF
public static final String _pg
public static final String _sc
public static final String _df
public static void resetCache()
public static Document getDocument(URL pdfURL)
public PDFPageDescription createResourceDescription(double x, double y, String id, int zindex, Region region, URL resourceURL, boolean sensitivity, Color stroke, String params)
ResourceHandler
createResourceDescription
in interface ResourceHandler
x
- x-coordinate in sceney
- y-coordinate in sceneid
- ID of object in scenezindex
- z-index (layer). Feed 0 if you don't know.region
- containing regionresourceURL
- path to bitmap resource (any valid absolute URL)sensitivity
- should the glyph representing this resource be made sensitive to cursor events or not.stroke
- border color (null if no border)params
- a string of parameters specific to each resource type (see documentation for each resource type).Copyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2015 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.