DoctoPdfConverter fails on relatively large doc
Hi, I am trying to convert a 29 page Word document with about 15 pictures in it to pdf using the doctopdfconverter. When I use the code on a small, simplistic doc it works just fine. But with this large one it tries for a several minutes before the app goes into break mode.
To be sure my code isnt missing anything I tried using the word conversion sample provided in essentialstudio but had the same result. If I open the doc in Word and export to pdf from there it has no problems. Word itself exports it to pdf in about 2 seconds, so it appears that docio has some sort of limitation that Word does not have.
This doc is 6,870 kb in size. Does the doctopdfconverter have some sort of file size limitation? I cannot share the pdf with you due to privacy concerns, but any general info you can provide will be greatly appreciated.
Thanks.
SIGN IN To post a reply.
8 Replies
VA
Vijayasurya Anandhan
Syncfusion Team
November 15, 2019 04:17 PM UTC
Hi Travis,
Thank you for contacting Syncfusion support.
We have tried to reproduce the issue in our end, but we can't reproduce the issue in our end. Please find the sample used in our end from the following link.
https://www.syncfusion.com/downloads/support/forum/149111/ze/Sample1247512093.zip
Does the doctopdfconverter have some sort of file size limitation?
No, there is no limitation in our DocIO library for PDF conversion based on the file size.
If you continue to face the issue, we request to use the below property to convert the Word to PDF using fast rendering approach.
Thank you for contacting Syncfusion support.
We have tried to reproduce the issue in our end, but we can't reproduce the issue in our end. Please find the sample used in our end from the following link.
https://www.syncfusion.com/downloads/support/forum/149111/ze/Sample1247512093.zip
Does the doctopdfconverter have some sort of file size limitation?
No, there is no limitation in our DocIO library for PDF conversion based on the file size.
If you continue to face the issue, we request to use the below property to convert the Word to PDF using fast rendering approach.
|
//Creates an instance of the DocToPDFConverter - responsible for Word to PDF conversion DocToPDFConverter converter = new DocToPDFConverter(); //Sets true to enable the fast rendering using direct PDF conversion. converter.Settings.EnableFastRendering = true; |
If there is identical images in the Word document, we request to enable the below property.
|
//Sets true to optimize the memory usage for identical images converter.Settings.OptimizeIdenticalImages = true; |
Thereby we will analyze further and provide you the appropriate solution at the earliest.
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,
Vijayasurya A
TC
Travis Chambers
November 19, 2019 08:30 PM UTC
I have tried the fast rendering and optimiation options but they do not help. I have modified the doc as much as I can in order to share it. Please see attached.
Attachment: Sample_Word_Doc__Cant_convert_52184946.zip
The code I am using is pulled form the essential studio sample:
string doc = "File path";
WordDocument wordDocument = new WordDocument(doc);
//Initializes the ChartToImageConverter for converting charts during Word to pdf conversion
wordDocument.ChartToImageConverter = new ChartToImageConverter();
//Creates an instance of the DocToPDFConverter
DocToPDFConverter converter = new DocToPDFConverter();
converter.Settings.AutoDetectComplexScript = true;
converter.Settings.EnableFastRendering = true;
converter.Settings.OptimizeIdenticalImages = true;
//Converts Word document into PDF document
PdfDocument pdfDocument = converter.ConvertToPDF(wordDocument);
//Saves the PDF file
pdfDocument.Save("New Path");
//Closes the instance of document objects
pdfDocument.Close(true);
wordDocument.Close();
Attachment: Sample_Word_Doc__Cant_convert_52184946.zip
VA
Vijayasurya Anandhan
Syncfusion Team
November 20, 2019 07:30 AM UTC
Hi Travis,
Thank you for sharing the details.
We can reproduce the issue with “Application hangs while convert the Word document to PDF” using the provided input Word document from our side and suspect it to be a defect. We will validate this issue and update you with more details on 22nd November 2019.
Thank you for sharing the details.
We can reproduce the issue with “Application hangs while convert the Word document to PDF” using the provided input Word document from our side and suspect it to be a defect. We will validate this issue and update you with more details on 22nd November 2019.
Please let us know if you have any queries.
Regards,
Vijayasurya A
VA
Vijayasurya Anandhan
Syncfusion Team
November 25, 2019 09:49 AM UTC
Hi Travis,
Thank you for your patience.
We confirmed that the suspected issue with “Application hangs while convert the Word document to PDF” is a defect. We have logged a defect report. The fix for this defect is estimated to be available on 9th December 2019.
Note: We will provide you patch for the reported issue in our latest 2019 Volume 3 SP1 release version "17.3.0.26"
Please let us know if you have any questions.
Regards,
Vijayasurya A
Thank you for your patience.
We confirmed that the suspected issue with “Application hangs while convert the Word document to PDF” is a defect. We have logged a defect report. The fix for this defect is estimated to be available on 9th December 2019.
Note: We will provide you patch for the reported issue in our latest 2019 Volume 3 SP1 release version "17.3.0.26"
Please let us know if you have any questions.
Regards,
Vijayasurya A
LE
Loketha Erusappan
Syncfusion Team
December 9, 2019 06:01 PM UTC
Hi Travis,
We appreciate for your patience.
We have fixed the reported “Application hangs while convert the Word document to PDF” and The patch for this fix can be downloaded from the following location.
Recommended approach - exe will perform automatic configuration
Please find the patch setup from below location:
http://syncfusion.com/Installs/support/patch/17.3.0.26/845185/F149111/SyncfusionPatch_17.3.0.26_845185_12092019083928786_F149111.exe
We appreciate for your patience.
We have fixed the reported “Application hangs while convert the Word document to PDF” and The patch for this fix can be downloaded from the following location.
Recommended approach - exe will perform automatic configuration
Please find the patch setup from below location:
http://syncfusion.com/Installs/support/patch/17.3.0.26/845185/F149111/SyncfusionPatch_17.3.0.26_845185_12092019083928786_F149111.exe
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment
Please find the patch assemblies alone from below location:
http://syncfusion.com/Installs/support/patch/17.3.0.26/845185/F149111/SyncfusionPatch_17.3.0.26_845185_12092019083928786_F149111.zip
Nuget:
Assembly Version: 17.3.0.26
Installation Directions :
This patch should replace the files “Syncfusion.Compression.Base.dll” , “Syncfusion.OfficeChart.Base.dll” , “Syncfusion.DocIO.Base.dll” , “Syncfusion.DocToPDFConverter.Base.dll” “Syncfusion.Pdf.Base.dll” under the following folder.
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\4.0
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\17.3.0.26\precompiledassemblies\17.3.0.26\4.0
To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location or you will have to run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.
Note :
To change how you receive bug fixes, ask your license management portal admin to change your project’s patch delivery mode.
https://www.syncfusion.com/account/license
Disclaimer :
Please note that we have created this patch for version 17.3.0.26 specifically to resolve the issue reported in the Forum 149111.
If you have received other patches for the same version for other products, please apply all patches in the order received.
This fix will include in our 2019 Volume 4 release which will be available in 16th of December 2019 tentatively.
Please let us know if you have any concern.
Regards,
Loketha E
TC
Travis Chambers
January 20, 2020 10:44 PM UTC
Hi,
Thank you for all of the help. However, I am not able to try this patch because it is apparently only for a certain version, which is lower than the version I am currently using (17.4.0.39). Can I get this patch for the newer version?
Thanks!
LE
Loketha Erusappan
Syncfusion Team
January 21, 2020 09:11 AM UTC
Hi Travis,
Thank you for your patience.
As per your requirement, we have generated the patch in “17.4.0.39” version for the reported issue with “Application hangs while convert the Word document to PDF” and the patch for this fix can be downloaded from the following location.
Recommended approach - exe will perform automatic configuration
Please find the patch setup from below location:
http://syncfusion.com/Installs/support/patch/17.4.0.39/845185/F149111/SyncfusionPatch_17.4.0.39_845185_1212020021824986_F149111.exe
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment
Please find the patch assemblies alone from below location:
http://syncfusion.com/Installs/support/patch/17.4.0.39/845185/F149111/SyncfusionPatch_17.4.0.39_845185_1212020021824986_F149111.zip
NuGet :
http://syncfusion.com/Installs/support/patch/17.4.0.39/845185/F149111/SyncfusionNuget_17.4.0.39_845185_1212020021824986_F149111.zip
Assembly Version: 17.4.0.39
Installation Directions :
This patch should replace the files “Syncfusion.Compression.Base.dll” , “Syncfusion.OfficeChart.Base.dll” , “Syncfusion.DocIO.Base.dll” , “Syncfusion.DocToPDFConverter.Base.dll” “Syncfusion.Pdf.Base.dll” under the following folder.
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\4.0
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\17.4.0.39\precompiledassemblies\17.4.0.39\4.0
To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location or you will have to run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.
Note:
To change how you receive bug fixes, ask your license management portal admin to change your project’s patch delivery mode.
https://www.syncfusion.com/account/license
Disclaimer :
Please note that we have created this patch for version 17.4.0.39 specifically to resolve the issue reported in the Forum 149111.
If you have received other patches for the same version for other products, please apply all patches in the order received.
Please let us know if you have any concern.
Regards,
Loketha E
Thank you for your patience.
As per your requirement, we have generated the patch in “17.4.0.39” version for the reported issue with “Application hangs while convert the Word document to PDF” and the patch for this fix can be downloaded from the following location.
Recommended approach - exe will perform automatic configuration
Please find the patch setup from below location:
http://syncfusion.com/Installs/support/patch/17.4.0.39/845185/F149111/SyncfusionPatch_17.4.0.39_845185_1212020021824986_F149111.exe
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment
Please find the patch assemblies alone from below location:
http://syncfusion.com/Installs/support/patch/17.4.0.39/845185/F149111/SyncfusionPatch_17.4.0.39_845185_1212020021824986_F149111.zip
NuGet :
http://syncfusion.com/Installs/support/patch/17.4.0.39/845185/F149111/SyncfusionNuget_17.4.0.39_845185_1212020021824986_F149111.zip
Assembly Version: 17.4.0.39
Installation Directions :
This patch should replace the files “Syncfusion.Compression.Base.dll” , “Syncfusion.OfficeChart.Base.dll” , “Syncfusion.DocIO.Base.dll” , “Syncfusion.DocToPDFConverter.Base.dll” “Syncfusion.Pdf.Base.dll” under the following folder.
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\4.0
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\17.4.0.39\precompiledassemblies\17.4.0.39\4.0
To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location or you will have to run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.
Note:
To change how you receive bug fixes, ask your license management portal admin to change your project’s patch delivery mode.
https://www.syncfusion.com/account/license
Disclaimer :
Please note that we have created this patch for version 17.4.0.39 specifically to resolve the issue reported in the Forum 149111.
If you have received other patches for the same version for other products, please apply all patches in the order received.
Please let us know if you have any concern.
Regards,
Loketha E
TC
Travis Chambers
January 21, 2020 04:54 PM UTC
It is working perfectly!
Thanks!
SIGN IN To post a reply.
- 8 Replies
- 3 Participants
-
TC Travis Chambers
- Nov 14, 2019 04:36 PM UTC
- Jan 21, 2020 04:54 PM UTC