Skip to content
Glossary

What is the OPF package document?

Updated:

The OPF (Open Packaging Format) file, or package document, is the XML file that describes an EPUB: its metadata, the manifest of every file and the spine that sets the reading order. Reading apps find it through META-INF/container.xml.

Why it matters when you convert a PDF to EPUB

When a PDF becomes an EPUB, everything the converter recovers ends up declared here: the title and language taken from the PDF, each chapter file in reading order, the images and fonts, the cover and the navigation document. A mistake in the OPF affects the whole book, which is why OPF messages are the largest group in EPUBCheck.

Related terms

EPUBCheck messages about this

  • OPF-003 Item "…" exists in the EPUB, but is not declared in the OPF manifest.
  • OPF-030 The unique-identifier "…" was not found.
  • RSC-002 Required META-INF/container.xml resource could not be found.
  • RSC-003 No rootfile tag with media type "application/oebps-package+xml" was found in the container.
  • RSC-005 Error while parsing file: …
  • OPF-001 There was an error when parsing the EPUB version: ….
  • OPF-002 The OPF file "…" was not found in the EPUB.
  • OPF-004 Invalid prefix declaration: leading or trailing whitespace is not allowed.
  • OPF-004a Invalid prefix declaration: found empty prefix.
  • OPF-004b Invalid prefix "…": must be a valid non-colonized name (aka "NCName").

Convert a PDF to EPUB
Convert up to 5 pages free, no account needed.

FAQ

What is the OPF package document?

The OPF (Open Packaging Format) file, or package document, is the XML file that describes an EPUB: its metadata, the manifest of every file and the spine that sets the reading order. Reading apps find it through META-INF/container.xml.