I have a pdf that has a dotted border on it, When I try to convert it to Pptx, I get an exception
"Parameter is not valid.
Stack trace is a bit obfuscated, but here it is
at System.Drawing.Bitmap…ctor(Int32 width, Int32 height, PixelFormat format)
at #=zZO85Bo8fezCErvijjU_CP2EVIm3_.#=zoEfcBb0=(Int32 #=zstzkxbE=, Int32 #=zjuuaZec=, PixelFormat #=zx1ZZQpM=)
…
at Aspose.Pdf.Document.#=zgoN_OG_rs6$4(Stream #=zQs7Ajg1Fct$q, SaveOptions #=zecOrkt8=)
at Aspose.Pdf.Document.Save(Stream outputStream, SaveOptions options)
Here’s the pdf
Test.pdf (92.7 KB)
The code I’m using to generate the pptx is
var pdf = new Document(pdfStream.Stream);
var pptxStream = new MemoryStream();
var options = new PptxSaveOptions {
SlidesAsImages = false,
TryMergeAdjacentSameBackgroundImages = false,
};
pdf.Save(pptxStream, options);