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.

Thu Jul 11, 2019 4:00 pm

Hi,

We are using Spire.Office (v2.16.12)
When converting a DOCX to PDF we get very bad result for our image.
I have attatched the C# project, with the example file and result.
Is there anything we can do to improve the image?

Code: Select all
        static void Main(string[] args)
        {
            using (var stream = new FileStream("tmpA69C.tmp.docx", FileMode.Open))
            {
                var pdfFile = new Document();
                pdfFile.LoadFromStream(stream, FileFormat.Docx);
                pdfFile.JPEGQuality = 100;

                pdfFile.SaveToFile("tmpA69C.tmp.pdf", FileFormat.PDF);
            }
        }


Greetings Viktor

viktormorin
 
Posts: 4
Joined: Thu Jul 11, 2019 3:44 pm

Fri Jul 12, 2019 3:00 am

Hello,

Thanks for your inquiry.
I did a test and indeed reproduced your issue. This issue has been posted to our Dev team for further investigating and fixing. If there is any progress, we will let you know. Sorry for the inconvenience caused.

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Tue Jul 23, 2019 6:23 am

Any progress?

viktormorin
 
Posts: 4
Joined: Thu Jul 11, 2019 3:44 pm

Tue Jul 23, 2019 6:49 am

Hello,

Thanks for your inquiry.
Sorry there is no update yet, our Dev team is still investigating your issue. Please spare us more time. I will keep you informed regarding any available update. Thanks for your cooperation.

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Tue Jul 23, 2019 9:14 pm

Issue has been resolved, thanks!

viktormorin
 
Posts: 4
Joined: Thu Jul 11, 2019 3:44 pm

Wed Jul 24, 2019 1:39 am

Hello,

Thanks for your feedback.
Glad to hear that you sovled the issue. If convenient, could you please share your solution with us? And our Dev team is stilling fixing the issue. Once the hotfix is available, we will let you know. Thanks in advance.

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Wed Jul 24, 2019 5:56 am

I modifty the height of the image, apperently was the ratio (hight/width) not correct and the text at the bottom wasn't fully included.
However, it's hard to see that in the docx file.

viktormorin
 
Posts: 4
Joined: Thu Jul 11, 2019 3:44 pm

Wed Jul 24, 2019 11:05 am

Hello,

Thanks for sharing your workaround.

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Return to Spire.PDF