Question

I would like to implement a PDF-Viewer which shows two pages of the document side by side at a time. Naturally, the document should show the cover page alone if it exists such that those pages belonging together are shown simultaneously. The problem is that some documents have a cover page as a first page and some seem to have the front cover and then the back cover as the first pages and some have neither.

My question is: How do I know if there is one or more cover pages or not? Do cover pages carry a special marking that can be recognised? Or is this maybe a matter of examining page numbers?

Thanks for your time!

Was it helpful?

Solution

There is no "cover page" notion in PDF format. You won't have this information from PDF objects. There is no page number information also (besides the page sequence you already have)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top