As @mkl mentioned the question is a confusing, especially the title - usually base64 and signature do not go together. Guessing you want to place a base64 image from web on the PDF as a pseudo signature?!?! A quick working example to get you started: static void Main(string[] args) {...
pdf,printing,ghostscript,postscript,pdftk
If you want to do this with the help of pdftk, you can do it using either the multistamp or the multibackground operation. But first you'll have to prepare a document (with the software of your choice) which creates the Page X of Y footers on empty pages (as PDF)....
pdf,pdftk,steganography,data-hiding
You cannot modify a PDF file in a text editor and expect the file to be still compliant in general. PDF is a binary format and you need to read the PDF specification to figure out how to modify it. That said, there are heaps of places where you can...
The problem was that the pdf was created by Adobe LiveCycle Designer and was save as "Adobe Dynamic XML From". The solution is saving the file as "Adobe Static PDF Form". Possibly pdftk cannot deal with that livecycle files.
pdf,merge,overlay,ghostscript,pdftk
The tools you are using are not the best you could choose. They are giving you false information. I have opened your three files in iText RUPS, and this is what I see: From left to right, we see: bg.pdf with a MediaBox with value [0 0 419.2 594.4] and...
You are probably looking to get messages from stderr using proc_open. Something like this: <?php $cmd = "/path/to/script arguments here"; $cwd = dirname(__FILE__); $descriptorspec = array( 0 => array("pipe", "r"), // stdin 1 => array("pipe", "w"), // stdout 2 => array("pipe", "w"), // stderr ); if ( ($process = proc_open($cmd,...
There are two flavors of interactive forms in PDF: AcroForm technology: in this case the form is defined using PDF syntax. All fields have fixed coordinates. They can't change dynamically. If data doesn't fit, fields don't grow. If there's less data then there is space, fields don't shrink. Forms like...
SOLUTION: Was missing setting LD_LIBRARY_PATH in my config vars on heroku, because pdftk relies on a library file. Also, remember to tar the tar.gz to the root directory and set a PATH to /bin/pdftk. Just check out #heroku on IRC, that's where I got my answer.
Use split repeatedly to break it down into its components: var input = '---\n\ FieldType: Text\n\ FieldName: topmostSubform[0].Page1[0].p1-t17[0]\n\ FieldFlags: 8388608\n\ FieldValue:\n\ FieldJustification: Center\n\ FieldMaxLength: 10\n\ ---\n\ FieldType: Text\n\ FieldName: topmostSubform[0].Page1[0].p1-t20[0]\n\ FieldFlags: 8388608\n\ FieldValue:\n\ FieldJustification: Center\n\ FieldMaxLength: 10\n\ ---\n\ FieldType: Button\n\ FieldName: topmostSubform[0].Page1[0].p1-cb7[0]\n\ FieldFlags: 0\n\ FieldValue:\n\ FieldJustification: Left\n\...
Nevermind, figured it out. Using dirname and FILE fixed my problem.
On my WinXP (and Ubuntu) pdftk --version works just fine. e.g. Ubuntu