Document::OOXML::ContentTypes - Part to content-type mapping for OOXML
version 0.181410
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');
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.
Creates a new Document::OOXML::ContentTypes instance from the contents of the /[Content-Types].xml file from an OOXML file.
/[Content-Types].xml
Returns the content-type of the part with the specified name.
Document::OOXML
Martijn van de Streek <martijn@vandestreek.net>
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.
To install Document::OOXML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Document::OOXML
CPAN shell
perl -MCPAN -e shell install Document::OOXML
For more information on module installation, please visit the detailed CPAN module installation guide.