Images in PDFKit
- Neither width or height provided - image is rendered at full size
- height provided but not width - image is scaled proportionally to fit in the provided height
- scale factor provided - image is scaled proportionally by the provided scale factor
This example produces the following output:
That is all there is to adding images to your PDF documents with PDFKit. Nowlet's look at adding annotations.