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

Free Support Forum - aspose.com

Display pdf files before saving


I am creating a new pdf using images. i wanna preview my pdf file before saving in web browser tool in winforms. Could anyone help me out on this. below is my code snippet.

Page asposePage = doc.Pages.Add();
Aspose.Pdf.Image image = new Aspose.Pdf.Image();
image.File = arg;


Thanks for contacting support.

Please note that Aspose.PDF API provides feature to create new and update existing PDF documents programmatically. It does not support or provide any functionality to view PDF files in any tool or viewer. Furthermore, Aspose.Pdf.Document object retains itself into memory with all of its content and can only be obtained as PDF file once it is saved using Aspose.Pdf.Document.Save() method.

You may consider trying GroupDocs.Viewer for .NET offered by one of our ventures. It supports rendering/viewing of 90+ file formats and in case you have any further inquiry regarding Aspose.PDF, please feel free to let us know.

Thanks :slight_smile: @asad.ali