TIFF to PDF with Multi-Page Support

Converting from a single or multiple pages TIFF to PDF can be accomplished in a single line of code.

Utilize the PdfGenerator.imageToPdf method to convert a single or multiple pages TIFF to PDF. This method is not limited to TIFF alone; it is also compatible with other image formats such as PNG, JPG, and JPEG.

Additionally, the method accepts an image buffer, which can be useful for receiving images from a network source.