Menu
  • HOME
  • TAGS

ITextSharp/Pdftk: place Base64 Image from Web on PDF as Pseude-Signature

c#,itextsharp,pdftk

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) {...

Modify existing PDF to add “Page N of NNN” footer

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)....

[Steganography ]Hiding Data in PDF files

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...

Executing “pdftk my-pdf-form.pdf dump_data_fields” shows nothing

pdftk

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.

Merging PDF files with similar names using PDFTK and a bash script

linux,bash,pdf,merge,pdftk

Try this: find . -type f -iname "[0-9][0-9][0-9][0-9][0-9]*.pdf" -printf "%.5f\n" | sort -u | while read -r file; do echo pdftk ${file}*.pdf cat output $file.pdf; done If output is okay, remove echo....

Overlaying two PDFs using PDFtk - stamp gets cropped

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...

Get full error from PDFTK when using PHP exec

php,pdftk

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,...

PDFTK not working to fill out pdf form created in livecycle

php,livecycle,pdftk,xfa

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...

Getting PDFTK installed on heroku Cedar Stack for use in my app

heroku,pdftk,buildpack

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.

Parsing a colon-separated string into JSON in Node/Javascript

javascript,json,pdftk

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\...

PDFTK and PHP exec

php,shell,command,pdftk

Nevermind, figured it out. Using dirname and FILE fixed my problem.

How to tell what version of `pdftk` you're running?

pdftk

On my WinXP (and Ubuntu) pdftk --version works just fine. e.g. Ubuntu