Logo Search packages:      
Sourcecode: calibre version File versions  Download package

def calibre.customize.builtins.PDFMetadataReader.get_metadata (   self,
  stream,
  type 
)
Return metadata for the file represented by stream (a file like object
that supports reading). Raise an exception when there is an error
with the input data.
:param type: The type of file. Guaranteed to be one of the entries
in :attr:`file_types`.
:return: A :class:`calibre.ebooks.metadata.MetaInformation` object

Reimplemented from calibre.customize.MetadataReaderPlugin.

Definition at line 245 of file builtins.py.

References calibre.customize.MetadataReaderPlugin.quick, and calibre.customize.ui.QuickMetadata.quick.

Referenced by calibre.gui2.convert.metadata.MetadataWidget.commit().

00245 
    def get_metadata(self, stream, ftype):
        from calibre.ebooks.metadata.pdf import get_metadata, get_quick_metadata
        if self.quick:
            return get_quick_metadata(stream)
        return get_metadata(stream)

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index