We are seeing the following error when merging PDFs
{
“ClassName”: “System.NullReferenceException”,
“Message”: “Object reference not set to an instance of an object.”,
“Data”: null,
“InnerException”: null,
“HelpURL”: null,
“StackTraceString”: " at Aspose.Pdf.XImage.#=zH77BQ9J3uiGd()\r\n at Aspose.Pdf.XImage.get_Grayscaled()\r\n at Aspose.Pdf.Cloud.Business.ImagePresentation…ctor(XImage image, PresentationUriBuilder uriBuilder, ImageCollection imageCollection, Rectangle _rectangle, Int32 pageNumber) in C:\ms\src\Aspose.PDF.Cloud\Business\Images\ImagePresentation.cs:line 26\r\n at Aspose.Pdf.Cloud.Business.ImageCollection…ctor(PresentationUriBuilder uriBuilder, ImagePlacementCollection imagePlacements, Int32 pageNumber) in C:\ms\src\Aspose.PDF.Cloud\Business\Images\ImageCollection.cs:line 24\r\n at Aspose.Pdf.Cloud.Business.PdfPagePresentation.get_Images() in C:\ms\src\Aspose.PDF.Cloud\Business\PdfPagePresentation.cs:line 172\r\n at Aspose.Pdf.Cloud.Business.PresentationExtension.ToDTO(PageCollection pages) in C:\ms\src\Aspose.PDF.Cloud\Business\PresentationExtension.cs:line 53\r\n at Aspose.Pdf.Cloud.Business.PresentationExtension.ToDTO(IPdfDocumentPresentation presentation) in C:\ms\src\Aspose.PDF.Cloud\Business\PresentationExtension.cs:line 35\r\n at Aspose.Pdf.Cloud.Business.ResponseExtension.ToResponse(IPdfDocumentPresentation presentation) in C:\ms\src\Aspose.PDF.Cloud\Business\ResponseExtension.cs:line 23\r\n at Aspose.Pdf.Cloud.Controllers.MergeController.PutMergeDocuments(String name, MergeDocuments mergeDocuments, String storage, String folder) in C:\ms\src\Aspose.PDF.Cloud\Controllers\MergeController.cs:line 54",
“RemoteStackTraceString”: null,
“RemoteStackIndex”: 0,
“ExceptionMethod”: “8\n#=zH77BQ9J3uiGd\nAspose.PDF, Version=21.1.0.0, Culture=neutral, PublicKeyToken=\nAspose.Pdf.XImage\nSystem.Drawing.Bitmap #=zH77BQ9J3uiGd()”,
“HResult”: -2147467261,
“Source”: “Aspose.PDF”,
“WatsonBuckets”: null
}
sample payload:
{
“List”: [
“06817000000yTm1AAE.pdf”
,“06817000000yTm6AAE.pdf”
,“06817000000yTlwAAE.pdf”
]
}
Note: We DO NOT see the error with this payload (which simply removes the final entry)
{
“List”: [
“06817000000yTm1AAE.pdf”
,“06817000000yTm6AAE.pdf”
]
}