Change Date Format on Converting word to pdf

Hello,

Im currently trying to find out how i can change the format of a Date but i couldn't find anything usefull.

Here is the date how it looks in word:

Here is it how its looks in the pdf:


The reason why i think it looks like this is that this is a content type Datefield property(Quick Parts, metaproperty) from word. And i found out that the date get saved in the document.xml with this format(l. 2366)


Is it maybe possible to use the date format from line 2367?

My Code:  static void Main(string[] args) { FileStream fileStream = new FileStream( - Pastebin.com

Best Regards:


Nils


9 Replies 1 reply marked as answer

SB Suriya Balamurugan Syncfusion Team September 21, 2022 04:18 PM UTC

Hi Nils,

We have reproduced the reported problem with “Date format of meta property value is not preserved properly while converting Word document to PDF” in our end, and we suspect it to be a defect. We will validate this issue and update you with more details on 23rd September 2022.

We have reproduced the reported problem using simple Word document created at our side. Please share us the input Word document which used at you end. So, that we will analysis and consider the scenarios used in your input Word document while fixing the reported problem for appropriate solution.

Note: If you have any confidential data in your Word document, please replace with some dummy data and provide us the same. We just need your document to recreate the problem you face.

Regards,
Suriya Balamurugan.





NS Nils Schucka September 22, 2022 12:46 PM UTC

Hello,


thank you for the fast answer its really nice to know that the support is quick😄👍.

Here are some dummy data attached to this post to test my problem.


Best regards


Nils


Attachment: Test4Mock_dee2859a.zip


AN Anto Nihil Sahaya Raj Syncfusion Team September 23, 2022 05:46 PM UTC

Hi Nils,

We have confirmed that the reported issue Date format of meta property value is not preserved properly while converting DOCX format document to PDF” is a defect and we have logged a defect report. We will include the fix for this defect in our weekly NuGet release which is estimated to be available on 04th October 2022.

The status of this bug can be tracked through the below link:
https://www.syncfusion.com/feedback/37961/date-format-of-meta-property-value-is-not-preserved-properly-while-converting-docx

Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”

Regards,
Anto Nihil S



AA Akash Arul Syncfusion Team October 4, 2022 01:00 PM UTC

Hi Nils,

We have included the fix for the reported issue with Date format of meta property value is not preserved properly while converting DOCX format document to PDF in our upcoming weekly NuGet release which will be expected to be available on tomorrow (5th October 2022).

The status of the issue can be tracked through below feedback link.
https://www.syncfusion.com/feedback/37961/date-format-of-meta-property-value-is-not-preserved-properly-while-converting-docx

Regards,
Akash A.



AA Akash Arul Syncfusion Team October 5, 2022 02:26 PM UTC

Hi Nils,

As promised earlier, we have included the fix for the reported issue with “Date format of meta property value is not preserved properly while converting DOCX format document to PDF” in our latest weekly NuGet release (v20.3.0.48).

Please use the below link to download our latest weekly NuGet:
https://www.nuget.org/packages/Syncfusion.DocToPDFConverter.WinForms/20.3.0.48

The status of this bug task can be tracked through the below link:
https://www.syncfusion.com/feedback/37961/date-format-of-meta-property-value-is-not-preserved-properly-while-converting-docx

Note: We will include this fix in our 2022 Volume 3 service pack release which will be available in mid of November 2022.

Regards,
Akash A.



NS Nils Schucka October 14, 2022 02:12 PM UTC

Hi Akash Arul,

as in my other forum thread already discussed i still have a problem with the formating not showing correctly after converting it to pdf.

Yes in some datefield properties the update worked but now after further testing i found out that there is a dateformat that still doesn't work.

The format from what i can see is the ATOM date format that doesn't work:
2022-10-13T07:00:00+00:00

In the attachment you can find a mock file that should have this problem when converting to pdf.


It would be great if this problem will get fixed.


Best Regards

Nils


Attachment: MockDateTest_5292f60f.zip


SB Suriya Balamurugan Syncfusion Team October 17, 2022 01:03 PM UTC

Hi Nils,

We have reproduced the reported problem with “Date format of meta property value is not preserved properly while converting Word document to PDF” in our end, and we suspect it to be a defect. We will validate this issue and update you with more details on 19th October 2022.

Regards,
Suriya Balamurugan.



AA Akash Arul Syncfusion Team October 19, 2022 10:12 AM UTC

Hi Nils,

We have confirmed that the reported issue Date format of meta property value is not preserved properly while converting a DOCX document to PDF” is a defect and we have logged a defect report. We will include the fix for this defect in our weekly NuGet release which is estimated to be available on 01st November 2022.

The status of this bug can be tracked through the below link:
https://www.syncfusion.com/feedback/38536/date-format-of-meta-property-value-is-not-preserved-properly-while-converting-a

Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”

Regards,
Akash A



SB Suriya Balamurugan Syncfusion Team November 9, 2022 09:32 AM UTC

We have included the reported issue with “Date format of meta property value is not preserved properly while converting a DOCX document to PDF” in our 2022 Volume 3 Service Pack Release. We are glad to announce that our Essential Studio 2022 Volume 3 Service Pack Release V20.3.0.56 is rolled out and is available for download under the following link.

https://www.syncfusion.com/forums/178709/essential-studio-2022-volume-3-service-pack-release-v20-3-0-56-is-available-for-download

The status of the issue can be tracked through below feedback link.
https://www.syncfusion.com/feedback/38536/date-format-of-meta-property-value-is-not-preserved-properly-while-converting-a

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.


Marked as answer
Loader.
Up arrow icon