问题标签 [fdf]

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 回答
262 浏览

php - 从 fdf_get_value() 获取错误

我试图从 fdf 文件中获取字段值。我使用了以下代码,但出现错误。

错误信息:

致命错误:在第 3 行调用 C:\LocalServer\htdocs\pdf\test.php 中未定义的函数 fdf_get_value()

我必须安装任何库函数吗?我不知道我应该怎么做。

0 投票
1 回答
228 浏览

pdf - XFDF - 如何在 Illustrator 中打开 XFDF 文件

如何在 Illustrator 中打开或查看 xfdf 文件。我知道它可以在 PDF 中查看,但如何在 Illustrator 中查看。任何建议或参考都受到高度赞赏。

0 投票
4 回答
17050 浏览

php - 从 MySQL 创建 PDF 的最佳方法:TCPDF/FPDF 还是 FDF?

我们公司允许其客户通过我们的网站查看报告。这些页面是基于 php 的,数据是从 MySQL 收集的。这些报告是很久以前写的,包括内联 css。页面本身看起来不错,但缺少打印版本。我想获取报告并创建包含我们品牌的具有视觉吸引力的“可打印”页面。

到目前为止,我已经找到了三个解决方案。

  1. @Media 打印样式表

    这是最简单的方法,但没有给我完整的布局控制。我想要横向模式,并且需要控制分页符发生的位置,因此此方法已从我的可能解决方案列表中删除。报告是通过循环遍历 PHP 数据构建的,因此虽然我总是可以在 a 或例如之后放置一个分页符,但我无法在页面到达下一组数据之前停止分页。

  2. TCPDF/FPDF

    从我所见,这些课程将为我提供客户 PDF 所需的所有控制。挑战在于,这似乎比我的编程技能要求的要高级一些,并且 HTML 表中包含的所有内联 CSS 都可能会导致格式化。

  3. FDF

    如果我理解正确,我倾向于这种方法。首先,我将创建一个 PDF 表单并定义由 MySQL 数据填充的所有字段。然后我将创建一个 FDF 文件,该文件将使用数据库中的数据填充表单模板。我似乎更容易通过 PDF 创建一个视觉上令人愉悦的表单,然后使用此方法填充该表单,而不是使用方法 2 从头开始​​创建整个 pdf。

听起来我在正确的轨道上吗?这些方法中的任何一种都比另一种“更容易”吗?

任何帮助是极大的赞赏。

0 投票
2 回答
776 浏览

applescript - BibDesk script to link Skim annotations to citation entry

Some Background: I've used Skim with BibDesk for a while now for reading and annotating scientific journal articles. Recently, I purchased an android tablet and would like to use it to read and annotate .pdfs as well. I use the reference library Eratosthenes with ezPDF Reader and sync all files through Dropbox. The issue I'm having is that Skim stores annotations as extended attribute files by default, which are not accessible to other devices through Dropbox. I've worked around this problem by saving the annotations as .fdf files and then linking the .fdf files to the citation entry in BibDesk. ezPDF reader can import .fdf files as annotations, and if the annotation file is linked to the BibDesk entry, both the .pdf and .fdf can be easily downloaded to the tablet without needing to sync the entire Dropbox folder full of hundreds of references.

I'd like to write an applescript that does this automatically, but am very new to applescript and am having a hard time getting started. I've written the following script to be executed when "command-s" is pressed while in skim:

This essentially saves the current document while simultaneously exporting an .fdf file. Within the same script, I would like to link the .fdf file to the appropriate citation entry in BibDesk. This would involve:

  • determining the citation entry name associated with the .pdf (maybe search through entries to locate one linked with the front document)
  • check to see if the .fdf file is already linked to it
  • if not, attach .fdf file

I haven't been able to find someone who's done something similar, and really can't get past the first step. I tried writing something basic (assume citation entry is highlighted, assume .fdf file is not linked), which produces no results:

Is anyone familiar with Bibdesk applescripts able to help me with the second part of this code?

Thank you very much in advance.

0 投票
0 回答
615 浏览

php - 在 php 中使用 mysql 数据填充 PDF 表单

我有一个包含以下表单字段的pdf:

它上升到 10

我有以下代码,但我试图找出一种方法来查询表并获得 10 个结果的限制并填充这些字段。但我不知道这样做的最佳方法是什么,因为 fdf 必须有一个与表单字段关联的变量,但我需要动态分配它。有人可以帮我解决这个问题。以下是我目前拥有的代码:

