Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Mon Dec 01, 2014 11:56 am

Hi there,

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é

altheeagle
 
Posts: 2
Joined: Mon Dec 01, 2014 11:17 am

Tue Dec 02, 2014 2:12 am

Hello,

Thanks for your feedback.
I have noticed the issue you mentioned, which has been transferred to our Dev team, once there are any progress, we will let you know.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Mon Dec 22, 2014 3:11 am

Hello,

The isssue has been resolved, and the newest hotfix (Spire.PDF Pack(Hot Fix)Version:3.2.31) has been released, you could download and try it. The following is the download link.
http://www.e-iceblue.com/Download/downl ... t-now.html
If there are any questions, welcome to get it back to us.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Thu Dec 25, 2014 8:59 pm

Hi there,

I've tried the newest Version of SpirePDF and now I've getting nice, correct Images :)
Thank you verry much and have a nice Christmas.

Greetings from Germany
André

altheeagle
 
Posts: 2
Joined: Mon Dec 01, 2014 11:17 am

Fri Dec 26, 2014 1:23 am

Hello,

Glad to hear that. If there are any questions or needs, please feel free to contact us.

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Wed Feb 04, 2015 10:26 am

Hi I'm experiencing a similar problem with oversized page images

my source pdf here:

https://dl.dropboxusercontent.com/u/354 ... images.pdf

when saving out the image generated from pages 2/3 (over sized pages in landscape) the results are badly blurred
see these images

https://dl.dropboxusercontent.com/u/354 ... .pdf-2.bmp
https://dl.dropboxusercontent.com/u/354 ... .pdf-3.bmp

for the results of pdf.SaveAsImage(2) & pdf.SaveAsImage(3)

I've also tried
var size = page.ActualSize.ToSize();
var bmp = pdf.SaveAsImage(p,size.Width,size.Height) as Bitmap;
which produces the same result

and also
var size = page.ActualSize.ToSize();
var bmp = pdf.SaveAsImage(p,PdfImageType.Bitmap,size.Width,size.Height) as Bitmap;
(setting the PdfImageType throws an Invalid Parameter exception, though I am only interested in getting the original images extracted without alteration)

vurt007
 
Posts: 1
Joined: Wed Jan 28, 2015 5:45 pm

Thu Feb 05, 2015 8:25 am

Hello,

Thanks for your inquiry.
We have reproduced your issue, which has been transferred to our Dev team. Once the issue has been resolved, we will let you know immediately.

Best Regards,
Betsy
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Tue Jun 16, 2015 3:20 am

Hello,

Sorry for long silence. We just published a new hotfix of Spire.PDF:Spire.PDF Pack(hot fix) Version:3.4.27, in which the issue you mentioned has get resolved. Please download it and have a try.

Best Regards,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Wed Jun 17, 2015 9:44 am

Hello,

Have you tried the hot fix ? Has your issue been resolved?

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Return to Spire.PDF