Hello.
I am using Aspose for JAVA version.
I am having the same issue as this post - I want to convert a PDF to HTML with css data embedded in a tag inside the html file and not as a separated file.
but I am using JAVA and I couldn’t find the “PartsEmbeddingModes” property. I get a syntax error that PartsEmbeddingMode and PartsEmbeddingModes cannot be resolved or is not a field.
My code: (The two bolded properties are not recognized)
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(inStream);
HtmlSaveOptions options = new HtmlSaveOptions(SaveFormat.Html);
options.PartsEmbeddingMode = HtmlSaveOptions.PartsEmbeddingModes.EmbedCssOnly;
options.RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground;
pdfDocument.save(mainHtmlFile.getAbsolutePath(), options);
Can you help me please?
Tami