TomRoush / PdfBox-Android

The Apache PdfBox project ported to work on Android
Apache License 2.0
1.02k stars 263 forks source link

Create PDF from a file(Images) doesn't support HEIC, HEIF, AVIF format #564

Open vandanapatel-wk opened 8 months ago

vandanapatel-wk commented 8 months ago

Describe the bug When try to create PDF from multiple images(may have a different image format .jpg, .jpeg, .png, .heic, .heif, .avif) where this format is not supporting .heic, .heif, .avif

PDImageXObject from this class file from library refer this method createFromFileByExtension

To reproduce Upload any images which have .heic, .heif, .avif format and create PDF

PDF example

Expected behavior All image format should have supported

Actual behavior Only this image format are supporting JPG, JPEG, TIF, TIFF, GIF, BMP and PNG

Environment details:

Additional context Sample image for HEIC sample.zip