APNG to PDF
Put an APNG’s opening frame on one PDF page for a spec sheet. The PDF is static; later frames and their playback timing are left out.
Format Comparison & Technical Specifications
| Specification | APNG | |
|---|---|---|
| MIME Type | image/apng | application/pdf |
| Type | animated PNG raster image | document container |
| Compression | lossless Deflate with animation chunks | Flate / JPEG / JBIG2 / CCITT |
| Standard Specification | APNG 1.0 Specification / W3C | ISO 32000-2:2020 |
| Magic Bytes Header | 89 50 4E 47 0D 0A 1A 0A (PNG header) + 'acTL' chunk | 25 50 44 46 (%PDF) |
Format Overview & Applications
For a specification sheet, make sure the APNG’s opening frame communicates the intended state; later transitions need a separate animation preview.
Technical Specifications & Codec Breakdown
UPNG decodes the APNG frame list and the PDF path converts only toRGBA8(decoded)[0] into PNG; later frame data is not sent to the PDF.
OS & Browser Compatibility
APNG-aware browsers or graphics tools can show the animated original; the PDF page can be annotated in document software as a still of its opening frame.
Useful info
Inspect frame one before conversion if it is meant to represent the animation; the output does not include subsequent frames or their delays.
Format Comparison & Technical Specifications
A 640×360 APNG opening frame maps to a 4.3×2.4 inch spec-sheet page.
Frequently Asked Questions
Which APNG frame will the document display?
The code selects the first RGBA frame returned by the APNG decoder and embeds that as the only page image.
Will APNG playback controls work in the PDF?
No, playback data is not written; use the APNG original when viewers need to see motion.