Free Support Forum - aspose.com

'Parameter is not valid" after trying to create a Pdf-A1b from a Pdf with a large image inside


#1

We are version of Aspose.Pdf 19.1.0 (also occurs at version 18.7.0)

After trying to create a Pdf-A1b from a Pdf with an large image (A0) in it the following exception is thrown:

at System.Drawing.Bitmap…ctor(Int32 width, Int32 height, PixelFormat format)
at #=zgUDvrVxqV$xIhjg_O0m1epwmGSAm0R$7$HOBEws$ar8blgAiX2PLzIU=.#=ziZFFclN298L_(Double #=zACkKJVI=, Double #=z6MxxKIE=, ImageFilterType #=zgdV0sB0=)
at #=zgUDvrVxqV$xIhjg_O0m1epwmGSAm0R$7$HOBEws$ar8blgAiX2PLzIU=.#=zKyVPo8LwTosU(OperatorCollection #=ziCubrTc=, Resources #=zXGqbpc0=, Double #=z9OGND6o=, Double #=zVk8CZH4=)
at #=zgUDvrVxqV$xIhjg_O0m1epwmGSAm0R$7$HOBEws$ar8blgAiX2PLzIU=.#=z29G7wfg=()
at #=zja7JJd$U2W06aggliaZlknB6NXnNNrK33kFyGW3EDYYtEKRnnzxYnr0=.#=zSy7jKczAzCd_()
at #=zja7JJd$U2W06aggliaZlknB6NXnNNrK33kFyGW3EDYYtEKRnnzxYnr0=.#=zR0$lFi0=()
at #=zcD6XR4tyezbm3j0oUoi4g_zFQSDIUTNT9ETiT4Z0xnzWdeU7T4qLJe8=.#=zpbd1znk=()
at #=zja7JJd$U2W06aggliaZlknB6NXnNNrK33kFyGW3EDYYtEKRnnzxYnr0=.#=zK7XUQHA=(PdfFormatConversionOptions #=zkPLPQeA=)
at Aspose.Pdf.Document.#=zEJ04g1s=(PdfFormatConversionOptions #=zkPLPQeA=, Boolean #=z8B3XmrsYu3_y)
at Aspose.Pdf.Document.Convert(PdfFormatConversionOptions options)

Is there any way of solving this issue?

The code we use is:

var document = new AsposePdf.Document(stream);
...    
var options = new AsposePdf.PdfFormatConversionOptions(AsposePdf.PdfFormat.PDF_A_1B)
{
  LogStream = logStream,
  ErrorAction = AsposePdf.ConvertErrorAction.None,
};
document.Convert(options);
document.Save(newStream);

#2

@kamzol

Thanks for contacting support.

Would you kindly share your sample PDF document with us. We will test the scenario in our environment and address it accordingly.


#3

I e-mailed the file, but haven’t received a confirmation that the file was received by support.

Could you give me an update on this issue?