Link

Convert WebP to PDF

JDeli is able to convert WEBP to PDF image files.

How to convert WEBP to PDF image file in Java

  1. Read WEBP image into Java
    BufferedImage image = JDeli.read(webpImageFile);  
    
  2. Process image if needed

  3. Write out Java image as PDF
    File pdfImageFile = new File("Image.pdf");
    JDeli.write(image, "pdf", pdfImageFile);
    

JDeli can also do this in ONE step with the convert method. You can also do this by reading a WEBP image and then writing the image as PDF, which is useful if you want to process the image in some way.

Convert any images to PDF from Command Line or another language

java -jar jdeli.jar --convert pdf "inputFileOrDir" "outputDir"

Single step method to convert from WEBP into a PDF image file in Java

JDeli.convert(File inFile, File outFile);

JDeli.convert(InputStream inFile, OutputStream outfile, String format);

byte[] outputData = JDeli.convert(byte[] inputData, String format);

Depending on the image formats being converted (ie different image compression options), JDeli also provides overloaded methods. These can be used to supply conversion options for more control over the conversion process.