NAME
Document::OOXML::ContentTypes - Part to content-type mapping for OOXML
VERSION
version 0.181410
SYNOPSIS
my $ct = Document::OOXML::ContentTypes->new_from_xml($xml_data);
say "The content type of /word/document.xml is " . $ct->get_content_type_for_part('/word/document.xml');
DESCRIPTION
OOXML files contain a file named '[Content_Types].xml' that describes the content-types of all the other files in the package.
This class implements a way to look up the content-type for a file name, given the contents of that file.
METHODS
new_from_xml($xml_data)
Creates a new Document::OOXML::ContentTypes instance from the contents of the /[Content-Types].xml
file from an OOXML file.
get_content_type_for_part($part_name)
Returns the content-type of the part with the specified name.
SEE ALSO
AUTHOR
Martijn van de Streek <martijn@vandestreek.net>
COPYRIGHT AND LICENSE
This software is copyright (c) 2018 by Martijn van de Streek.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.