We are getting the following exception when trying to print these 2 pdf files.
https://we.tl/t-GS6vlEI2pE System.Exception: Property 'Kids' can not be empty.
at EO.Internal.xvvu.abiu[a](String deb, Boolean dec)
at EO.Pdf.PdfPageCollection.iing(xvvu aku, xvxb akv)
at EO.Pdf.PdfPageCollection..ctor(xvnw aks, xvvu akt)
at EO.Internal.xvnw..ctor(PdfDocument ala, xvvu alb)
at EO.Pdf.PdfDocument..ctor(xvvh agp, Boolean agq)
at EO.Pdf.PdfDocument..ctor(Stream stream)
at AdvisoryTools.DocumentConversion.Logic.DocGeneration.MergeRawDocuments.MergeHtmlAndPdfStreams(Stream htmlStream, Stream pdfStream, CancellationToken cancellationToken) in C:\Workspace\Core\src\services\core.services\documentconversion\AdvisoryTools.DocumentConversion.Logic\DocGeneration\MergeRawDocuments.cs:line 261
Note: when they are printed independently they work. But when you try to merge these 2 and print them this error is being thrown.
this is the line that fails --> new EO.Pdf.PdfDocument(pdfStream); where pdfStream contains the stream of these 2 documents put together with the following line --> EO.Pdf.PdfDocument.Merge(docs.ToArray());