Image and PDF guides

Prepare a PDF from transparent PNG artwork

·

When a logo or diagram already has transparent edges, the output encoding matters. PNG encoding preserves the decoded colors and alpha. JPEG fills the transparent area with the selected background. Both produce one image per PDF page.

PNG to PDF

Size a page to the artwork

Select Fit image and set the margin to zero. An 800 × 400 PNG produces a PDF page measuring 600 × 300 points, or about 8.33 × 4.17 inches. The converter derives this size from the pixel dimensions at 96 pixels per inch.

pdf-lib documentation for embedding images

Fit a wide diagram on paper

For a landscape diagram going on Letter paper, choose landscape orientation and Fit inside. Fit inside preserves all four edges. Fill printable area enlarges the diagram to fill the chosen rectangle and clips any excess. Use the dashed preview boundary to check labels near an edge.

pdf-lib documentation for embedding images

Verify transparency and page order

Put a wide diagram first and a tall diagram second, export the combined document and compare both pages with the queue. Many readers show transparent pixels against white. To check alpha, place the exported page over a colored background in a PDF editor.

pdf-lib documentation for embedding images

Give a screenshot a readable size on paper

A wide software screenshot can fit on a portrait page but its menu text may become too small. Compare an image-sized page with a landscape sheet, keeping the same input and checking the smallest menu label at actual print size.

If the receiving form demands portrait pages, consider splitting the source into logical crops before assembling the PDF. Keep a shared line or heading visible between crops so a reader can follow the sequence.

Common questions

Does this work with animated PNG?

Use a still PNG. For an APNG, export each required frame as a separate PNG and arrange those files in order.

Can I select the labels as text in the PDF?

The labels remain part of the image. Preserve a vector or text original if editable or selectable labels are required.

Sources

Put it into practice.

Related guides