Parameter is not valid in Aspose.PDF 23.9

Hi,

When converting pdf to pdf archive with Convert() for the attached document, an error is thrown in v23.9 but not v23.8.

powerpoint.pdf (284.1 KB)

Parameter is not valid.

at System.Drawing.Bitmap…ctor(Int32 width, Int32 height, PixelFormat format)
at #=zxeMsZyFXT3xRDJ6VIU6r7XdKj4x4IOzHo01GexmaDQNQQ2QfVTPC$8k=.#=z3vRYWxfKRqyC(Double #=zGVwgIoA=, Double #=zHrLV7n4=, ImageFilterType #=z2zqNUSk=)
at #=zxeMsZyFXT3xRDJ6VIU6r7XdKj4x4IOzHo01GexmaDQNQQ2QfVTPC$8k=.#=z3vRYWxfKRqyC()
at #=zxeMsZyFXT3xRDJ6VIU6r7XdKj4x4IOzHo01GexmaDQNQQ2QfVTPC$8k=.#=z8Jum50nfxilb.#=zjFU9GFM=()
at #=zxeMsZyFXT3xRDJ6VIU6r7XdKj4x4IOzHo01GexmaDQNQQ2QfVTPC$8k=.#=z8Jum50nfxilb.#=zIm6$OuCzFiWU()
at #=zxeMsZyFXT3xRDJ6VIU6r7XdKj4x4IOzHo01GexmaDQNQQ2QfVTPC$8k=.#=zKCk13KNNmxwo.Visit(EOFill #=zmuGPizg=)
at Aspose.Pdf.Operators.EOFill.Accept(IOperatorSelector visitor)
at #=zxeMsZyFXT3xRDJ6VIU6r7XdKj4x4IOzHo01GexmaDQNQQ2QfVTPC$8k=.#=z8Jum50nfxilb.#=z6TtXCdI=()
at #=zxeMsZyFXT3xRDJ6VIU6r7XdKj4x4IOzHo01GexmaDQNQQ2QfVTPC$8k=.#=zKdYRewG6bC5E(OperatorCollection #=zwfI8v38=, Resources #=zeayQa1c=, Double #=zM0_ccwg=)
at #=zxeMsZyFXT3xRDJ6VIU6r7XdKj4x4IOzHo01GexmaDQNQQ2QfVTPC$8k=.#=zvNoScV8=()
at #=zKut4LNpqxX8bYlVsMi1vHKWw5hzaV8aYxGnsST5wQe6ArTUCOEdAKjc=.#=zh9VMcxJPc7W_()
at #=zQtv2dbkyPp3Ft$mcSxm419eLltD7gDEkDzhaXcpS40AGPnhAGL_EUAg=.#=zQISZhkQ=()
at #=zKut4LNpqxX8bYlVsMi1vHKWw5hzaV8aYxGnsST5wQe6ArTUCOEdAKjc=.#=z_P9VWLY=()
at #=zQtv2dbkyPp3Ft$mcSxm419eLltD7gDEkDzhaXcpS40AGPnhAGL_EUAg=.#=z6TtXCdI=(XmlTextWriter #=zjBlg0EI=, PdfFormat #=z_M3rIy0=, Document #=zlFHVrnU=, Boolean #=zLRrcz8uxGkhX, ConvertErrorAction #=zCb8a7pM=)
at Aspose.Pdf.Document.#=zPDrkdV4=(XmlTextWriter #=zjBlg0EI=, PdfFormat #=z_M3rIy0=, Boolean #=zLRrcz8uxGkhX, ConvertErrorAction #=zCb8a7pM=)
at Aspose.Pdf.Document.Convert(Stream outputLogStream, PdfFormat format, ConvertErrorAction action)
at AsposeTest.MainForm.Convert(Document doc, PdfFormat pdfFormat) in C:\git\aspose-sandbox\MainForm.cs:line 117

Thank you!

@M-Files_Support
please provide the code fragment used

Sure.

var doc = new Aspose.Pdf.Document( filePath );
// Catch to wrap errors with more informational message.
try
{
// Using temp stream for errors, unused.
using( var errStream = new MemoryStream() )
{
// Convert.
doc.Convert( errStream, PdfFormat.PDF_A_1A, ConvertErrorAction.Delete );
errStream.Flush();
errStream.Dispose();
}
}
catch( Exception ex )
{
throw new Exception( string.Format( errMsg, PdfFormat.PDF_A_1A.ToString() ), ex );
}

@M-Files_Support
Yes, indeed it is.
Thank you for writing to us.
I will set a task to the development team regarding this bug.

1 Like

@M-Files_Support
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-55496

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.