Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Autodesk forge 在查看器V7上使用Autodesk.pdf访问多页pdf文件而不进行转换_Autodesk Forge_Autodesk Viewer - Fatal编程技术网

Autodesk forge 在查看器V7上使用Autodesk.pdf访问多页pdf文件而不进行转换

Autodesk forge 在查看器V7上使用Autodesk.pdf访问多页pdf文件而不进行转换,autodesk-forge,autodesk-viewer,Autodesk Forge,Autodesk Viewer,我正在使用查看器V7和Autodesk.PDF扩展名来显示多页PDF。这是一个源片段: var pdf = 'http://localhost/test.pdf'; Autodesk.Viewing.Initializer(optionsLocal, function onInitialized() { viewer = new Autodesk.Viewing.Private.GuiViewer3D(viewerDiv); viewer.setTheme("light-them

我正在使用查看器V7和Autodesk.PDF扩展名来显示多页PDF。这是一个源片段:

var pdf = 'http://localhost/test.pdf';
Autodesk.Viewing.Initializer(optionsLocal, function onInitialized() {
    viewer = new Autodesk.Viewing.Private.GuiViewer3D(viewerDiv);
    viewer.setTheme("light-theme");
    var errorCode = viewer.start();

    viewer.loadExtension('Autodesk.PDF').then( () => {
        viewer.loadModel( pdf, {page: 1}, onDocumentLoadSuccess, onDocumentLoadFailure);
        viewer.loadExtension("Autodesk.Viewing.MarkupsCore")
        viewer.loadExtension("Autodesk.Viewing.MarkupsGui")
        viewer.loadExtension("Autodesk.DocumentBrowser")
    });     
});
我想显示两个按钮,一次滚动pdf一页。 如何确定pdf的页数(长度)?我怎样才能在指定页面上“跳转”

我不能使用类似帖子中描述的方法,例如:

我的文件未通过衍生工具服务转换,我无法调用,例如:

var viewableItems = Autodesk.Viewing.Document.getSubItemsWithProperties(modelDocument.getRootItem(), {'type':'folder','role':'viewable'}, true);
提到的onDocumentLoadSuccess回调无法获取视图列表,因为方法loadModel未传递文档实体。 我使用DocumentBrowser扩展来浏览整个pdf,但是,如何确定用户选择的页面

谢谢你的支持。
Gabriele。

根据Forge Viewer的使用条款,Autodesk Forge Viewer只能用于查看由Autodesk Forge services生成的文件

/*!
 * LMV 
 * 
 * Copyright 2019 Autodesk, Inc.
 * All rights reserved.
 * 
 * This computer source code and related instructions and comments are the
 * unpublished confidential and proprietary information of Autodesk, Inc.
 * and are protected under Federal copyright and state trade secret law.
 * They may not be disclosed to, copied or used by any third party without
 * the prior written consent of Autodesk, Inc.
 * 
 * Autodesk Forge Viewer Usage Limitations:
 * 
 * The Autodesk Forge viewer can only be used to view files generated by
 * Autodesk Forge services. The Autodesk Forge Viewer JavaScript must be
 * delivered from an Autodesk hosted URL.
 */

根据Forge Viewer的使用条款,Autodesk Forge Viewer只能用于查看由Autodesk Forge services生成的文件

/*!
 * LMV 
 * 
 * Copyright 2019 Autodesk, Inc.
 * All rights reserved.
 * 
 * This computer source code and related instructions and comments are the
 * unpublished confidential and proprietary information of Autodesk, Inc.
 * and are protected under Federal copyright and state trade secret law.
 * They may not be disclosed to, copied or used by any third party without
 * the prior written consent of Autodesk, Inc.
 * 
 * Autodesk Forge Viewer Usage Limitations:
 * 
 * The Autodesk Forge viewer can only be used to view files generated by
 * Autodesk Forge services. The Autodesk Forge Viewer JavaScript must be
 * delivered from an Autodesk hosted URL.
 */