Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Tue Oct 12, 2021 7:28 am

Hi,
I'm trying to convert a .docx document to .pdf but a shape element gets lost in the process.
I'm using Spire.Doc 9.10.0 with licence, and using this lines of code:

// doc.Content is byte[] and has a shape element
d.LoadFromStream(new MemoryStream(doc.Content), FileFormat.Docx);
using (MemoryStream m = new MemoryStream())
{
d.SaveToStream(m, new ToPdfParameterList { UsePSCoversion = true });
// m doesn't have the shape element
}

The document is attached to this post.

Elia

eliamuntoni
 
Posts: 6
Joined: Tue Feb 16, 2021 9:40 am

Tue Oct 12, 2021 7:59 am

Hello Elia,

Thanks for your feedback.
I have replicated your issue and logged it in our issue tracking system with the ticket SPIREDOC-6794. Sorry for the inconvenience caused.
In addition, you methioned that you have a license, please share your purchased info like email, order NO., so that I boost the priority of the issues you raised.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Tue Oct 12, 2021 3:12 pm

Hi Amy,
I've two licenses loaded:
Order No.8707 per Spire.PDF Pro Edition
Order No.8666 per Spire.Doc Pro Edition

Elia

eliamuntoni
 
Posts: 6
Joined: Tue Feb 16, 2021 9:40 am

Wed Oct 13, 2021 1:23 am

Dear Elia,

Thanks for your reply.
I have increased the priority of SPIREDOC-6794. I will keep you updated on the fixing progress.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Thu Oct 21, 2021 1:26 am

Dear Elia,

I'm glad to inform you that SPIREDOC-6794 has been solved. When new version is released, I will inform you.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Thu Oct 21, 2021 11:43 am

Hello!

I have the same issue. I'm first creating a new word document, editing it, and then saving it as a PDF file. As Elia mentioned, some of the elements gets lost or moves out of context. As I understood, you're going to fix this and come out with a newer version?

/ Elin

elinarctic
 
Posts: 27
Joined: Thu Oct 21, 2021 11:39 am

Fri Oct 22, 2021 1:46 am

Dear Elin,

Thank you for contacting.
Yes, we will release a newer version once the tests of SPIREDOC-6794 pass. To make sure the fixing is available for your issue, you could share us with your saved Word document and converted PDF file to test firstly. You can upload them here or send them to us via email(support@e-iceblue.com), thanks in advance.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Fri Oct 22, 2021 6:17 am

Hello Lisa,

Thank you for your reply. I have now sent an email with a .docx and a .pdf file tothe support email :)

Best regards,

Elin

elinarctic
 
Posts: 27
Joined: Thu Oct 21, 2021 11:39 am

Fri Oct 22, 2021 8:13 am

Hello,

Thank you for sharing your files.
Yes, I did reproduce you issue after converting this word document. Since different document has different structures, I have logged the issue of your file with SPIREDOC-6849 and posted your document to our Dev team and Test team. Once the fixing of SPIREDOC-6794 is available, we will test your issue and then let you know the result. Thanks for your understanding.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Thu Nov 11, 2021 8:42 am

Hello!

Now we have another issue. We tried to save a docx template to pdf (with your pdf save options to see how the quality on some logos would look like when printing). It seems like the quality gets worse when saving a docx file to PDF with the SaveToFile-pdf function. Is there a way to keep the quality of the logos (images)?

We tried to print the docx file and the generated pdf file and the images in the docx file have much better quality.

Best,

Elin

elinarctic
 
Posts: 27
Joined: Thu Oct 21, 2021 11:39 am

Thu Nov 11, 2021 9:26 am

Dear Elin,

Thank you for your feedback.
In order to help us reproduce and investigate the new issue about logo images, could you please share your docx file?
Thank you for your assistance in advance.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Thu Nov 11, 2021 10:14 am

I've sent to files to your support email now. As you can see the images' quality is better in the docx file (especially the one at the bottom).

Best,

Elin

elinarctic
 
Posts: 27
Joined: Thu Oct 21, 2021 11:39 am

Fri Nov 12, 2021 7:10 am

Dear Elin,

Thanks for sharing your files.
I indeed noticed the issue of poor picture quality when convertin your docx file to PDF and logged it in our issue tracking system with the ticket SPIREDOC-6953.
When it is solved, I will inform you. Sorry for the inconvenience caused.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Fri Nov 12, 2021 7:26 am

Great, thank you for the reply :-)


Best,

Elin

elinarctic
 
Posts: 27
Joined: Thu Oct 21, 2021 11:39 am

Fri Nov 12, 2021 7:36 am

You are welcome.
I will keep you informed of its progress.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc