I was given code similar to the accepted answer in Convert Tif document to PDF with PdfSharp, except it uses a MemoryStream (not sure why). It works OK when we have a small