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.

Sat Aug 26, 2023 7:53 am

I have a code to replace a placeholder in a word and then export the word to PDF. We found that the exported PDF has alignment problems. Please see the image below

IMG_3767.jpeg


IMG_3768.jpeg


and here is my code

if (string.IsNullOrEmpty(propData.Value.Trim()))
document.ReplaceInLine(propInf, string.Empty, false, true);
else
document.ReplaceInLine(propInf, propData.Value.Trim(), false, true);

on the other hand, i simple the process, by open the word and then export. the exported pdf also have the alignment issue. please see the image below

IMG_3770.jpeg


Not sure is there any modification on the word or code to make it look better. Please help.

[email protected]
 
Posts: 6
Joined: Sat Apr 30, 2016 11:57 am

Mon Aug 28, 2023 1:37 am

Hi,

Thanks for your feedback.
May I ask if you are using the latest version of our Spire.Doc? If not, we suggest that you update to the latest version and conduct testing. If the problem persists, to help us investigate your problems and work out a solution for you, please share us with your test documents and full code. You can send them to us via email ([email protected]) or attach them here. Thanks for your assistance.

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Mon Aug 28, 2023 12:21 pm

i just update to the latest version and the exported pdf is more problem. It seems that the "Thai Distribution" paragraph i set on the word is ignored. I upload the word file.

And here is the code i use

using (Spire.Doc.Document document = new Spire.Doc.Document())
{
document.LoadFromFile(System.Web.HttpContext.Current.Request.MapPath(template.FilePath));

var tempDocName = $"{docName}_{entity.Code}_" + Guid.NewGuid().ToString();
var pdfPath = System.Web.HttpContext.Current.Request.MapPath($"~/temp/{tempDocName}.pdf");

document.SaveToFile(pdfPath, Spire.Doc.FileFormat.PDF);

return pdfPath;
}

[email protected]
 
Posts: 6
Joined: Sat Apr 30, 2016 11:57 am

Tue Aug 29, 2023 3:36 am

Hi,

Thanks for your feedback.
After testing, I have reproduced your issue and logged it into our issue tracking system with the ticket number SPIREDOC-9831, our developers will investigate and fix it, sorry for the inconvenience caused, once the issue is fixed, I will inform you asap.

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Wed Aug 30, 2023 3:16 pm

Just can't wait to see.

Is that possible to let's me know how long it would take to fix the issue ?

[email protected]
 
Posts: 6
Joined: Sat Apr 30, 2016 11:57 am

Thu Aug 31, 2023 2:12 am

Hi,

I need to confirm whether you have purchased our product. Based on your email information, I couldn't find any corresponding purchase records. If you have made a purchase, please provide us with the company name or order number associated with the purchase.

If you haven't made a purchase, the priority of this issue will be classified as "C". Additionally, I'd like to inform you that this problem involves multiple aspects, making it difficult to determine the exact timeline for the fix.

If you have any further questions or concerns, please don't hesitate to let us know. We are here to help.

Thank you for your understanding.

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Thu Aug 31, 2023 12:26 pm

Is that possible to send u an email discussing about this ?

[email protected]
 
Posts: 6
Joined: Sat Apr 30, 2016 11:57 am

Fri Sep 01, 2023 1:20 am

Hi,

Thanks for your response.
Of course, you can discuss with us via email ([email protected]). Thanks for your assistance.

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Sun Oct 01, 2023 4:22 pm

Any update on this issue ?

one more thing i forget to lets you know. This issue doesn't appear on our local developing server. The exported PDF (after replace texts) looks good and perfect. We try to do several solutions such as install word, install acrobat, and etc. The customer server still create a "not-good" PDF.

Please update us so when the problem has been fixed. we can make a license purchase.

Thx in advance

[email protected]
 
Posts: 6
Joined: Sat Apr 30, 2016 11:57 am

Mon Oct 02, 2023 5:39 am

Hello,

Thank you for your follow-up.
Regarding the issue SPIREDOC-9831, I have checked our system records and it is currently not completely resolved. Due to our Mid Autumn Festival and National Day holidays from September 29th to October 6th, I will urge the development team to resolve the issue as soon as possible after returning to the office on October 7th. Thank you for your understanding.

Best regards,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Tue Oct 10, 2023 9:32 am

Hi,

Thanks for your inquriy.

We would like to provide you with an update regarding the issue you reported. Our development team has been diligently working on it, and we are pleased to inform you that they have made further adjustments to the code.

We have generated a PDF file reflecting the changes made and shared the document with you via email. Kindly review it and let us know if the current outcome meets your expectations.

Thank you for your continued patience and cooperation throughout this process. Should you have any questions or require any assistance, please do not hesitate to reach out to us.

We look forward to hearing from you soon.

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Return to Spire.Doc