I've using Free Spire.PDF for .NET for convert PDF-Files to Images. I've tried to convert the PDF (https://dl.dropboxusercontent.com/u/8936631/899-64165769-0bd1-4900-9e39-07f52465a47f-Mercedes-Benz.pdf) to an jpeg (and png, and bmp), but got only the result in the JPG(https://dl.dropboxusercontent.com/u/8936631/899-64165769-0bd1-4900-9e39-07f52465a47f-Mercedes-Benz.jpg). I've used the following vb.net code:
- Code: Select all
Dim Bild As System.Drawing.Bitmap
Dim strFileSavePath As String
Using pdfDoc As New Spire.Pdf.PdfDocument
pdfDoc.LoadFromFile(strDocPfad, Spire.Pdf.FileFormat.PDF)
' Bild is german and means picture.
Bild = pdfDoc.SaveAsImage(0)
Bild.Save(strFileSavePath, System.Drawing.Imaging.ImageFormat.Jpeg)
End Using
Some other PDFs are converted as expected.
Do I have to alter some Params, or why did I get results like that.
Tanks in Advance
André