What Is OPF

Q

What is OPF?

✍: FYIcenter.com

A

OPF (Open Packaging Format) is a standard that is a part of the EPUB eBook specification. The OPF files store information for an associated eBook including the title of the eBook, the eBook language, creator, reading order and book ID. The OPF file is included in the EPUB archive to specify the metadata of the associated eBook. The OPF files are saved in XML format.

Here is an example of OPF file used in an EPUB ZIP file:

<?xml version="1.0" encoding="UTF-8"?>
<!-- Hello.opf
  Copyright (c) FYIcenter.com 
-->
<package xmlns="http://www.idpf.org/2007/opf" version="3.0" 
  unique-identifier="id">
  <metadata xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:dcterms="http://purl.org/dc/terms/">
    <dc:title>Hello</dc:title>
    <dc:identifier id="id">fyicenter.com.epub.hello</dc:identifier>
    <dc:language>en-US</dc:language>
    <meta property="dcterms:modified">2018-04-01T00:00:00Z</meta>
  </metadata>
  <manifest>
    <item id="toc" href="/toc.xhtml" media-type="application/xhtml+xml"     
      properties="nav"/>
    <item id="body" href="/body.xhtml" media-type="application/xhtml+xml"/>
  </manifest>
  <spine>
    <itemref idref="toc"/>
    <itemref idref="body"/>
  </spine>
</package>

 

EPUB Sample Files

What Is EPUB File Structure

Introduction to EPUB

⇑⇑ EPUB Tutorials

2022-07-26, 1516🔥, 0💬