Introduction
PDN is the working file of Paint.NET, the free image editor for Windows. It keeps the picture’s layers with their names, opacity, blend modes and visibility, so the work can be edited again later.
The format is not published. Paint.NET is the only program that reads it fully; plug-ins for some other editors read the layers.
Structure
A PDN file starts with the ASCII signature PDN3, followed by the length
of a short XML header. The header gives the image size and the Paint.NET version and
carries a small thumbnail. The layers follow, stored in a layout tied to Paint.NET’s
own .NET code, with the pixel data compressed.
What is publicly known of the layout is on the file layout reference page.
Not described
Paint.NET’s format is not published. The layout page follows the open-source reader pypdn and Microsoft’s MS-NRBF (the .NET serialisation the file uses).
Known, not yet covered
- Viewer: there is no Paint.NET plugin yet.
Unknown
- Reference: the schema of the XML header, whether pixels are premultiplied, non-bitmap layer types, changes in Paint.NET 5.x, and how 24 bits-per-pixel layers are stored.
- Reference: the exact class-name form of nested blend operations (
PaintDotNet.UserBlendOps+MultiplyBlendOp): it follows .NET convention and was not seen in a file.
Links
Software
- Paint.NET – free image editor whose native format is PDN (Windows)
Developers
- pypdn – library that reads PDN layers and pixels (Python)
Reference
- [MS-NRBF]: .NET Remoting: Binary Format Data Structure – Microsoft’s specification of the serialisation format inside a PDN file