The following code is used:
using (var docInput = new PdfDocument(fileToConvert))
{
using (var docOutput = new PdfDocument(PdfConformanceLevel.Pdf_A1B))
{
docOutput.InsertPageRange(docInput, 0, docInput.Pages.Count - 1);
docOutput.SaveToFile(destination, FileFormat.PDF);
docOutput.Close();
}
docInput.Close();
}
When I use this code with the following file:
https://pivit.com.au/images/files/pdf/5 ... t-file.pdf
It gets stuck on the line "docOutput.InsertPageRange(docInput, 0, docInput.Pages.Count - 1);".
Any suggestions on how to fix this? Or is this a bug?