PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Not all pages are loaded for document
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3689
Page 1 of 1

Author:  kmcinnomate [ Thu Nov 09, 2017 2:32 pm ]
Post subject:  Not all pages are loaded for document

First of all: thanks for the product! It's very helpful to us.

Now for the issue: We're using PdfSharp to load documents to concatenate them into larger documents. Loading a document usually works fine, but we have encountered a 212 pages long document where only the first 10 pages are loaded. Unfortunately, I cannot attach the document since it contains personal information, but it seems like it's combined from several documents, since there's a layout change between pages 10 and 11. So, the first "sub document" is loaded, but not the rest.

Firefox and Adobe Acrobot Reader displays the whole document correctly.

We have been using 1.50.4000-beta3b, but have tried using 1.50.4619-beta4c and still have the same problem. We're using this code for loading the documents:
Code:
    var inputDocument = PdfReader.Open(fileData.Stream(), PdfDocumentOpenMode.Import);
    pages = inputDocument.Pages.ToList<PdfPage>(); // only 10 pages here

Do you know anything that could cause this problem? Or how we might detect that there is a problem? Thanks in advance!

Author:  Thomas Hoevel [ Thu Nov 09, 2017 3:09 pm ]
Post subject:  Re: Not all pages are loaded for document

Hi!
kmcinnomate wrote:
Do you know anything that could cause this problem?
No.
So there is not much I can do without looking at the file.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/