How to find fonts and images in a PDF
By Anton Samper · Reviewed
A PDF page’s resources identify fonts, images, and other named objects available to its drawing instructions. Use the resource browser to inspect them, follow their references, and see which pages make them available. Availability alone does not prove that a resource is drawn.
Find the sample’s font and image
Explore Fonts & resourcesDownload sample PDF
- Open the sample and choose Resources in the Explorer.
- Choose Fonts to find the Helvetica font at object 5. Inspect its
/BaseFontand/Subtype. - Choose Images to find object 6: a 1 × 1 image with
/ColorSpace /DeviceRGBand 8 bits per component. - Inspect the page’s parent, object 2, to see the resources inherited by the page.
- Follow the page’s content stream to connect
/F1and/Im1with the instructions using them.
/Resources <<
/Font << /F1 5 0 R >>
/XObject << /Im1 6 0 R >>
>>A font resource may have no embedded file
The sample’s Helvetica dictionary names a font but contains no embedded font file (a font program). In your own PDF, follow the font descriptor, which holds font properties and may link to a font stream. A supported embedded font offers Download font, but it may be a subset containing only characters used by the PDF. Extraction cannot restore the complete original font, and some font programs are not directly installable.
Image dimensions and page appearance differ
The sample’s 1 × 1 image is scaled by the page instructions. Download image exports the image at its stored pixel dimensions. It does not apply the scaling, rotation, or positioning used on the page. Supported RGB or greyscale samples export as PNG; supported standalone JPEG streams can be saved without re-encoding.
PNG export does not support masks or custom colour spaces. JPEG extraction omits page masks and colour adjustments. PNG conversion is limited to 4 megapixels and 4096 pixels per side; image payloads are limited to 32 MiB. An image export is not necessarily an exact reproduction of its appearance on the page.
Attachments are separate resources
The sample also includes notes.txt. Choose Resources → Attachments to find and download it. An empty attachment list is not proof that a partially parsed document contains no attachments.
Example source: original sample generator, resourcesPdf. See supported operations and limits and the workspace guide.