0 投票
1 回答
1246 浏览

php - 如何将用户的签名从网络表单转移到 pdf 模板?

我有一个 Web 表单,它使用 HTML5 画布元素来允许用户签署他们的名字。提交表单时,所有字段值和包含用户签名的base64 字符串(例如“data:image/png;base64,blahblahetc”)都会被处理和存储。

我想用提交的数据填写我的 pdf 模板并将签名写入表单,但我正在为签名任务而苦苦挣扎。

我在研究时发现了一种技术,表明我可以使用以下方法将签名写为 pdf 按钮:

但是,我无法让它发挥作用。我不知道签名是否必须准备为 .png、.pdf 或其他格式。(我可以在服务器上成功生成一个.png,但没有尝试将它应用到.pdf,因为我不知道我是否需要它。)

我正在使用 pdftk 用动态 .fdf 文件填充我的模板 .pdf 。我需要对签名按钮进行任何特殊准备吗?我想我读过一些关于将布局设置为“仅图标”的内容。

0 投票
1 回答
1396 浏览

asp.net-mvc - PDF 提交按钮到 ActionResult 到 RedirectToAction

我遇到了提交 PDF 表单的问题,我似乎在网上找不到任何帮助,希望 stackoverflow 可以帮助我。

我有一个最终用户将下载的 PDF 表单。单击下载链接后,我将在 PDF 中动态插入一个提交按钮。附加到按钮的 URL 指向我创建的名为 ProcessSubmit 的 ActionResult。它接受 2 个参数,ID 和版本。

用户填写表单并单击提交后,我从 Request.InputStream 检索 FDF 数据并更新服务器上的 PDF 表单。

到目前为止,一切正常,花花公子。

当我想返回到我的 MVC 项目中的页面(索引,来自我运行 ProcessSubmit 的同一控制器)时,我的问题就出现了。

不同的场景会发生不同的事情:

使用 Chrome 查看 PDF:

  • 什么都没发生

使用 Adob​​e PDF 查看 PDF:

  • 打开位于 %APPDATA% (file:///C:/Users/USERNAME/AppData/Local/Temp/acrord32_sbx/A9RD9D8.htm) 的文件 - 这个文件似乎是我的登录页面的损坏版本。

我的代码:

0 投票
1 回答
151 浏览

pdf - 使用 iText 从 fdf 文件中提取组合框显示数据

我需要读取 fdf 文件以获取组合框的列表选项(通过 getListOptionDisplay),但是当我在 fdfReader 上调用 getAcroFields 方法时,字段返回为空。我使用的是旧版本(2.1.2),有什么建议或代码示例吗?

0 投票
0 回答
259 浏览

pdf - PDF 表单字段中未使用 pdf 字体

所以我使用 FDF 来自动填充 PDF 表单字段。这是FDF:

表单域使用bar1条形码字体 - IDAutomationHC39M

问题是......当我查看 PDF 时,我没有将bar1字段视为使用 IDAutomationHC39M 字体的条形码。如果我单击该bar1字段,就好像要对其进行编辑一样,则会出现条形码字体,但如果我单击该bar1字段外部,则条形码会神奇地恢复为非条形码字体。

这是 PDF(已经应用了 FDF):

http://www.frostjedi.com/terra/demo.pdf

有任何想法吗?

0 投票
1 回答
126 浏览

vba - VB6(非 .net)应用程序上的 VB6 FDFToolkit 问题

开始了一份新工作,我正在处理各种遗留应用程序 - 我遇到了一个是 VB6(不是 .net)的应用程序。它使用只能在服务器上注册的 Adob​​e 旧 FDFtoolkit(同样,不是在 fdftoolkit.net 上找到的那个)。

问题是,在过去几年的某个时候,FDF 到 PDF 转换器停止工作。我的问题,我很确定它是一个 .dll 问题 - 服务器上的 FDFTK.dll 和 FDFACX.dll 位于 Windows/SysWOW64 文件夹中。

我不知道他们的位置是否与遗留应用程序的位置不一致。当我在 Visual Basic 6(IDE)中时,它会在 Windows\system32 文件夹中查找引用。

有什么想法吗?我问是因为我没有直接访问服务器的权限,所以“猜测和检查”很多选项的速度很慢。

编辑:持有.dll的服务器也是windows server 2003(但是传递fdf的服务器是windows server 2008)

它就像一个谜题!