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.
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 – galustik@list.ru).
Any progress on releasing this DLL? It would be reeeeally handy :-)
Hello, can you send me pdftk.dll,thanks
my email is webworkyang@yahoo.com
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 iloveyoutaiwanmb@yahoo.com.tw
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.
Many tks!
My email is bobokaminsky@libero.it
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: old_386@yahoo.de
if you use vb.net, why not directly use iTextSharp? pdftk is too old.