Trevixal API
Preparing search index...
@trevixal/extension-export
PdfJsLike
Interface PdfJsLike
The slice of PDF.js this reader touches.
interface
PdfJsLike
{
GlobalWorkerOptions
?:
{
workerSrc
:
string
}
;
getDocument
(
source
:
{
data
:
Uint8Array
}
,
)
:
{
promise
:
Promise
<
{
numPages
:
number
;
getPage
(
n
:
number
,
)
:
Promise
<
{
getTextContent
()
:
Promise
<
{
items
:
readonly
unknown
[]
}
>
}
>
;
}
,
>
;
}
;
}
Index
Properties
Global
Worker
Options?
Methods
get
Document
Properties
Optional
Readonly
Global
Worker
Options
GlobalWorkerOptions
?:
{
workerSrc
:
string
}
Methods
get
Document
getDocument
(
source
:
{
data
:
Uint8Array
}
,
)
:
{
promise
:
Promise
<
{
numPages
:
number
;
getPage
(
n
:
number
,
)
:
Promise
<
{
getTextContent
()
:
Promise
<
{
items
:
readonly
unknown
[]
}
>
}
>
;
}
,
>
;
}
Parameters
source
:
{
data
:
Uint8Array
}
Returns
{
promise
:
Promise
<
{
numPages
:
number
;
getPage
(
n
:
number
,
)
:
Promise
<
{
getTextContent
()
:
Promise
<
{
items
:
readonly
unknown
[]
}
>
}
>
;
}
,
>
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
Global
Worker
Options
Methods
get
Document
Trevixal API
Loading...
The slice of PDF.js this reader touches.