Class: Poppler::Attachment
- Inherits:
-
Object
- Object
- Poppler::Attachment
- Defined in:
- (unknown)
Overview
The GObject class structure of Poppler::Attachment.
Instance Method Summary collapse
-
#checksum ⇒ GLib::String
The attachment's checksum.
-
#ctime ⇒ GLib::DateTime
as a GDate::Time, or nil if the creation date and time is not available.
-
#description ⇒ String
The attachment's descriptive text.
-
#mtime ⇒ GLib::DateTime
time as a GDate::Time, or nil if the modification date and time is not available.
-
#name ⇒ String
The attachment's name.
-
#save(filename) ⇒ Boolean
Saves attachment to a file indicated by filename.
-
#save_to_callback(save_func, user_data) ⇒ Boolean
Saves attachment by feeding the produced data to save_func.
-
#save_to_fd(fd) ⇒ Boolean
Saves attachment to a file referred to by fd.
-
#size ⇒ Integer
The attachment's size.
Instance Method Details
#checksum ⇒ GLib::String
Returns The attachment's checksum.
#ctime ⇒ GLib::DateTime
as a GDate::Time, or nil if the creation date and time is not available.
#description ⇒ String
Returns The attachment's descriptive text.
#mtime ⇒ GLib::DateTime
time as a GDate::Time, or nil if the modification date and time is not available.
#name ⇒ String
Returns The attachment's name.
#save(filename) ⇒ Boolean
Saves attachment to a file indicated by filename. If error is set, false will be returned. Possible errors include those in the #G_FILE_ERROR domain and whatever the save function generates.
#save_to_callback(save_func, user_data) ⇒ Boolean
Saves attachment by feeding the produced data to save_func. Can be used when you want to store the attachment to something other than a file, such as an in-memory buffer or a socket. If error is set, false will be returned. Possible errors include those in the #G_FILE_ERROR domain and whatever the save function generates.
#save_to_fd(fd) ⇒ Boolean
Saves attachment to a file referred to by fd. If error is set, false will be returned. Possible errors include those in the #G_FILE_ERROR domain and whatever the save function generates. Note that this function takes ownership of fd; you must not operate on it again, nor close it.
#size ⇒ Integer
Returns The attachment's size.