We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert Pdf to html,but why the title is always empty

my code just like:

  pdfDocument.setDisplayDocTitle(true);
  pdfDocument.getInfo().setTitle("i am title");
  pdfDocument.getInfo().setSubject("i am title");

newOptions.PartsEmbeddingMode =
      HtmlSaveOptions.PartsEmbeddingModes.EmbedAllIntoHtml;
 newOptions.LettersPositioningMethod =
      LettersPositioningMethods.UseEmUnitsAndCompensationOfRoundingErrorsInCss;
 newOptions.RasterImagesSavingMode =

HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground;
newOptions.FontSavingMode = HtmlSaveOptions.FontSavingModes.SaveInAllFormats;

the html as follow:
image.png (734 Bytes)

how i can set the title when pdf to html? thanks you for you answer!

@yuweiming314

Thank you for contacting support.

Would you please share the PDF document and generated HTML as a single ZIP file so that we may try to reproduce and investigate it in our environment. Please also share a file as your expected output, for our reference.