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

Free Support Forum - aspose.com

Generating Images Not working for some files

I have attached a file. It has fields that the user may fill out. Apparently those fields are affecting the way images are generated

Hi Rick,

Can you please share what type of image (JPG, PNG, or TIFF) are you generating from this file? Are you filling this file with Aspose.Pdf.Kit as well? Also, what particular issue are you having with this file? Please elaborate the issue a little bit, so we could test it with your particular scenario.

We’re sorry for the inconvenience and looking forward to help you out.

Attached is the resulting file using this code to generate image previews from a pdf file.

Dim selectedPage As System.Drawing.Bitmap
Dim selectedPages() As System.Drawing.Bitmap
Dim pdfViewer As PdfViewer = New PdfViewer
pdfViewer.OpenPdfFile(pathDoc & inMessage)
selectedPage = pdfViewer.DecodePage(0)
selectedPage.Save(pathDoc & strFileMessage & ".jpeg", ImageFormat.Jpeg)

pdfViewer = Nothing
Catch ex As Exception

End Try

Hi Rick,

I have tested this file at my end, but I’m having some other exception: Additional non-parsable characters are at the end of the string. In fact, at my end it fails without generating any image output at all.

I’m using Aspose.Pdf.Kit for .NET 4.2.0, can you please share which version are you using at your end? Also, on which OS and .NET Framework version you’re working?

We’re sorry for the inconvenience.