使用向左和向右箭头导航多个PDF文件 [英] Navigate multiple PDF files with left and right arrows

查看:86
本文介绍了使用向左和向右箭头导航多个PDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好:



我在网上搜索了一周多一点,但找不到类似于我需要做的事情。



使用C#或asp.net,我想通过点击左右箭头浏览一个文件夹中的所有PDF文档。如果PDF是多个页面,可以选择向下滚动。



它与图像幻灯片放映非常相似,我已经有了工作代码但是有PDF。



此外,在线浏览传单将与我所寻找的类似。



谢谢提前获得所有帮助。



我尝试过:



itextsharp,Pdfrenderer,flipbook

Hi Everyone:

I have been searching online for a little bit over a week, but couldn't find anything similar to what I need to do.

Using C# or asp.net, I would like to browse through all PDF documents from one folder with clicking left and right arrow. With the option to scroll down if the PDF is more than one page.

It is very similar to an image slide show, which I already has working code for but with PDF.

Also, browsing flyers online would be similar to what I am look for.

Thanks in advance for all the help.

What I have tried:

itextsharp, Pdfrenderer, flipbook

推荐答案

你好acinomy1,



我在github上遇到过一个项目这就是你所需要的。



https://github.com/alexwebgr/ pdfSlider



该项目使用jquery和html来实现它。如果您下载项目并转到示例文件夹,您将在该文件中找到示例pdf.html





Hi acinomy1,

I have came across a project on github that does what you need.

https://github.com/alexwebgr/pdfSlider

The project uses jquery and html to implement that. If you download the project and go to the example folder you will find and example pdf.html

inside that file
<div id="carousel">
        <object data="pdf/original.pdf" type="application/pdf" data-caption="original"></object>
        <object data="pdf/samuel.pdf" type="application/pdf" data-caption="samuel"></object>
        <object data="pdf/bacon.pdf" type="application/pdf" data-caption="bacon"></object>
        <object data="pdf/beer.pdf" type="application/pdf" data-caption="beer"></object>
        <object data="pdf/http___www_cipsum_com_.pdf" type="application/pdf" data-caption="corporate"></object>
    </div>





删除对象转盘div内的标签,并使用C#填充对象。它应该是直截了当的,如果您遇到任何问题并希望得到帮助,请随时与我联系。



最好的问候,

Ibrahim Karakira



Remove the object tags inside the carousel div, and fill this with objects using C#. It should be straight forward, if you face any issues and want assistance feel free to contact me.

Best Regards,
Ibrahim Karakira


这几乎是我需要的。非常感谢您的回复。



我现在需要做的是找到文件夹中的所有pdf并将它们显示在轮播中。

文件夹中的pdf数量会不时变化,我尝试在对象数据中使用变量,似乎不起作用。



你或任何人可以用简单的代码示例帮助我吗?



我是一名数据库管理员,要求做一个Web开发人员任务。



万分感谢。
This is pretty much what I need. Thanks a lot for your reply.

what I need to do now is to find all the pdf in the folder and have them display in the carousel.
The number of pdf in the folder will change from the time to time, I tried using variable in the object data, doesn't seem to be working.

Can you or anyone help me with simple code example?

I am a database administrator asking to do a web developer task.

Thanks a million.


这篇关于使用向左和向右箭头导航多个PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