用于将PDF文件显示为动画书的Javascript库?
我正在寻找一个Javascript库,它可以将PDF文件显示为动画书,而无需任何预处理。用于将PDF文件显示为动画书的Javascript库?,javascript,pdf,Javascript,Pdf,我正在寻找一个Javascript库,它可以将PDF文件显示为动画书,而无需任何预处理。 (我们已经存储了大量PDF文件,可通过下载访问,现在我们希望通过“动画书”的外观以更“用户友好”的方式显示这些文件,但我们不希望将它们全部转换为“动画书”。) 类似于:在浏览器中呈现HTML页面>处理输入的PDF字节>将它们显示为HTML5动画书… 你知道怎么做吗 注:希望这足够清楚…我希望你想要的是: 或者,如果需要,可以通过选项变量自定义设置 var flipBook; jQuery(document
(我们已经存储了大量PDF文件,可通过下载访问,现在我们希望通过“动画书”的外观以更“用户友好”的方式显示这些文件,但我们不希望将它们全部转换为“动画书”。) 类似于:
在浏览器中呈现HTML页面>处理输入的PDF字节>将它们显示为HTML5动画书…
你知道怎么做吗
注:希望这足够清楚…我希望你想要的是: 或者,如果需要,可以通过选项变量自定义设置
var flipBook;
jQuery(document).ready(function () {
//make sure this file is hosted in localhost or any other server
var pdf = 'example-assets/books/alice.pdf';
//these are extra settings
var options = {
webgl:false,
height: 400,
duration: 800,
autoEnableOutline:true //auto open the outline/bookmarks tab
};
/**
* outline is basically a array of json object as:
* {title:"title to appear",dest:"url as string or page as number",items:[]}
* items is the same process again array of json objects
*/
options.outline = [
{title: "Page 1", dest: 1},
{title: "Page 2", dest:2},
{title: "StackOverflow", dest: "https://stackoverflow.com/",items:[
{title:"My Profile",dest :"https://stackoverflow.com/users/6687403/deepak-ghimire"},
{title:"Page 3",dest:3}
]}
];
flipBook = $("#flipbookContainer").flipBook(pdf, options);
});
希望能有所帮助。我希望您想要的是: 或者,如果需要,可以通过选项变量自定义设置
var flipBook;
jQuery(document).ready(function () {
//make sure this file is hosted in localhost or any other server
var pdf = 'example-assets/books/alice.pdf';
//these are extra settings
var options = {
webgl:false,
height: 400,
duration: 800,
autoEnableOutline:true //auto open the outline/bookmarks tab
};
/**
* outline is basically a array of json object as:
* {title:"title to appear",dest:"url as string or page as number",items:[]}
* items is the same process again array of json objects
*/
options.outline = [
{title: "Page 1", dest: 1},
{title: "Page 2", dest:2},
{title: "StackOverflow", dest: "https://stackoverflow.com/",items:[
{title:"My Profile",dest :"https://stackoverflow.com/users/6687403/deepak-ghimire"},
{title:"Page 3",dest:3}
]}
];
flipBook = $("#flipbookContainer").flipBook(pdf, options);
});
希望有帮助。这是免费的还是付费的?不,不是免费的。。但是从价格上看,这是免费的还是付费的?不,这不是免费的。。但根据调查结果,它看起来很值钱