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-003Item "…" exists in the EPUB, but is not declared in the OPF manifest.OPF-030The unique-identifier "…" was not found.RSC-002Required META-INF/container.xml resource could not be found.RSC-003No rootfile tag with media type "application/oebps-package+xml" was found in the container.RSC-005Error while parsing file: …OPF-001There was an error when parsing the EPUB version: ….OPF-002The OPF file "…" was not found in the EPUB.OPF-004Invalid prefix declaration: leading or trailing whitespace is not allowed.OPF-004aInvalid prefix declaration: found empty prefix.OPF-004bInvalid prefix "…": must be a valid non-colonized name (aka "NCName").
Convert a PDF to EPUB
Convert up to 5 pages free, no account needed.