How to add an image to an existing PDF

By using the PDF3D Image Injector utility you can add an image to an existing PDF. This can be done with the PDF3DImageInjector (or PDF3DImageInjector.exe in Windows) command.

Parameters

Usage: PDF3DImageInjector <pdf_filename> <image_name> [caption_text] [page_number] [left_margin] [bottom_margin] [width] [height]

Description of parameters:

If width and height are floating point and less or equal to 1.0, the parameters are interpreted as image corner ratios of existing page size.
If that's the case, then:

Which would change the usage to: PDF3DImageInjector <pdf_filename> <image_name> [caption_text] [page_number] [x0] [x1] [y0] [y1]

Notes

Image aspect ratio may not be preserved unless parameters match image.

You can add images to a PDF that already has some of them. If the injected image and/or caption text are added in the same area of an existing one, it will result in overlapping images and/or caption text.

When using floating point values (x0, x1, y0 and y1):

Examples

Image without caption text on the lower-left corner:

Image without caption text to match the whole page size:
PDF3DImageInjector file.pdf image.jpg "" 1 0 1 0 1

Image with caption text on the lower-right corner:
PDF3DImageInjector file.pdf image.jpg "Caption Text" 1 0.9 1 0 0.05

Image with caption text on the upper-right corner:
PDF3DImageInjector file.pdf image.jpg "Caption Text" 1 0.9 1 0.95 1