Compress images before generating PDF file
The "standard" way to go would probably be to create a "reduced" image style (in admin/config/media/image-styles) and use it for the image field in your "Appointment" content type. Like that, you would let Drupal itself do the compressing of the images.