We have a process that slices up PDF documents into individual PDF pages. We use the code below to do that:
Page pdfPage = pages[pageIndex];
Document pagePDF = new Document();
MemoryStream pageStream = new MemoryStream();
We are finding however that any hyperlinks in the copied PDF page are being reset to 1. Which is understandable as the PDF document now only has a single page in it.
These are being reset to:
Is there a way to disable this check / optimisation? We would like to maintain the page number hyperlinks even through the document only has a single page in it.