Hi,
Is there a solution for this problem already? I encountered a similar (if not the same) one - the following code does produce an empty preview.
Code:
[...]
PdfDocument outputDocument = new PdfDocument();
PdfDocument inputDocument = PdfReader.Open(<<some_file_or_filestream>>, PdfDocumentOpenMode.Import);
for (int i = 0; i < inputDocument.PageCount; i++) {
PdfPage page = inputDocument.Pages[i];
outputDocument.AddPage(page);
}
for (int i = 0; i < outputDocument.PageCount; i++) {
PdfPage page = outputDocument.Pages[i];
gfx = XGraphics.FromPdfPage(page, XGraphicsPdfPageOptions.Append);
}
[...]
The code above is an excerpt from the
Preview sample
Render(XGraphics) method which I modified.
Any help would be much appreciated. TIA