When an empty EMF file is converted to PDF, a reoccurring error is outputted.
Code:
Image document = Image.load(inputPath);
PdfOptions options = new PdfOptions();
document.save(outputPath, options);
Errors outputted:
image.png (5.3 KB)
Original “empty” EMF:
sample.zip (118 Bytes)
A “normal/not empty” EMF converts successfully to PDF using the code shown above.