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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Only the attached dokument can not be converted to PDF, I get an error "invalid parameters" .

Thread ID:

Created:

Updated:

Platform:

Replies:

123791 Apr 21,2016 02:17 PM UTC Apr 25,2016 07:25 AM UTC ASP.NET MVC 3
loading
Tags: DocIO
Testname
Asked On April 21, 2016 02:17 PM UTC

Only the attached dokument can not be converted to PDF, I get an error  "invalid parameters" .

//_tempDatei where I did some working
               using (MemoryStream ms = new MemoryStream(_tempDatei))
                {
                    WordDocument wordDoc = new WordDocument(ms);

                    DocToPDFConverter converter = new DocToPDFConverter();

                    PdfDocument pdfDoc = converter.ConvertToPDF(wordDoc);//after here I get an error "ungültige Parameter",something like "invalid parameters"      

                    pdfDoc.Save(tempWordPdfFile);  
                    pdfDoc.Save(_tempMemoryStream);
                    _tempDatei = _tempMemoryStream.ToArray();

                    wordDoc.Close();
                    converter.Dispose();
                    pdfDoc.Close();
                }

Attachment: dowsNotWork_18b4fab6.7z

Vijay Ramachandran [Syncfusion]
Replied On April 22, 2016 12:09 PM UTC

Hi,

Thank you for contacting Syncfusion support.

We are able to reproduce the mentioned InvalidArgumentExcption issue while converting the given input Word document as PDF and this issue will be fixed in our 2016 Volume 2 Major release.

On further analysing the given input Word document, we found that the input Word document have GroupShapes. Currently, DocIO does not support GroupShapes in Word to PDF conversion. We have already logged this as a feature and the feature will be available in any of our upcoming releases. Please check our website periodically for feature related updates.

Regards,
Vijay R



Testname
Replied On April 22, 2016 01:04 PM UTC

Can you convert the document the way I can use it for converting to pdf ?

Vijay Ramachandran [Syncfusion]
Replied On April 25, 2016 07:25 AM UTC

Hi,

Thank you for your update.

We have tried to convert the given Word document as PDF with given code snippet in your previous update and we are able to reproduce the mentioned InvalidArgumentException in Word to PDF conversion. The issue will be fixed on our 2016 volume 2 Major Release.

Regards,
Vijay R


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.

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

;