iframe展示pdf时配置项,需要在路径后面继续添加以下参数即可:#toolbar=0&navpanes=0&scrollbar=0

You can open a PDF document with a command or URL that specifies exactly what to display (a named
destination or specific page), and how to display it (using such characteristics as a specific view, scrollbars,
bookmarks, annotations, or highlighting).
The parameters for URLs are supported by most browsers, and can be used when opening PDF documents
programmatically.
Many of these parameters can be passed to the following core API functions (see the Acrobat and PDF
Library API Reference for details):
AVDocOpenFromFileWithParamString
AVDocOpenFromASFileWithParamString
AVDocOpenFromPDDocWithParamString
When opening a PDF document from a command shell, you can pass the parameters to the open
command using the /A switch with the following syntax:
/A “=” “”
For example:
Acrobat.exe /A “zoom=1000” “C:\example.pdf”
In Mac OS, you can use the parameters when opening a PDF document with an Apple event.
Parameters
The following table describes the parameters. Italics indicate user-specified variables.
Syntax Description
nameddest=destination Specifies a named destination in the PDF document.
page=pagenum Specifies a numbered page in the document, using an integer
value. The document’s first page has a pagenum value of 1.
comment=commentID Specifies a comment on a given page in the PDF document. Use
the page command before this command. For example:
#page=1&comment=452fde0e-fd22-457c-84aa-
2cf5bed5a349
Adobe Acrobat SDK Parameters for Opening PDF Files
Parameters for Opening PDF Files Parameters 6
collab=setting Sets the comment repository to be used to supply and store
comments for the document. This overrides the default comment
server for the review or the default preference. The setting is of the
form store_type@location, where valid values for store_type are:
● DAVFDF (WebDAV)
● FSFDF (Network folder)
● DB (ADBC)
For example:
#collab=DAVFDF@http://review_server/Collab
/user1
For more information on comment repositories, see Acrobat
Online Collaboration: Setup and Administration.
zoom=scale
zoom=scale,left,top
Sets the zoom and scroll factors, using float or integer values. For
example, a scale value of 100 indicates a zoom value of 100%.
Scroll values left and top are in a coordinate system where 0,0
represents the top left corner of the visible page, regardless of
document rotation.
view=Fit
view=FitH
view=FitH,top
view=FitV
view=FitV,left
view=FitB
view=FitBH
view=FitBH,top
view=FitBV
view=FitBV,left
Set the view of the displayed page, using the keyword values
defined in the PDF language specification. For more information,
see the PDF Reference.
Scroll values left and top are floats or integers in a coordinate
system where 0,0 represents the top left corner of the visible
page, regardless of document rotation.
Use the page command before this command.
Note: This parameter is not supported on the command line.
viewrect=left,top,wd,ht Sets the view rectangle using float or integer values in a
coordinate system where 0,0 represents the top left corner of the
visible page, regardless of document rotation.
Use the page command before this command.
Note: This parameter is not supported on the command line.
pagemode=bookmarks
pagemode=thumbs
pagemode=none (default)
Displays bookmarks or thumbnails.
scrollbar=1|0 Turns scrollbars on or off.
Syntax Description
Adobe Acrobat SDK Parameters for Opening PDF Files
Parameters for Opening PDF Files Specifying parameters in a URL 7
Specifying parameters in a URL
You can specify multiple parameters in a single URL. Separate each parameter with either an ampersand
(&) or a pound (#) character. Actions are processed and executed from left to right as they appear in the
URL.
Because all specified actions are executed, it is possible that later actions will override the effects of
previous actions, so it is important to use the correct order. For example, page actions should appear
before zoom actions.
Commands are not case sensitive except for the value of a named destination. There can be no spaces in
the URL.
search=wordList Opens the Search panel and performs a search for any of the
words in the specified word list. The first matching word is
highlighted in the document.
The words must be enclosed in quotation marks and separated by
spaces. For example:
#search=“word1 word2”
You can search only for single words. You cannot search for a
string of words.
toolbar=1|0 Turns the toolbar on or off.
statusbar=1|0 Turns the status bar on or off.
messages=1|0 Turns the document message bar on or off.
navpanes=1|0 Turns the navigation panes and tabs on or off.
highlight=lt,rt,top,btm Highlights a specified rectangle on the displayed page. Use the
page command before this command.
The rectangle values are integers in a coordinate system where
0,

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值