I’m converting pdf to html as follows and in result I have empty html page with broken bmp image.
I’m adding example pdf as attachment. Do you know any workaround?
testImage.tif.pdf (669.5 KB)
Document copyDocument = new Document(in);
document = copyDocument;
File file = tempDirectories.newTempDir();
HtmlSaveOptions saveOptions = new HtmlSaveOptions();
saveOptions.PartsEmbeddingMode = HtmlSaveOptions.PartsEmbeddingModes.NoEmbedding;
saveOptions.RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground;
saveOptions.LettersPositioningMethod = LettersPositioningMethods.UseEmUnitsAndCompensationOfRoundingErrorsInCss;
saveOptions.setUseZOrder(true);
document.optimize();
document.save(file.getAbsolutePath(), saveOptions);