GXPS.File¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
w/co |
The file file |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GXPS.File(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
GXPS.File
struct contains only private fields and should not be directly accessed.- classmethod new(filename)¶
- Parameters:
- Raises:
- Returns:
- Return type:
- get_core_properties()¶
- Raises:
- Returns:
a new
GXPS.CoreProperties
orNone
. Free the returned object withGObject.Object.unref
().- Return type:
Create a
GXPS.CoreProperties
object containing the metadata of xpsm, orNone
in case of error or if theGXPS.File
doesn’t contain core properties.
- get_document(n_doc)¶
- Parameters:
n_doc (
int
) – the index of the document to get- Raises:
- Returns:
a new
GXPS.Document
orNone
on error. Free the returned object withGObject.Object.unref
().- Return type:
Creates a new
GXPS.Document
representing the document at index n_doc in self file.
- get_document_for_link_target(target)¶
- Parameters:
target (
GXPS.LinkTarget
) – aGXPS.LinkTarget
- Returns:
the index of the document pointed by the given
GXPS.LinkTarget
or -1.- Return type:
Gets the index of the document in self pointed by target. If the
GXPS.LinkTarget
does not reference a document, or referenced document is not found in self file -1 will be returned. In this case you can look for the page pointed by the link target by callingGXPS.Document.get_page_for_anchor
() with the anchor of theGXPS.LinkTarget
for every document in self.
Property Details¶
- GXPS.File.props.file¶
- Name:
file
- Type:
- Default Value:
- Flags:
The file file