After some modification, I compiled pdftk to Dynamic link library Version, pdftk.dll, and wote a delphi example to show how to use this DLL, here is the delphi example,
function Convert(argc : integer; argv : Array of string): Integer; stdcall; external 'pdftk.dll' name '_Z7ConvertiPPc@8';
var s: Array of string;
for i:=0 to size-1 do
the point of this example is Convert function, and the usage of Convert function is as same as the main method of pdftk.cc, so we can easily implement some new methods, such as encrypt40, encrypt128, decrypt, compress, uncompress, flatten, cat(merge), attach_files, unpack_files, burst/split, fill_form Add_background, Add_stamp, generate_fdf, dump_data, dump_data_fields, update_info, and so on.
so the pdftk.dll has the following features,
- Encrypt PDF with 48-bit and 128-bit support, of course, I can also implement AES support.
- Decrypt PDF
- Compress PDF
- UnCompress PDF
- Flatten PDF
- Cat PDF/Merge PDF, AKA, PDF Cat/PDF Merge
- Attach file to PDF
- Extract attachment from PDF
- Burst/Split PDF, AKA, PDF Split
- Fill PDF Form
- Add background to PDF
- Add stamp to PDF
- Generate FDF from PDF
- Dump data
- Dump data fields
- Update PDF Info
- Get PDF Info
- Repair PDF
- Rotate PDF
and if needed, I can also write a VB module to show how to use the pdftk.dll.
Any way, I still have no plan to release the pdftk.dll, because of some issues.
9 thoughts on “Pdftk.dll-Dynamic link library Version pdftk”
I’m interested in the testing your DLL version of PDFTK, and the VB wrapper/module also interests me. Do you have any plans on a release yet? Thanks in advance for any information.
Hello, excuse me for disturbing, but would you please be so kind to write down where pdftk.dll file can be found (downloaded) as I need to use it in VB or send it by mail (if possible, please – email@example.com).
Any progress on releasing this DLL? It would be reeeeally handy :-)
Hello, can you send me pdftk.dll,thanks
my email is firstname.lastname@example.org
Hello, could you please send me pdftk.dll and the sample application? I’m using pdftk to split PDF files, but want to use function calls instead of calling external programs. Many tks!
my email is iloveyoutaiwanmb@
Hello, could you please send me pdftk.dll and the sample application? Iâ€™m using pdftk to split PDF files, but want to use function calls instead of calling external programs. Many tks!
My email is email@example.com
Hello, could you please send me pdftk.dll and the VB6 sample code? Iâ€™m using pdftk, but want to use function calls instead of calling external programs.
My email is firstname.lastname@example.org
Hello, I have the same wish,
could you please send me pdftk.dll and same vb.net sample code? Iâ€™m using pdftk, but .net apps dont want to call a exe (pdftk.exe) from my own exe…
Thanks a lot.
My E-Mail: email@example.com
if you use vb.net, why not directly use iTextSharp? pdftk is too old.