Removing images using the image map configuration file
The image information in the configuration file is used to identify the images in the AFP document and map them to the PDF file during the conversion process. If a matching image entry in the configuration file contains an empty entry, the image is not generated in the PDF output file. Empty entries do not include any image information between the starting <IMAGE> and ending <IMAGE_END> lines. For example:
Empty entries in the image map configuration file
<IMAGE position: (0.863in, 8.483in) size: (2.400in, 0.667in)><!-- IMAGE_END -->
To remove AFP file images, so they are not generated in the output PDF, create empty image entries in the configuration file.
To remove images:
- Define empty image information entries in the image map configuration file for the images you do not want to generate in the PDF file.
- Run afp2pdf on the AFP file (for example,
afp2pdf c:\documents\afpdoc.afp). A PDF file is generated (such as
c:\documents\afpdoc.pdf) that does not contain any images with empty entries in the configuration file.