Hey Aspose Team,
first thank you for your quick and helpful replies.
There are some things and unfortunately problems I'm running into. The code snippet I have looks as follows:
Pdf pdf = new Pdf();
Section section = pdf.getSections().add();
BufferedImage bImage = ImageIO.read(new FileInputStream(source));
Image image = new Image(section);
ImageInfo imageInfo = image.getImageInfo();
section.setIsLandscape(bImage.getWidth() > bImage.getHeight());
Note 1: I can't replace "imageInfo.setFile(source);" with "imageInfo.setSysImageStream(bImage);" because this leads to a null pointer exception:
Note 2: Creating a tif image using paint in Windows (windows 7), can not be opened by Aspose, the file is attached.
java.lang.RuntimeException: Couldn't open image file: \input.tif
Note 3: I have image files that do get converted (at least it looks like it), but when I open the pdf file Adobe Reader shows an error popup with "Insufficient data for an image." The pdf in the background is blank. The file is attached.
Note 4: I'm having a TIF that contains several "images" inside. Is there a way to iterate over them?
Note 5: When running those JAI jar's (clibwrapper_jiio.jar, jai_codec.jar, jai_core.jar, jai_imageio.jar, mlibwrapper_jai.jar) in an application server... those need to be endorsed with vm argument -Djava.endorsed.dirs=/lib/endorsed
Note 5: I want to mention that there are TIF's where the conversion works fine :)
I want to thank you in advance for your help.