Pdftk.dll-Dynamic link library Version pdftk
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,
program pas;
{$APPTYPE CONSOLE}
//uses
// SysUtils;
function Convert(argc : integer; argv : Array of string): Integer; stdcall; external 'pdftk.dll' name '_Z7ConvertiPPc@8';
var s: Array of string;
i,size:Integer;
begin
size :=System.ParamCount;
SetLength(s,size);
for i:=0 to size-1 do
s[i]:= ParamStr(i+1);
Convert(size,s);
end.
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.
December 11th, 2008 12:37
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.
February 18th, 2009 19:16
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 – galustik@list.ru).
December 17th, 2009 20:21
Any progress on releasing this DLL? It would be reeeeally handy :-)
December 18th, 2009 13:31
Hello, can you send me pdftk.dll,thanks
my email is webworkyang@yahoo.com