Free Support Forum - aspose.com

DOC to PDF throws System.ArgumentException using .NET | Parameter is not valid

Description:

Saving Document.doc (attached) as PDF fails with the following stack trace:
System.ArgumentException: Parameter is not valid.
at System.Drawing.Bitmap…ctor(Int32 width, Int32 height, PixelFormat format)
at System.Drawing.Bitmap…ctor(Int32 width, Int32 height)
at xf9a9481c3f63a419.x6fb77f4cc018ceba.xa903f8f328b4c169(xa587dcb499c221cc xd8f1949f8950238a)
at x4f4df92b75ba3b67.x02cd5c9c8d54330e.xa934c26af07952ed(x845d6a068e0b03c5 xd8f1949f8950238a, x4882ae789be6e2ef x0f7b23d1c393aed9)
at x4f4df92b75ba3b67.xe21bbe9dfab6c4dd.xf7268a8a4e82d147(x845d6a068e0b03c5 xd8f1949f8950238a)
at x4f4df92b75ba3b67.xa3d3e9bf30ebb072.x3a53bab86bc1dfad(x845d6a068e0b03c5 xd8f1949f8950238a, Boolean x577adbf0cae935c5)
at x4f4df92b75ba3b67.xd6b2a42851fedfba.x4f6d0716f281880f(xab391c46ff9a0a38 xe125219852864557)
at x4f4df92b75ba3b67.x92faf2a956f0f5a7.VisitPathStart(xab391c46ff9a0a38 path)
at x1c8faa688b1f0b0c.xab391c46ff9a0a38.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xbaec545ec01f92ca.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xb8e7e788f6d59708.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xbaec545ec01f92ca.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xb8e7e788f6d59708.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xbaec545ec01f92ca.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xb8e7e788f6d59708.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xbaec545ec01f92ca.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xb8e7e788f6d59708.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xbaec545ec01f92ca.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xb8e7e788f6d59708.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xbaec545ec01f92ca.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xb8e7e788f6d59708.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xbaec545ec01f92ca.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xb8e7e788f6d59708.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xbaec545ec01f92ca.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xb8e7e788f6d59708.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.x72c34b8dbaec3734.xdb6e5b78ff4fa348(Boolean x34c8462e7ee61121, x48cb59b8ec3b78c9 x5a7a657dd8463d3b, Boolean xac51bc46b01ec35d, xf51865b83a7a0b3b x672ff13faf031f3d)
at x1c8faa688b1f0b0c.x72c34b8dbaec3734.x9214b18190604b0d(xf51865b83a7a0b3b x672ff13faf031f3d, x48cb59b8ec3b78c9 x5a7a657dd8463d3b, Boolean xac51bc46b01ec35d, Boolean x34c8462e7ee61121)
at x4f4df92b75ba3b67.x92faf2a956f0f5a7.VisitImage(x72c34b8dbaec3734 image)
at x1c8faa688b1f0b0c.x72c34b8dbaec3734.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xbaec545ec01f92ca.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xb8e7e788f6d59708.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xbaec545ec01f92ca.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xb8e7e788f6d59708.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xbaec545ec01f92ca.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xb8e7e788f6d59708.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xbaec545ec01f92ca.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xb8e7e788f6d59708.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xbaec545ec01f92ca.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xb8e7e788f6d59708.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xbaec545ec01f92ca.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xc67adcdbca121a26.Accept(xf51865b83a7a0b3b visitor)
at x6a671772ec29137f.xcd769e39c0788209.DoRenderPage(xc67adcdbca121a26 page)
at xf989f31a236ff98c.x6c74398bceb133f8.xa2e0b7f7da663553(x8556eed81191af11 x5ac1382edb7bf2c2)
at Aspose.Words.Document.xf381a641001e6830(Stream xcf18e5243f8d5fd3, String xafe2f3653ee64ebc, SaveOptions xc27f01f21f67608c)
at Aspose.Words.Document.Save(String fileName, SaveOptions saveOptions)
at WordReleaser.Process(String destinationPath, Stream wordStream)
at Program.Main(String[] args)

How to reproduce:

  • unpack attached zip file, add Aspose.Words.dll (11.6.0.0) and Aspose.Words.lic in same directory than the sources
  • build with NAnt 0.91 with Microsoft .NET Framework 4.0 installed
  • launch test_word_releaser.exe documents/Document.doc documents/Document.pdf

Notes:

  • I can reproduce the problem with 11.6.0.0, 11.5.0.0, 11.4.0.0
  • I cannot reproduce the problem with 11.3.0.0, 11.2.0.0, 10.2.0.0

@jeromezago

Thanks for your query. I have managed to reproduce the same issue at my side. I have logged this issue as WORDSNET-6709 in our issue tracking system. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-6709) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.