问题标签 [pdf-viewer]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
5197 浏览

objective-c - 如何以编程方式在 iOS 中创建 PDF?

我想在 iOS 中创建一个 PDF 文件,PDF 中应该有一个表格,它是从一个数组中填充的。我已经在谷歌上搜索过,但没有成功。任何帮助表示赞赏

0 投票
3 回答
8157 浏览

asp.net - Editing PDF document online and save in the database using ASP.NET

I have a PDF document storted as binary in the SQL Server database. I have rendered the binary document as PDF inside an iFrame using HTTP Handler.

Now, I want to allow the users to edit the data in the PDF file shown inside the iFrame and also populate some of the fields in the PDF automatically on clicking a button.

After all the fields are populated, the filled PDF document in the iFrame should be saved back as binary in the database.

How can this be implemented using ASP.NET 4.0?

0 投票
4 回答
8833 浏览

php - 在没有 Adob​​e Reader 的情况下将 pdf 文件显示到浏览器中

我需要在没有 Adob​​e Reader 的情况下将 pdf 文件打开到浏览器中。是否有任何带有 php 的 API 可以将 PDF 文件打开到浏览器中。

问候

0 投票
1 回答
699 浏览

android - 无法构建 libmupdf.so

几周以来,我一直在尝试使用 Mupdf 运气,但无法构建 .so 文件。我现在只是在 cygwin 上尝试“Make”,我之前没有尝试过,浪费了我的时间。

为了构建 Mupdf 的 so 文件,我正在做的是,在导入所有需要的主要文件后,在 cygwin 终端上编写一个简单的命令,cmd 是:make -f Makefile。

现在我的所有文件都在一个一个地构建和链接,除了两个文件。我得到的错误是:

LINK build/debug/mupdf build/debug/x11_main.o:在函数winopen': /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:127: undefined reference to_XOpenDisplay'/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:131:未定义引用_XInternAtom' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:132: undefined reference to_XInternAtom'/cygdrive/d /Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:133:未定义引用_XInternAtom' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:134: undefined reference to_XInternAtom' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:135:未定义引用_XInternAtom' build/debug/x11_main.o:/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:136: more undefined references to_XInternAtom' 遵循 build/debug/x11_main.o:在函数winopen': /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:142: undefined reference to_XCreateFontCursor'/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:143:未定义引用_XCreateFontCursor' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:144: undefined reference to_XCreateFontCursor'/cygdrive/d/Users/ MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:154:未定义的参考_XAllocColor' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:155: undefined reference to_XAllocColor'/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:157:未定义引用_XCreateWindow' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:167: undefined reference to_XSetWindowColormap'/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c :168: 未定义引用_XSelectInput' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:174: undefined reference to_XCreateGC' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:176: 未定义引用_XDefineCursor' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:178: undefined reference to_XAllocWMHints' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni /apps/x11_main.c:182:未定义引用_XCreateBitmapFromData' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:186: undefined reference to_XCreateBitmapFromData' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:194:未定义引用_XSetWMHints' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:196: undefined reference to_XFree' /cygdrive/d/Users/MOBDEV3 /workspace1/Latest_Mupdf/jni/apps/x11_main.c:199:未定义的引用_XAllocClassHint' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:204: undefined reference to_XSetClassHint'/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:205:未定义引用_XFree' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:208: undefined reference to_XSetWMProtocols' build/debug/x11_main.o:在函数wincursor': /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:227: undefined reference to_XDefineCursor'/cygdrive/d/Users/MOBDEV3 /workspace1/Latest_Mupdf/jni/apps/x11_main.c:229:未定义引用_XDefineCursor' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:231: undefined reference to_XDefineCursor' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:232:未定义引用_XFlush' build/debug/x11_main.o: In functionwintitle':/ cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:237:未定义对_XStoreName' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:239: undefined reference to_Xutf8SetWMProperties' build/debug/x11_main.o的引用:在函数winresize': /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:260: undefined reference to_XConfigureWindow'/cygdrive/d/Users/MOBDEV3/workspace1/ Latest_Mupdf/jni/apps/x11_main.c:272:未定义的引用_XMapWindow' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:273: undefined reference to_XFlush'/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:277:未定义对_XNextEvent' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:287: undefined reference to_XSetForeground'/cygdrive /d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c的引用:288: 未定义对_XFillRectangle' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:289: undefined reference to_XFlush' build/debug/x11_main.o 的引用:在函数winfullscreen': /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:314: undefined reference to_XSendEvent' build/debug/x11_main.o 中:在函数fillrect': /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:322: undefined reference to_XFillRectangle' build/debug/x11_main.o 中:在函数winblitsearch': /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:331: undefined reference to_XSetForeground' build/debug/x11_main 中。 o:在函数winblit': /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:348: undefined reference to_XSetForeground'/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:354:未定义对_XSetForeground' build/debug/x11_main.o: In functionwindrawstringxor的引用':/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/ apps/x11_main.c:432:未定义的引用_XGetGCValues' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:435: undefined reference to_XChangeGC'/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:437:未定义引用_XSetForeground' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:439: undefined reference to_XDrawString'/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c :440: 未定义引用_XGetGCValues'/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/ _XFlush' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:442: undefined reference tox11_main.c:444: 未定义引用_XChangeGC' build/debug/x11_main.o: In functionwindrawstring':/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/ jni/apps/x11_main.c:449:未定义对_XSetForeground' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:450: undefined reference to_XDrawString' build/debug/x11_main.o 的引用:在函数windocopy': /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:478: undefined reference to_XSetSelectionOwner' build/debug/x11_main.o 中:在函数onselreq': /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:506: undefined reference to_XChangeProperty'/cygdrive/d/Users/MOBDEV3/workspace1/ Latest_Mupdf/jni/apps/x11_main.c:513:未定义的引用_XChangeProperty' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:520: undefined reference to_XChangeProperty'/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:530:未定义对_XSendEvent' build/debug/x11_main.o: In functionmain'的引用:/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main。 c:683: 未定义引用_XNextEvent' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:704: undefined reference to_XLookupString' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:681: 未定义引用_XPending' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:800: undefined reference to_XPending' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/ jni/apps/x11_main.c:842: 未定义引用_XDestroyWindow' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:844: undefined reference to_XFreePixmap' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:846: 未定义引用_XFreeCursor' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:847: undefined reference to_XFreeCursor' /cygdrive/d/Users/ MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:848:未定义的参考_XFreeCursor' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:850: undefined reference to_XFreeGC'/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:852:未定义对_XCloseDisplay' build/debug/x11_image.o: In functioncreateximage的引用':/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image。 c:108: 未定义引用_XShmQueryExtension' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:113: undefined reference to_XShmCreateImage' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:139: 未定义引用_XShmAttach' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:148: undefined reference to_XSync' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/ jni/apps/x11_image.c:157:未定义对_XCreateImage' build/debug/x11_image.o: In functionmake_colormap 的引用:/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:194:未定义对_XCreateColormap' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:198: undefined reference to_XStoreColors 的构建/调试/x11_image 的引用。 o:在函数next_pool_image': /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:307: undefined reference to_XSync'/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:309:未定义的引用_XFlush' build/debug/x11_image.o: In functionximage_error_handler':/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:322:未定义引用_XGetErrorText' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:328: undefined reference to_XSetErrorHandler'/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image。 c:329: 对_XSetErrorHandler' build/debug/x11_image.o: In functionximage_init' 的未定义引用:/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:351: 对_XVisualIDFromVisual' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:352: undefined reference to_XGetVisualInfo'/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf 的未定义引用/jni/apps/x11_image.c:355:未定义引用_XFree' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:359: undefined reference to_XFree' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:362:未定义引用_XListPixmapFormats' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:369: undefined reference to_XFree' /cygdrive/d/Users /MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:382:未定义的引用_XQueryExtension' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:383: undefined reference to_XShmQueryExtension'/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:387:未定义对_XSetErrorHandler' build/debug/x11_image.o: In functionximage_blit'的引用:/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image。 c:452: 未定义对_XShmPutImage' /cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:458: undefined reference to_XPutImage'collect2 的引用: ld 返回 1 退出状态 Makefile:146: 目标 `build/debug/mupdf' 的配方失败 make: * [build/debug/mupdf] 错误 1

如我所见,问题出在“X11 Lib”中,但无法做到。任何帮助表示赞赏...

0 投票
1 回答
12578 浏览

c# - asp.net页面的pdf查看器控件?

我想在我的 asp.net(C#) 网页中显示 PDF 文件。我为 .net 网页找到了很多 pdf 查看器。但我想做的还不止这些。我的意思是,我已经使用 C# 以编程方式检索了 PDF 文件中的书签,然后显示在 TreeView 中。所以,每当用户单击任何节点时,我都想选择(突出显示)显示在 PDF 中的 PDF 文件的适当范围查看器。

例如,请参阅我的附件图片... 在此处输入图像描述

请引导我摆脱这个问题......

谢谢和问候,
P.SARAVANAN

0 投票
1 回答
3806 浏览

java - Java 小程序中的 PDF 查看器

嗨,我的公司需要一个 PDF 查看器,但不需要 Acrobat 阅读器或其他独立程序,它应该在 Java 小程序中,我们的要求是查看 PDF 文件不要复制或粘贴,文件的位置也不应该显示明确地说,是任何可用的开放软件库或工具,我用谷歌搜索,但找不到任何符合我要求的东西。

0 投票
5 回答
4328 浏览

android - Android:如何在特定页面打开 PDF 文件

我在这里看到了可以在 PDF 查看器中打开 PDF 文件的代码。是否可以修改代码以使 PDF 查看器在特定页面打开 PDF?

0 投票
0 回答
806 浏览

iphone - Phone gap ios app - 显示带有打印/电子邮件选项的pdf文件

我有执行以下任务的要求。

在 Phonegap iOS 应用程序中,用户希望在单击将从远程服务器加载 pdf 的链接后查看 pdf 文件。并且用户还需要此文档查看器的打印、电子邮件功能。

到目前为止,我已经尝试了以下选项。

  1. 当用户单击链接并尝试通过 Safari 加载 pdf 时退出应用程序。这不起作用,因为用户必须重新登录才能查看应用程序。

  2. 检查子浏览器插件。但它不提供打印/电子邮件等选项。

如果有人可以帮助有类似经验的人,那就太好了。

谢谢

0 投票
2 回答
3664 浏览

android - 在我的应用程序中打开并查看 pdf

使用此代码:

我在应用程序中保留了一个 8 MB 大小的 PDF。我已经使用了几个代码来尝试打开它并查看它,但找不到方法。

有什么建议么?

0 投票
2 回答
1137 浏览

android - PDFViewer 的 NoClassDefFoundError

我正在尝试实现一个 pdf 查看器,该应用程序会检测存储在 sd 卡中的 PDF,如图所示。 http://img225.imageshack.us/img225/3852/pdfs.png

但是当我点击任何文件来查看它时......错误。

这是 LOGCAT:

我几乎尝试了所有方法:

  • 创建一个新项目并复制类。
  • 使用其他目标 (APIS lvl10),(2.2,_lvl8)。
  • 清洁和建造
  • 重置亚行。
  • 使用从其他站点下载的 PDFViewer 库。

但我总是得到同样的错误:

在这里你还可以看到我的两个类,以及 MANIFEST。

PDFViewerActivity.java

二.java

显现

谢谢!!!