a pdf can be opened from a file or from Vec an image can be opened from a file, buffer of pixels (Dynamic Image)