Pdftk Error Failed To Open Form Data File
Contents |
Date: Fri, 17 Jun 2011 08:00:02 UTC Severity: normal Tags: upstream Fixed in version pdftk/1.44-3 Done: Johann Felix Soden
Pdftk Failed To Open Pdf File
made. Toggle useless messagesView this report as an mbox folder, status mbox, maintainer pdftk unable to find file mbox Report forwarded to debian-bugs-dist@lists.debian.org, sid.steward@pdflabs.com, andreas@an3as.eu, Johann Felix Soden
Pdftk Verbose
GMT) Full text and rfc822 format available. Acknowledgement sent to Karsten Hilbert
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more
Pdftk Hangs
about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask install pdftk mac Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign
Pdftk Server
up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top PDFTK: unable to open file for output up vote 0 down vote favorite 1 I https://bugs.debian.org/630767 am making use of PDFTK to watermark PDF files using the following command: pdftk /tmp/55180af7c8c88.pdf stamp /tmp/stamp55180af7c95b84.58412952.pdf output /tmp/55180af7c95c81.06110501.pdf However the above results in: Error: Failed to open output file: /tmp/55180af7c95c81.06110501.pdf No output created. Error: unable to open file for output: /tmp/55180af7c95c81.06110501.pdf The above is a strange error because PDFTK should be creating that output file! If I put sudo infront of the command, no error is thrown. But I am writing to the tmp folder and this is http://serverfault.com/questions/679095/pdftk-unable-to-open-file-for-output writeable by all I thought? I am running PDFTK from PHP's exec command. To be 100% sure that this isn't a permissions issue, I made the /tmp folder owner and group to be www-data, which is the apache user but the same error is thrown. I now have no idea what is going on, I appreciate any help! permissions tmp share|improve this question asked Mar 29 '15 at 14:30 Abs 2853624 1 What is output of this command, please, ls -ld /tmp /tmp/55180af7c95c81.06110501.pdf –roaima Mar 29 '15 at 19:18 add a comment| 2 Answers 2 active oldest votes up vote 0 down vote You should not be fiddling around with the permissions for /tmp. It's an important part of the system. I suspect that the reason your pdftk command is failing is because /tmp is incorrectly set up. To restore the permissions on tmp run the following commands as root: chown root:root /tmp chmod 1777 /tmp The result will leave the permissions and owner/group of /tmp looking like this: ls -ld /tmp drwxrwxrwt 6 root root 12288 Mar 29 18:05 /tmp Based on further investigation, I suspect that now we have got /tmp sorted out, the reason that the pdftk is failing is that the output file already exists but is not writeable by the application. (Awaiting update via comments.) share|improve this answer edited Mar 29 '15 at 19:21 answered Mar
Sign in Pricing Blog Support Search GitHub This repository Watch 11 Star 139 Fork 47 jkraemer/pdf-forms Code Issues 3 Pull requests 0 Projects 0 Pulse Graphs New issue PDFTK Fill form not https://github.com/jkraemer/pdf-forms/issues/30 working - PDFTK (2.02) Mac OS (10.11.4) & Cent OS 7 #30 Closed bhushangahire opened this Issue Jul 29, 2015 · 22 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 8 participants bhushangahire commented Jul 29, 2015 Is there any issues with PDF form or I am doing something wrong? I am using Mac on El Capitan PdfForms::PdftkError - failed to failed to fill form with command "/usr/local/bin/pdftk" "/Users/bahire/Documents/NetbeansProjects/onboarding/lib/pdf_templates/IBC Resale Certificates.pdf" fill_form "/var/folders/7w/b15y7t8j6010_x6hkw53h93mzjc4qr/T/pdf_forms-fdf20150729-65729-13927kb" output "/Users/bahire/Documents/NetbeansProjects/onboarding/tmp/pdfs/IBC Resale Certificates_filled.pdf" flatten 2>&1 command output was: failing form data has been saved to /var/folders/7w/b15y7t8j6010_x6hkw53h93mzjc4qr/T/20150729162322.fdf: Owner jkraemer commented Jul 30, 2015 To diagnose this, could you take the generated fdf file (from the 'failing form data has been saved to' line) and make sure it isn't empty try to fill your form directly calling pdftk failed to open on the command line: /usr/local/bin/pdftk path_to_your_form.pdf fill_form path_to_form_data.fdf output result.pdf bl1nk commented Aug 27, 2015 Running into the same problem now. The generated .fdf has all field data I wanted to fill, form filling just does not happen. Appending verbose to the command also does not print any output, the process is stuck doing nothing. I'm running pdftk 2.02 on OS X 10.11 Beta (15A262e) Owner jkraemer commented Aug 27, 2015 Does that mean even the command line from my comment above does not fill the form? I have just tried and on Yosemite with pdftk 2.02 it works like a charm. So might be a pdftk/OSX beta issue. One other thing to try would be using XFDF instead of FDF - for that to happen pass data_format: 'Xfdf' to the initializer. aadamsx commented Sep 8, 2015 I've been doing form fills with pdftk for a while now, and prior to 10.11 beta everything was fine. Once I installed the beta I can't execute anything from command line (or in my application -- it just hangs. There's an issue with the beta. I've filed a issue but no response from Apple. I can run the same commands from my windows box and everythin