Free Support Forum - aspose.com

Change PDF Title in ASPOSE.HTML

I’m using Aspose.HTML to convert HTML to PDF. Currently when I view the generated PDF in the browser the title of the document on the tab is “Aspose”. How can I change this to a custom value, do I use extra parameters in the .HTMLDocument method? Please see attached screenshot. Thanks

aspose-title.PNG (2.2 KB)

@ROIAdmin

You can change the PDF Title by using Aspose.PDF for .NET with following code snippet:

PdfFileInfo pdfinfo = new PdfFileInfo(inFileName);
pdfinfo.Title = "New Title";
pdfinfo.Save(outFileName);

However, would you please share your complete Aspose.HTML code snippet along with sample HTML (in .zip format). We will log an investigation ticket to analyse the feasibility of your requirements through Aspose.HTML and share the ID with you.