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.

Tue Feb 14, 2017 5:58 am

Hi
I downloaded the Spire.PDF (Free version 3.8.173.5040 ) , Then I create an application( c# ).
The function is convert PDF file to mage file (.jpg).
But I found , If the PDF file contains a high-resolution image, after the conversion, it disappears !
It is a bug ?
How should I fix it ?
............................source code as below:
static void Main(string[] args)
{
var doc = new PdfDocument();
doc.LoadFromFile(@args[0]);

var dx = doc.SaveAsImage(0, 150, 150);
dx.Save(@args[1] + ".jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
}

Johnston
 
Posts: 5
Joined: Fri Feb 10, 2017 8:31 am

Tue Feb 14, 2017 6:03 am

The pdf file about 95MB, So , If you want to test . I can upload to you.

Johnston
 
Posts: 5
Joined: Fri Feb 10, 2017 8:31 am

Tue Feb 14, 2017 6:40 am

Dear Johnston,

Thanks for your inquiry.
We will appreciate it if you could offer us the sample file for further investigation.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Feb 14, 2017 7:09 am

I have uploaded the file. But I don't know where the file is.

Johnston
 
Posts: 5
Joined: Fri Feb 10, 2017 8:31 am

Tue Feb 14, 2017 7:16 am

Dear Johnston,

Thanks for your prompt response.
Sorry that if the file size is larger than 2M, it cannot be uploaded on our forum, you can use OneDrive or other tools to share us a link so that we can download it. Or you can send it to us(Support@e-iceblue.com) via email.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Feb 14, 2017 7:49 am

Hi
I send the url link of OneDrive to Support@e-iceblue.com

Johnston
 
Posts: 5
Joined: Fri Feb 10, 2017 8:31 am

Tue Feb 14, 2017 9:30 am

Dear Johnston,

Many thanks for the file.
I have tested the file with the latest Spire.PDF Pack(Hot Fix) Version:3.8.173, the images in original file are not missing. But I found there are some issues on result, watermark is incorrect… I have posted the issue to our Dev team, Once there is any progress, we will inform you soon. Sorry for inconvenience caused.

Best wishes,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Feb 15, 2017 8:39 am

Dear Johnston,

After investigation, we found the font of the watermark is special, and here is a version can solve the issue. Please download the version from following link.
http://www.e-iceblue.com/downloads/Temp ... .8.131.zip

In addition, you need to put the Spire.FontType.dll in Debug folder and reference the other two dlls into your project, and set the bool documentTextIsAsiaFont as true. Sample code:
Code: Select all
var dx = doc.SaveAsImage(0,150,150,true);

If there is any question, please let me know.

Best wishes,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Feb 16, 2017 10:15 am

Great !

Thank you for your help !

But I don't know whether the official version will have this problem ?

If the official version you have already solved. I will purchase Spire.PDF (not free version) soon

Thanks ! ^ ^

Johnston
 
Posts: 5
Joined: Fri Feb 10, 2017 8:31 am

Fri Feb 17, 2017 6:19 am

Dear Johnston,

Thanks for your feedback.
Our official version mainly targetes at English language, but your issue need the specail Asian font to solve it, and our native language is Chinese :), so we can provide that Spire.PDF Asian version to you for solving that issue.
It has almost same function with official version, and if you have any issue, please feel free to contacnt us. We will investigate it and then update to you. And will provide you a link to download the Spire.PDF Asian version in speciality, not publish it on our website. Please feel free to buy. ^ ^

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDF