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 Jun 04, 2019 1:13 pm

Hi Supportteam,

I face a litle issue when saving pdf to word.
Any image within the pdf gets blury inisde the resulting word document. Find attached the source pdf file and the exported word document.
We're looking forward to your suggestions!

Greetings Christian

Code: Select all
PdfDocument doc = new PdfDocument();
doc.LoadFromFile("image.pdf");
doc.SaveToFile("image.doc", FileFormat.DOC);
System.Diagnostics.Process.Start("image.doc");


word-pdf.png

PrintPro
 
Posts: 55
Joined: Tue Apr 16, 2019 6:17 pm

Wed Jun 05, 2019 7:55 am

Hi,

Thanks for you inquiry.
Please kindly note that our Spire.PDF follows the rules of Adobe. I used Adobe to export your Pdf to Word and found that the quality of the image is roughly the same as the image generated by our Spire.Pdf. Attached the word generated by Adobe for your reference. The image generated by our Spire.Pdf is relatively clear when scaling to 100%. I am afraid there is no good solution to improve the image quality. Hope you can understand. If there is any other question, just feel free to write back.

Sincerely,
Nancy
E-iceblue support team.
User avatar

nancy.yang
 
Posts: 184
Joined: Wed Apr 03, 2019 2:33 am

Wed Jun 05, 2019 3:21 pm

Hi Nancy,

I think this is a missunderstanding. It's not about a PDF to Word conversion!
Just add a Image to a new and empty Spire.PDF and:
-> save the doc as PDF: Perfect
-> save the doc as DOCX Blurry
Find attached a sample image to retrace the issue.
BR Christian
Code: Select all
PdfDocument doc = new PdfDocument();
PdfPageBase page = doc.Pages.Add();

Image image = Image.FromFile("image.png");
PdfImage pdfimage = PdfImage.FromImage(image);

float width = image.Width * 0.75f;
float height = image.Height * 0.75f;

page.Canvas.DrawImage(pdfimage, 100, 5, 5, width, height);

doc.SaveToFile("image.pdf", FileFormat.PDF);
System.Diagnostics.Process.Start("image.pdf");

doc.SaveToFile("image.docx", FileFormat.DOCX);
System.Diagnostics.Process.Start("image.docx");

PrintPro
 
Posts: 55
Joined: Tue Apr 16, 2019 6:17 pm

Thu Jun 06, 2019 8:04 am

Hi,

Thanks for you feedback.
After testing, I found that the image generated by our Spire.Pdf is clear when scaling to 100%. But, compared with the image in Word exported by Adobe, the quality of image (that was generated by our Spire.Doc) is slightly worse. I have submitted the issue to our Dev team, they will investigate if any optimization of the image quality could be made. Once there is any progress, we will inform you. Sorry for the inconvenience caused.

Sincerely,
Nancy
E-iceblue support team
User avatar

nancy.yang
 
Posts: 184
Joined: Wed Apr 03, 2019 2:33 am

Mon Jul 20, 2020 9:30 am

Hi Nancy,

unfortunately, the error is still present at the moment. Is there any progress to be expected?

rg
Christian

PrintPro
 
Posts: 55
Joined: Tue Apr 16, 2019 6:17 pm

Mon Jul 20, 2020 10:52 am

Hi Christian,

Thanks for your post.
Sorry to tell you that there is no significant progress at present due to its complexity. Anyway, once there is any good news, we will inform you ASAP.
Apologize for the delay and inconvenience caused.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Mon Jul 20, 2020 11:26 am

Hi Rachel,

ok, but you know that we waiting already one year for this issue. Is there any chance that you will solve it anyway?

brg
Christian

PrintPro
 
Posts: 55
Joined: Tue Apr 16, 2019 6:17 pm

Tue Jul 21, 2020 9:43 am

Hi Christian,

Sorry for the inconvenience caused.
This issue is more difficult and complicated. Our developers have actually tried many ways to optimize the image quality, but they have not yet found the best solution. Anyway, our Dev team will continue to do more investigation. If there is any progress, we will let you know ASAP.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Thu Jul 21, 2022 9:08 am

Hello,

I have the same problem, I generate a PDF to DOCX document using an intermediate PDF to remove the margins, then I generate a DOCX document whose image quality is greatly reduced.

Do you have a solution?

Regards

odelafosse
 
Posts: 1
Joined: Thu Nov 05, 2015 10:40 am

Fri Jul 22, 2022 5:57 am

Hi,
no, unfortunately the problem still exists, I solved it for myself by increasing the resolution of the original images from 96dpi to over 288dpi, then the problem is not so "noticeable".

Regards Christian

PrintPro
 
Posts: 55
Joined: Tue Apr 16, 2019 6:17 pm

Return to Spire.PDF