Document
Class
constructor
base_
class
name
get_
backend_
info
get_
info
get_
n_
pages
get_
page
get_
page_
label
get_
page_
size
get_
thumbnail
get_
thumbnail_
surface
load
load_
fd
load_
gfile
load_
stream
render
save
support_
synctex
GJS API Reference
EvinceDocument-3.0
EvinceDocument
DocumentClass
Class DocumentClass
Hierarchy
DocumentClass
Index
Constructors
constructor
Properties
base_
class
name
Methods
get_
backend_
info
get_
info
get_
n_
pages
get_
page
get_
page_
label
get_
page_
size
get_
thumbnail
get_
thumbnail_
surface
load
load_
fd
load_
gfile
load_
stream
render
save
support_
synctex
Constructors
constructor
new
Document
Class
(
)
:
EvinceDocument
.
DocumentClass
Returns
EvinceDocument
.
DocumentClass
Properties
base_
class
base_
class
:
GObject
.
ObjectClass
Static
name
name
:
string
Methods
get_
backend_
info
get_
backend_
info
(
document
:
EvinceDocument
.
Document
, info
:
DocumentBackendInfo
)
:
boolean
Parameters
document:
EvinceDocument
.
Document
info:
DocumentBackendInfo
Returns
boolean
get_
info
get_
info
(
document
:
EvinceDocument
.
Document
)
:
DocumentInfo
Parameters
document:
EvinceDocument
.
Document
Returns
DocumentInfo
get_
n_
pages
get_
n_
pages
(
document
:
EvinceDocument
.
Document
)
:
number
Parameters
document:
EvinceDocument
.
Document
Returns
number
get_
page
get_
page
(
document
:
EvinceDocument
.
Document
, index
:
number
)
:
EvinceDocument
.
Page
Parameters
document:
EvinceDocument
.
Document
index:
number
Returns
EvinceDocument
.
Page
get_
page_
label
get_
page_
label
(
document
:
EvinceDocument
.
Document
, page
:
EvinceDocument
.
Page
)
:
string
Parameters
document:
EvinceDocument
.
Document
page:
EvinceDocument
.
Page
Returns
string
get_
page_
size
get_
page_
size
(
document
:
EvinceDocument
.
Document
, page
:
EvinceDocument
.
Page
)
:
[
number
,
number
]
Parameters
document:
EvinceDocument
.
Document
page:
EvinceDocument
.
Page
Returns
[
number
,
number
]
get_
thumbnail
get_
thumbnail
(
document
:
EvinceDocument
.
Document
, rc
:
RenderContext
)
:
Pixbuf
Parameters
document:
EvinceDocument
.
Document
rc:
RenderContext
Returns
Pixbuf
get_
thumbnail_
surface
get_
thumbnail_
surface
(
document
:
EvinceDocument
.
Document
, rc
:
RenderContext
)
:
cairo
.
Surface
Parameters
document:
EvinceDocument
.
Document
rc:
RenderContext
Returns
cairo
.
Surface
load
load
(
document
:
EvinceDocument
.
Document
, uri
:
string
)
:
boolean
Parameters
document:
EvinceDocument
.
Document
uri:
string
Returns
boolean
load_
fd
load_
fd
(
document
:
EvinceDocument
.
Document
, fd
:
number
, flags
:
DocumentLoadFlags
, cancellable
:
Gio
.
Cancellable
)
:
boolean
Parameters
document:
EvinceDocument
.
Document
fd:
number
flags:
DocumentLoadFlags
cancellable:
Gio
.
Cancellable
Returns
boolean
load_
gfile
load_
gfile
(
document
:
EvinceDocument
.
Document
, file
:
Gio
.
File
, flags
:
DocumentLoadFlags
, cancellable
:
Gio
.
Cancellable
)
:
boolean
Parameters
document:
EvinceDocument
.
Document
file:
Gio
.
File
flags:
DocumentLoadFlags
cancellable:
Gio
.
Cancellable
Returns
boolean
load_
stream
load_
stream
(
document
:
EvinceDocument
.
Document
, stream
:
Gio
.
InputStream
, flags
:
DocumentLoadFlags
, cancellable
:
Gio
.
Cancellable
)
:
boolean
Parameters
document:
EvinceDocument
.
Document
stream:
Gio
.
InputStream
flags:
DocumentLoadFlags
cancellable:
Gio
.
Cancellable
Returns
boolean
render
render
(
document
:
EvinceDocument
.
Document
, rc
:
RenderContext
)
:
cairo
.
Surface
Parameters
document:
EvinceDocument
.
Document
rc:
RenderContext
Returns
cairo
.
Surface
save
save
(
document
:
EvinceDocument
.
Document
, uri
:
string
)
:
boolean
Parameters
document:
EvinceDocument
.
Document
uri:
string
Returns
boolean
support_
synctex
support_
synctex
(
document
:
EvinceDocument
.
Document
)
:
boolean
Parameters
document:
EvinceDocument
.
Document
Returns
boolean
Document
Class
constructor
base_
class
name
get_
backend_
info
get_
info
get_
n_
pages
get_
page
get_
page_
label
get_
page_
size
get_
th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