简体   繁体   English

PDFTK服务器产生空的pdf(El Capitan问题)

[英]PDFTK server producing empty pdfs ( El Capitan issue )

I have a Rails+Angular app (with pdf-forms gem) and one of the main features is generating pdfs for the user. 我有一个Rails + Angular应用程序(带有pdf-forms gem),主要功能之一是为用户生成pdf。 For that feature we use PDFTK server. 对于该功能,我们使用PDFTK服务器。 I was running Yosemite and it was working fine, I updated to El Capitan two days ago, and know PDFTK server generates a pdf but sometimes its empty or it does not generate it at all. 我正在运行优胜美地,并且运行良好,两天前我将其更新为El Capitan,并且知道PDFTK服务器会生成pdf,但有时它为空或根本不生成。 I can also run in the command line pdftk --version which means pdftk is installed. 我还可以在命令行pdftk --version运行,这意味着已安装pdftk。

I tried to debug it in every way I could think of, I looked at UNIX processes it creates a new processes for creating a certain pdf, I don't have any application level errors ( like in logs or something ) and I really don't know whats going on. 我试图以我能想到的所有方式对其进行调试,我查看了UNIX进程,该进程创建了用于创建特定pdf的新进程,我没有任何应用程序级错误(例如日志或其他内容),我确实没有不知道发生了什么事。

I tried reinstalling PDFTK server that also did not help. 我尝试重新安装也没有帮助的PDFTK服务器。 My best bet is that something inside of PDFTK is not running correctly. 我最好的选择是,PDFTK中的某些内容无法正常运行。

If anyone had come across similar issue I would love to hear what they know about it. 如果有人遇到过类似的问题,我很想听听他们对此事的了解。

I would recommend that you not even try solving this problem but instead use vagrant to abstract away your development machine host OS. 我建议您不要尝试解决此问题,而要使用流浪汉来抽象化您的开发机器主机OS。

Get vagrant at https://www.vagrantup.com/ and set it up with the same operating system you use on the server. https://www.vagrantup.com/上获取流浪汉,并使用与服务器上使用的相同的操作系统进行设置。

我遇到了同样的问题,并通过为OS X 10.11 El Capitan安装PDFTK服务器的特定安装程序找到了解决方案,如下所述: https ://stackoverflow.com/a/33248310/5538923

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM