Paleta
Paleta

Reputation: 980

Customize PDF view inside a browser

I've worked on a requirement that allows me to show a PDF file inside a browser by doingo a Response.ContentType = "application/pdf".

The problem is that the default view of the PDF is always showing the bookmarks menu at the left, is there a way by using HTTP headers or something to tell the PDF viewer not to show the bookmarks section?

Thanks in advance.

Upvotes: 0

Views: 1569

Answers (2)

Chris Haas
Chris Haas

Reputation: 55467

There's two ways that you can do it. The way that I would recommend is to actually open the PDF in Adobe Acrobat and go to File, Properties. On the Initial View tab you'll see a lot of options for how to display the PDF. The second way I haven't tested but Adobe says you can pass various querystring options to the PDF. The one you'd probably want is http://example.org/doc.pdf#pagemode=none

Upvotes: 1

Robert
Robert

Reputation: 42829

The way how a PDF document is displayed can be configured inside the PDF document.

There are a lot of PDF editors that can modify the "viewer preferences" as it is mostly called. One free example is BeCyPDFMetaEdit.

Upvotes: 0

Related Questions