Convert image to pdf of fixed page size

Hello

Say I have an image that is 200x50 in dimensions. I would like to convert it to a pdf that is US Letter size (8.5" x 11"). Is it possible to use aspose.image for java to make a pdf that has my small image at the original 200x50 resolution converted to a full US Letter size pdf where the pdf would have the image centered on it surrounded by white space?

I know it is possible to do this if i use both aspose.imaging and aspose.pdf, but ideally I would like to be able to do the image->pdf conversion using only aspose.imaging and remove my dependency on aspose.pdf

Thanks!

@PeteLee,

Can you please share source file and desired output in form of sample. We investigate this further to help you out.

image.gif.withJavaImageIO.pdf (20.3 KB)
image.gif (12.3 KB)

Something like that is what I am aiming to get

@PeteLee,

Thanks for sharing file with us. I have created an investigation ticket with ID IMAGINJAVA-1469 in our issue tracking system for further investigate the issue. This thread has been associated with this ticket, so that you can be automatically notified as soon as this issue is resolved.