Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- documentFindDest
- documentGetAttachments
- documentGetAuthor
- documentGetCreationDate
- documentGetCreator
- documentGetFormField
- documentGetId
- documentGetKeywords
- documentGetMetadata
- documentGetModificationDate
- documentGetNAttachments
- documentGetNPages
- documentGetPage
- documentGetPageByLabel
- documentGetPageLayout
- documentGetPageMode
- documentGetPdfVersion
- documentGetPdfVersionString
- documentGetPermissions
- documentGetProducer
- documentGetSubject
- documentGetTitle
- documentHasAttachments
- documentIsLinearized
- documentNewFromData
- documentNewFromFile
- documentNewFromGfile
- documentNewFromStream
- documentSave
- documentSaveACopy
- Properties
- newtype Document = Document (ForeignPtr Document)
- class GObject o => DocumentK o
- toDocument :: DocumentK o => o -> IO Document
- noDocument :: Maybe Document
- documentFindDest :: (MonadIO m, DocumentK a) => a -> Text -> m Dest
- documentGetAttachments :: (MonadIO m, DocumentK a) => a -> m [Attachment]
- documentGetAuthor :: (MonadIO m, DocumentK a) => a -> m Text
- documentGetCreationDate :: (MonadIO m, DocumentK a) => a -> m Int64
- documentGetCreator :: (MonadIO m, DocumentK a) => a -> m Text
- documentGetFormField :: (MonadIO m, DocumentK a) => a -> Int32 -> m FormField
- documentGetId :: (MonadIO m, DocumentK a) => a -> m (Bool, Text, Text)
- documentGetKeywords :: (MonadIO m, DocumentK a) => a -> m Text
- documentGetMetadata :: (MonadIO m, DocumentK a) => a -> m Text
- documentGetModificationDate :: (MonadIO m, DocumentK a) => a -> m Int64
- documentGetNAttachments :: (MonadIO m, DocumentK a) => a -> m Word32
- documentGetNPages :: (MonadIO m, DocumentK a) => a -> m Int32
- documentGetPage :: (MonadIO m, DocumentK a) => a -> Int32 -> m Page
- documentGetPageByLabel :: (MonadIO m, DocumentK a) => a -> Text -> m Page
- documentGetPageLayout :: (MonadIO m, DocumentK a) => a -> m PageLayout
- documentGetPageMode :: (MonadIO m, DocumentK a) => a -> m PageMode
- documentGetPdfVersion :: (MonadIO m, DocumentK a) => a -> m (Word32, Word32)
- documentGetPdfVersionString :: (MonadIO m, DocumentK a) => a -> m Text
- documentGetPermissions :: (MonadIO m, DocumentK a) => a -> m [Permissions]
- documentGetProducer :: (MonadIO m, DocumentK a) => a -> m Text
- documentGetSubject :: (MonadIO m, DocumentK a) => a -> m Text
- documentGetTitle :: (MonadIO m, DocumentK a) => a -> m Text
- documentHasAttachments :: (MonadIO m, DocumentK a) => a -> m Bool
- documentIsLinearized :: (MonadIO m, DocumentK a) => a -> m Bool
- documentNewFromData :: MonadIO m => Text -> Int32 -> Maybe Text -> m Document
- documentNewFromFile :: MonadIO m => Text -> Maybe Text -> m Document
- documentNewFromGfile :: (MonadIO m, FileK a, CancellableK b) => a -> Maybe Text -> Maybe b -> m Document
- documentNewFromStream :: (MonadIO m, InputStreamK a, CancellableK b) => a -> Int64 -> Maybe Text -> Maybe b -> m Document
- documentSave :: (MonadIO m, DocumentK a) => a -> Text -> m ()
- documentSaveACopy :: (MonadIO m, DocumentK a) => a -> Text -> m ()
- data DocumentAuthorPropertyInfo
- getDocumentAuthor :: (MonadIO m, DocumentK o) => o -> m Text
- data DocumentCreationDatePropertyInfo
- getDocumentCreationDate :: (MonadIO m, DocumentK o) => o -> m Int32
- data DocumentCreatorPropertyInfo
- getDocumentCreator :: (MonadIO m, DocumentK o) => o -> m Text
- data DocumentFormatPropertyInfo
- getDocumentFormat :: (MonadIO m, DocumentK o) => o -> m Text
- data DocumentFormatMajorPropertyInfo
- getDocumentFormatMajor :: (MonadIO m, DocumentK o) => o -> m Word32
- data DocumentFormatMinorPropertyInfo
- getDocumentFormatMinor :: (MonadIO m, DocumentK o) => o -> m Word32
- data DocumentKeywordsPropertyInfo
- getDocumentKeywords :: (MonadIO m, DocumentK o) => o -> m Text
- data DocumentLinearizedPropertyInfo
- getDocumentLinearized :: (MonadIO m, DocumentK o) => o -> m Bool
- data DocumentMetadataPropertyInfo
- getDocumentMetadata :: (MonadIO m, DocumentK o) => o -> m Text
- data DocumentModDatePropertyInfo
- getDocumentModDate :: (MonadIO m, DocumentK o) => o -> m Int32
- data DocumentPageLayoutPropertyInfo
- getDocumentPageLayout :: (MonadIO m, DocumentK o) => o -> m PageLayout
- data DocumentPageModePropertyInfo
- getDocumentPageMode :: (MonadIO m, DocumentK o) => o -> m PageMode
- data DocumentPermissionsPropertyInfo
- getDocumentPermissions :: (MonadIO m, DocumentK o) => o -> m [Permissions]
- data DocumentProducerPropertyInfo
- getDocumentProducer :: (MonadIO m, DocumentK o) => o -> m Text
- data DocumentSubjectPropertyInfo
- getDocumentSubject :: (MonadIO m, DocumentK o) => o -> m Text
- data DocumentTitlePropertyInfo
- getDocumentTitle :: (MonadIO m, DocumentK o) => o -> m Text
- data DocumentViewerPreferencesPropertyInfo
- getDocumentViewerPreferences :: (MonadIO m, DocumentK o) => o -> m [ViewerPreferences]
Exported types
GObject Document | |
type ParentTypes Document | |
type AttributeList Document | |
type SignalList Document |
toDocument :: DocumentK o => o -> IO Document Source
Methods
documentFindDest
documentGetAttachments
documentGetAttachments :: (MonadIO m, DocumentK a) => a -> m [Attachment] Source
documentGetAuthor
documentGetAuthor :: (MonadIO m, DocumentK a) => a -> m Text Source
documentGetCreationDate
documentGetCreationDate :: (MonadIO m, DocumentK a) => a -> m Int64 Source
documentGetCreator
documentGetCreator :: (MonadIO m, DocumentK a) => a -> m Text Source
documentGetFormField
documentGetId
documentGetKeywords
documentGetKeywords :: (MonadIO m, DocumentK a) => a -> m Text Source
documentGetMetadata
documentGetMetadata :: (MonadIO m, DocumentK a) => a -> m Text Source
documentGetModificationDate
documentGetModificationDate :: (MonadIO m, DocumentK a) => a -> m Int64 Source
documentGetNAttachments
documentGetNAttachments :: (MonadIO m, DocumentK a) => a -> m Word32 Source
documentGetNPages
documentGetNPages :: (MonadIO m, DocumentK a) => a -> m Int32 Source
documentGetPage
documentGetPageByLabel
documentGetPageLayout
documentGetPageLayout :: (MonadIO m, DocumentK a) => a -> m PageLayout Source
documentGetPageMode
documentGetPageMode :: (MonadIO m, DocumentK a) => a -> m PageMode Source
documentGetPdfVersion
documentGetPdfVersionString
documentGetPdfVersionString :: (MonadIO m, DocumentK a) => a -> m Text Source
documentGetPermissions
documentGetPermissions :: (MonadIO m, DocumentK a) => a -> m [Permissions] Source
documentGetProducer
documentGetProducer :: (MonadIO m, DocumentK a) => a -> m Text Source
documentGetSubject
documentGetSubject :: (MonadIO m, DocumentK a) => a -> m Text Source
documentGetTitle
documentGetTitle :: (MonadIO m, DocumentK a) => a -> m Text Source
documentHasAttachments
documentHasAttachments :: (MonadIO m, DocumentK a) => a -> m Bool Source
documentIsLinearized
documentIsLinearized :: (MonadIO m, DocumentK a) => a -> m Bool Source
documentNewFromData
documentNewFromFile
documentNewFromGfile
documentNewFromGfile :: (MonadIO m, FileK a, CancellableK b) => a -> Maybe Text -> Maybe b -> m Document Source
documentNewFromStream
documentNewFromStream :: (MonadIO m, InputStreamK a, CancellableK b) => a -> Int64 -> Maybe Text -> Maybe b -> m Document Source
documentSave
documentSave :: (MonadIO m, DocumentK a) => a -> Text -> m () Source
documentSaveACopy
documentSaveACopy :: (MonadIO m, DocumentK a) => a -> Text -> m () Source
Properties
Author
data DocumentAuthorPropertyInfo Source
AttrInfo DocumentAuthorPropertyInfo | |
type AttrLabel DocumentAuthorPropertyInfo = "Document::author" | |
type AttrGetType DocumentAuthorPropertyInfo = Text | |
type AttrBaseTypeConstraint DocumentAuthorPropertyInfo = DocumentK | |
type AttrSetTypeConstraint DocumentAuthorPropertyInfo = * ~ () | |
type AttrAllowedOps DocumentAuthorPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getDocumentAuthor :: (MonadIO m, DocumentK o) => o -> m Text Source
CreationDate
data DocumentCreationDatePropertyInfo Source
AttrInfo DocumentCreationDatePropertyInfo | |
type AttrLabel DocumentCreationDatePropertyInfo = "Document::creation-date" | |
type AttrGetType DocumentCreationDatePropertyInfo = Int32 | |
type AttrBaseTypeConstraint DocumentCreationDatePropertyInfo = DocumentK | |
type AttrSetTypeConstraint DocumentCreationDatePropertyInfo = * ~ () | |
type AttrAllowedOps DocumentCreationDatePropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getDocumentCreationDate :: (MonadIO m, DocumentK o) => o -> m Int32 Source
Creator
data DocumentCreatorPropertyInfo Source
AttrInfo DocumentCreatorPropertyInfo | |
type AttrLabel DocumentCreatorPropertyInfo = "Document::creator" | |
type AttrGetType DocumentCreatorPropertyInfo = Text | |
type AttrBaseTypeConstraint DocumentCreatorPropertyInfo = DocumentK | |
type AttrSetTypeConstraint DocumentCreatorPropertyInfo = * ~ () | |
type AttrAllowedOps DocumentCreatorPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getDocumentCreator :: (MonadIO m, DocumentK o) => o -> m Text Source
Format
data DocumentFormatPropertyInfo Source
AttrInfo DocumentFormatPropertyInfo | |
type AttrLabel DocumentFormatPropertyInfo = "Document::format" | |
type AttrGetType DocumentFormatPropertyInfo = Text | |
type AttrBaseTypeConstraint DocumentFormatPropertyInfo = DocumentK | |
type AttrSetTypeConstraint DocumentFormatPropertyInfo = * ~ () | |
type AttrAllowedOps DocumentFormatPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getDocumentFormat :: (MonadIO m, DocumentK o) => o -> m Text Source
FormatMajor
data DocumentFormatMajorPropertyInfo Source
AttrInfo DocumentFormatMajorPropertyInfo | |
type AttrLabel DocumentFormatMajorPropertyInfo = "Document::format-major" | |
type AttrGetType DocumentFormatMajorPropertyInfo = Word32 | |
type AttrBaseTypeConstraint DocumentFormatMajorPropertyInfo = DocumentK | |
type AttrSetTypeConstraint DocumentFormatMajorPropertyInfo = * ~ () | |
type AttrAllowedOps DocumentFormatMajorPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getDocumentFormatMajor :: (MonadIO m, DocumentK o) => o -> m Word32 Source
FormatMinor
data DocumentFormatMinorPropertyInfo Source
AttrInfo DocumentFormatMinorPropertyInfo | |
type AttrLabel DocumentFormatMinorPropertyInfo = "Document::format-minor" | |
type AttrGetType DocumentFormatMinorPropertyInfo = Word32 | |
type AttrBaseTypeConstraint DocumentFormatMinorPropertyInfo = DocumentK | |
type AttrSetTypeConstraint DocumentFormatMinorPropertyInfo = * ~ () | |
type AttrAllowedOps DocumentFormatMinorPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getDocumentFormatMinor :: (MonadIO m, DocumentK o) => o -> m Word32 Source
Keywords
data DocumentKeywordsPropertyInfo Source
AttrInfo DocumentKeywordsPropertyInfo | |
type AttrLabel DocumentKeywordsPropertyInfo = "Document::keywords" | |
type AttrGetType DocumentKeywordsPropertyInfo = Text | |
type AttrBaseTypeConstraint DocumentKeywordsPropertyInfo = DocumentK | |
type AttrSetTypeConstraint DocumentKeywordsPropertyInfo = * ~ () | |
type AttrAllowedOps DocumentKeywordsPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getDocumentKeywords :: (MonadIO m, DocumentK o) => o -> m Text Source
Linearized
data DocumentLinearizedPropertyInfo Source
AttrInfo DocumentLinearizedPropertyInfo | |
type AttrLabel DocumentLinearizedPropertyInfo = "Document::linearized" | |
type AttrGetType DocumentLinearizedPropertyInfo = Bool | |
type AttrBaseTypeConstraint DocumentLinearizedPropertyInfo = DocumentK | |
type AttrSetTypeConstraint DocumentLinearizedPropertyInfo = * ~ () | |
type AttrAllowedOps DocumentLinearizedPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getDocumentLinearized :: (MonadIO m, DocumentK o) => o -> m Bool Source
Metadata
data DocumentMetadataPropertyInfo Source
AttrInfo DocumentMetadataPropertyInfo | |
type AttrLabel DocumentMetadataPropertyInfo = "Document::metadata" | |
type AttrGetType DocumentMetadataPropertyInfo = Text | |
type AttrBaseTypeConstraint DocumentMetadataPropertyInfo = DocumentK | |
type AttrSetTypeConstraint DocumentMetadataPropertyInfo = * ~ () | |
type AttrAllowedOps DocumentMetadataPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getDocumentMetadata :: (MonadIO m, DocumentK o) => o -> m Text Source
ModDate
data DocumentModDatePropertyInfo Source
AttrInfo DocumentModDatePropertyInfo | |
type AttrLabel DocumentModDatePropertyInfo = "Document::mod-date" | |
type AttrGetType DocumentModDatePropertyInfo = Int32 | |
type AttrBaseTypeConstraint DocumentModDatePropertyInfo = DocumentK | |
type AttrSetTypeConstraint DocumentModDatePropertyInfo = * ~ () | |
type AttrAllowedOps DocumentModDatePropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getDocumentModDate :: (MonadIO m, DocumentK o) => o -> m Int32 Source
PageLayout
data DocumentPageLayoutPropertyInfo Source
AttrInfo DocumentPageLayoutPropertyInfo | |
type AttrLabel DocumentPageLayoutPropertyInfo = "Document::page-layout" | |
type AttrGetType DocumentPageLayoutPropertyInfo = PageLayout | |
type AttrBaseTypeConstraint DocumentPageLayoutPropertyInfo = DocumentK | |
type AttrSetTypeConstraint DocumentPageLayoutPropertyInfo = * ~ () | |
type AttrAllowedOps DocumentPageLayoutPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getDocumentPageLayout :: (MonadIO m, DocumentK o) => o -> m PageLayout Source
PageMode
data DocumentPageModePropertyInfo Source
AttrInfo DocumentPageModePropertyInfo | |
type AttrLabel DocumentPageModePropertyInfo = "Document::page-mode" | |
type AttrGetType DocumentPageModePropertyInfo = PageMode | |
type AttrBaseTypeConstraint DocumentPageModePropertyInfo = DocumentK | |
type AttrSetTypeConstraint DocumentPageModePropertyInfo = * ~ () | |
type AttrAllowedOps DocumentPageModePropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getDocumentPageMode :: (MonadIO m, DocumentK o) => o -> m PageMode Source
Permissions
data DocumentPermissionsPropertyInfo Source
AttrInfo DocumentPermissionsPropertyInfo | |
type AttrLabel DocumentPermissionsPropertyInfo = "Document::permissions" | |
type AttrGetType DocumentPermissionsPropertyInfo = [Permissions] | |
type AttrBaseTypeConstraint DocumentPermissionsPropertyInfo = DocumentK | |
type AttrSetTypeConstraint DocumentPermissionsPropertyInfo = * ~ () | |
type AttrAllowedOps DocumentPermissionsPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getDocumentPermissions :: (MonadIO m, DocumentK o) => o -> m [Permissions] Source
Producer
data DocumentProducerPropertyInfo Source
AttrInfo DocumentProducerPropertyInfo | |
type AttrLabel DocumentProducerPropertyInfo = "Document::producer" | |
type AttrGetType DocumentProducerPropertyInfo = Text | |
type AttrBaseTypeConstraint DocumentProducerPropertyInfo = DocumentK | |
type AttrSetTypeConstraint DocumentProducerPropertyInfo = * ~ () | |
type AttrAllowedOps DocumentProducerPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getDocumentProducer :: (MonadIO m, DocumentK o) => o -> m Text Source
Subject
data DocumentSubjectPropertyInfo Source
AttrInfo DocumentSubjectPropertyInfo | |
type AttrLabel DocumentSubjectPropertyInfo = "Document::subject" | |
type AttrGetType DocumentSubjectPropertyInfo = Text | |
type AttrBaseTypeConstraint DocumentSubjectPropertyInfo = DocumentK | |
type AttrSetTypeConstraint DocumentSubjectPropertyInfo = * ~ () | |
type AttrAllowedOps DocumentSubjectPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getDocumentSubject :: (MonadIO m, DocumentK o) => o -> m Text Source
Title
data DocumentTitlePropertyInfo Source
AttrInfo DocumentTitlePropertyInfo | |
type AttrLabel DocumentTitlePropertyInfo = "Document::title" | |
type AttrGetType DocumentTitlePropertyInfo = Text | |
type AttrBaseTypeConstraint DocumentTitlePropertyInfo = DocumentK | |
type AttrSetTypeConstraint DocumentTitlePropertyInfo = * ~ () | |
type AttrAllowedOps DocumentTitlePropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getDocumentTitle :: (MonadIO m, DocumentK o) => o -> m Text Source
ViewerPreferences
data DocumentViewerPreferencesPropertyInfo Source
AttrInfo DocumentViewerPreferencesPropertyInfo | |
type AttrLabel DocumentViewerPreferencesPropertyInfo = "Document::viewer-preferences" | |
type AttrGetType DocumentViewerPreferencesPropertyInfo = [ViewerPreferences] | |
type AttrBaseTypeConstraint DocumentViewerPreferencesPropertyInfo = DocumentK | |
type AttrSetTypeConstraint DocumentViewerPreferencesPropertyInfo = * ~ () | |
type AttrAllowedOps DocumentViewerPreferencesPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getDocumentViewerPreferences :: (MonadIO m, DocumentK o) => o -> m [ViewerPreferences] Source