pdftk

How do I completely remove (all versions of) pdftk server from Mac OS X?

孤街醉人 提交于 2019-12-04 04:05:54
问题 I am having trouble with pdftk on my Mac OS X 10.11 and want to remove all traces of it from my system before attempting to make a new install with the newest package 2.02 (available here on StackOverflow) which I already installed. I suspect there might be more than one version in my system. When I try pdftk --version the system gives an error: dyld: Symbol not found: __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev Referenced from: /usr/local/bin/pdftk Expected in: /usr/local/bin/

Statically compile pdftk for Heroku. Need to split PDF into single page files

半城伤御伤魂 提交于 2019-12-03 12:53:48
So we're using heroku to host our rails application. We've moved to the cedar stack. This stack does not have the pdftk library installed. I contacted support and was told to statically compile it for amd64 ubuntu and include it in my application. This has proved more difficult than I thought. Initially I downloaded the package for ubuntu ( http://packages.ubuntu.com/natty/pdftk ), extracted it, and included the binary file as well as the shared libraries. I'm getting strange errors like: Unhandled Java Exception: java.lang.NullPointerException at com.lowagie.text.pdf.PdfCopy.copyIndirect

Adding an image to a pdf with pdftk

无人久伴 提交于 2019-12-03 07:25:17
问题 Hello I am using pdftk to generate a PDF based on a form that is submitted. I have everything working fine until here. Which is adding an image of a signature. I am using signature pad which works great to generate the image file of the signature. Now i am trying to add that signature image to the PDF? Does anyone know if this is even possible to do with pdftk? i don't see the option to do that. Or if its even possible to attach to the image to a form filed that i have in the PDF? 回答1: First

Add margin to PDF file when merging using PDFTK or similar

大憨熊 提交于 2019-12-03 03:00:39
I have a large collection of half-page sized PDF cut-sheets that are held in a folder on my Linux server. A user to the site will want to create a booklet from a subset of these. The booklet will be bound therefore the even pages of the collection will want more margin on the right side and the odd pages will want more margin on the left side. There can be up to 200 pages in a collection out of a universe of 500 pages so I don't want to regenerate each page to set the margin of it. It would take too much of the servers time to run the content through the DOMPDF. Just building the document

How to install pdftk on Mac OS X [closed]

北慕城南 提交于 2019-12-03 00:45:55
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I want to install pdftk with MacPorts, but this command does not work: sudo apt-get install pdftk Is it possible to install it on a Mac? My system specifications are: Processor: 2.5 GHz Intel Core i5 Memory: 8 GB 1600 MHz DDR3 Graphics: Intel HD Graphics 4000 768 MB 回答1: You can use the official installer from

Convert HTML form data into a PDF file using PHP

不羁的心 提交于 2019-12-02 21:10:40
I have been looking and testing this for a couple days now and was wondering if anyone could point me in a different direction. I have a very long job application HTML form (jobapp.html) and a matching PDF (jobpdf.pdf) that have the same field names for all entries in both the HTML form and the PDF. I need to take the user data that is entered in the form and convert it to a PDF. This is what I have gathered so far but don't know if I am on track: Is pdftk the only viable 3rd party app to accomplish this? Using pdftk would i take the $_POST data collected for the user and generate a .fdf(user

Adding an image to a pdf with pdftk

北城余情 提交于 2019-12-02 21:02:04
Hello I am using pdftk to generate a PDF based on a form that is submitted. I have everything working fine until here. Which is adding an image of a signature. I am using signature pad which works great to generate the image file of the signature. Now i am trying to add that signature image to the PDF? Does anyone know if this is even possible to do with pdftk? i don't see the option to do that. Or if its even possible to attach to the image to a form filed that i have in the PDF? First convert the image to PDF convert image.png image.pdf Then scale up and offset the image using pdfjam

How to add pdftk to Heroku Cedar app?

柔情痞子 提交于 2019-12-02 18:33:23
I need to merge multiple PDF files into one in my Heroku Cedar Rails app, and have settled upon using pdftk to do this. I'm lost as to how to do this. I think the best approach would be to create a custom buildpack that includes a compiled binary for pdftk but I can't quite figure out how to get Vulcan to do this. Is there a way to do this without Vulcan? Is there a pre-existing ruby buildpack that includes pdftk that I can use? I've got this working now, and a publicly available version of a custom Heroku Ruby buildpack with pdftk is here: https://github.com/millie/heroku-buildpack-ruby-pdftk

How to install pdftk on Mac OS X [closed]

雨燕双飞 提交于 2019-12-02 14:16:47
I want to install pdftk with MacPorts, but this command does not work: sudo apt-get install pdftk Is it possible to install it on a Mac? My system specifications are: Processor: 2.5 GHz Intel Core i5 Memory: 8 GB 1600 MHz DDR3 Graphics: Intel HD Graphics 4000 768 MB bdesham You can use the official installer from PDF Labs. Edit: It’s now available through homebrew-cask too. If you have that installed, you can just run brew cask install pdftk to install pdftk. There is no longer a Cask package available , so you will have to defer to the original solution or follow this workaround From

Reading PDF plots, arranging them on a grid, save in one-page PDF using R

本秂侑毒 提交于 2019-12-02 11:22:34
问题 I have 3 R plots saved as pdf files ( upper_left.pdf , upper_right.pdf , lower.pdf ) as vector graphic and want to make a one-page pdf file and arrange them on it as follows: What I have tried already I have tried reading the pdf's using magick::image_read_pdf and appending them using magick::image_append . More specifically, library(magick) panel.ul <- image_read_pdf("upper_left.pdf") panel.ur <- image_read_pdf("upper_right.pdf") panel.l <- image_read_pdf("lower.pdf") whole <- c(panel.ul,