We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Exception being thrown when Converting a .docx file to pdf

Thread ID:

Created:

Updated:

Platform:

Replies:

148161 Oct 8,2019 04:28 PM UTC Nov 1,2019 02:48 PM UTC ASP.NET Core 3
loading
Tags: DocIO
Aaron Knipe
Asked On October 8, 2019 04:28 PM UTC

When attempting to convert a microsoft word docx file to a pdf, I am getting an exception in Syncfusion.Pdf.Portal that states that the "Argument Array should be of the same length"



"   at Syncfusion.Pdf.Graphics.PdfPath.AddPath(PointF[] pathPoints, Byte[] pathTypes)
   at Syncfusion.DocIORenderer.Rendering.ShapePath.GetCurvedLeftArrowPath()
   at Syncfusion.DocToPdfConverter.Rendering.PDFDrawingContext.GetGraphicsPath(Shape shape, RectangleF bounds, PdfPen& pen)
   at Syncfusion.DocToPdfConverter.Rendering.PDFDrawingContext.DrawShape(Shape shape, LayoutedWidget ltWidget)
   at Syncfusion.DocToPdfConverter.Rendering.PDFDrawingContext.Draw(Shape shape, LayoutedWidget ltWidget)
   at Syncfusion.DocToPdfConverter.Rendering.PDFDrawingContext.Draw(LayoutedWidget layoutedWidget, Boolean isHaveToInitLayoutInfo)
   at Syncfusion.DocToPdfConverter.Rendering.PDFDrawingContext.DrawOverLappedShapeWidgets(Boolean isHaveToInitLayoutInfo)
   at Syncfusion.DocToPdfConverter.Rendering.PDFDrawingContext.Draw(Page page)
   at Syncfusion.DocIORenderer.DocIORenderer.DrawDirectWordToPDF(DocumentLayouter layouter)
   at <Application>.Services.UserFileUploadService.ConvertDocToPDFStream(String fileName, Byte[] fileData) in C:\\Users\\<user>\\source\\repos\\<ApplicationFolder>\\<Application>\\Services\\UserFileUploadService.cs:line 181
   at <Application>.Services.UserFileUploadService.<UploadDocThumbnail>d__7.MoveNext() in C:\\Users\\<user>\\source\\repos\\<ApplicationFolder>\\<Application>\\Services\\UserFileUploadService.cs:line 80
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at <Application>.Services.UserFileUploadService.<UploadThumbnail>d__5.MoveNext() in C:\\Users\\<user>\\source\\repos\\<ApplicationFolder>\\<Application>\\Services\\UserFileUploadService.cs:line 44
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at <Application>.Services.<>DocumentService.<Upload<>Documents>d__3.MoveNext() in C:\\Users\\<user>\\source\\repos\\<ApplicationFolder>\\<Application>\\Services\\<>DocumentService.cs:line 47
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at <Application>.Services.<>FormsImportService.<ImportDistrict<>>d__3.MoveNext() in C:\\Users\\<user>\\source\\repos\\<ApplicationFolder>\\<Application>\\Services\\<>FormsImportService.cs:line 26
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at <Application>.<Application>.<Run>d__2.MoveNext() in C:\\Users\\<user>\\source\\repos\\<ApplicationFolder>\\<Application>\\<Application>.cs:line 21
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at <Application>.Program.<Main>d__12.MoveNext() in C:\\Users\\<user>\\source\\repos\\<ApplicationFolder>\\<Application>\\Program.cs:line 23"


Vijayasurya Anandhan [Syncfusion]
Replied On October 9, 2019 06:04 AM UTC

Hi Aaron,

Thank you for contacting Syncfusion support.

We can reproduce the issue with “
ArgumentException throws while convert the Word document to PDF” using the provided stack trace from our side and suspect it to be a defect. We will validate this issue and update you with more details on 11th October 2019. 
 
Please let us know if you have any queries. 
 
Regards, 
Vijayasurya A 


Ramaraj Marimuthu [Syncfusion]
Replied On October 11, 2019 02:42 PM UTC

Hi Aaron,

Thank you for your patience.

We confirmed the issue “ArgumentException throws while convert the Word document to PDF” as a defect. We have logged a defect report. The fix for this issue is estimated to be available on October 25, 2019.

Please use the below feedback link to track the status of the reported bug.
https://www.syncfusion.com/feedback/9461/argumentexception-throws-while-convert-the-word-document-to-pdf

Please let us know if you need any further assistances in this.

Regards,
Ramaraj Marimuthu
 


Vijayasurya Anandhan [Syncfusion]
Replied On November 1, 2019 02:48 PM UTC

Hi Aaron,

Thank you for your patience.

We have resolved the reported issue with “ArgumentException throws 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.14/1005680/F148161/SyncfusionPatch_17.3.0.14_1005680_11012019084937302_F148161.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.14/1005680/F148161/SyncfusionPatch_17.3.0.14_1005680_11012019084937302_F148161.zip 

NuGet:
 
http://syncfusion.com/Installs/support/patch/17.3.0.14/1005680/F148161/SyncfusionNuget_17.3.0.14_1005680_11012019084937302_F148161.zip

Assembly Version: 17.3.0.14
Installation Directions :
This patch should replace the files “Syncfusion.Compression.Portable.dll”, “Syncfusion.OfficeChart.Portable.dll” , “Syncfusion.DocIO.Portable.dll”, “Syncfusion.DocIORenderer.Portable.dll”, “Syncfusion.Pdf.Portable.dll” and “Syncfusion.SkiaSharpHelper.Portable.dll” under the following folder.
$system drive:\ Files\Syncfusion\Essential Studio\Platform\$Version # \precompiledassemblies\$Version#\4.0
E.g. : $system drive:\Program Files\Syncfusion\Essential Studio\ASP.NET CORE\17.3.0.14\precompiledassemblies\17.3.0.14\4.0

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.14 specifically to resolve the issue reported in the forum 148161.

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 3 SP1 release which will be available in start of November 2019.

Please let us know if you have any questions.

Regards,
Vijayasurya A


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon