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.Filestruct 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.CorePropertiesorNone. Free the returned object withGObject.Object.unref().- Return type:
Create a
GXPS.CorePropertiesobject containing the metadata of xpsm, orNonein case of error or if theGXPS.Filedoesn’t contain core properties.
- get_document(n_doc)¶
- Parameters:
n_doc (
int) – the index of the document to get- Raises:
- Returns:
a new
GXPS.DocumentorNoneon error. Free the returned object withGObject.Object.unref().- Return type:
Creates a new
GXPS.Documentrepresenting 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.LinkTargetor -1.- Return type:
Gets the index of the document in self pointed by target. If the
GXPS.LinkTargetdoes 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.LinkTargetfor every document in self.
Property Details¶
- GXPS.File.props.file¶
- Name:
file- Type:
- Default Value:
- Flags:
The file file