We've been using the pdf2txt.dll in our program that was build using Delphi6. We are now upgrading our programming environment to Delphi2010.
In Delphi2010 it doesn’t work anymore. I don’t get any errors but the Pdf2TxtEx function doesn’t create an output text file anymore. Only file created is file named ‘C’ (no extension) that when opened in notepad shows the text that we are using a trial version. But we do use the PDF2TXTSetLicenseCode function with a license key (which works in Delpdi 6).
Is it possible to use pdf2txt in Delphi2010? How can I accomplish that?
========================
Maybe your Delphi2010 is using Unicode, please change the compile type from Unicode to ANSI to try again, you will get it work with ANSI compile type.
VeryPDF
========================
Our Delphi 2010 environment is using Unicode, that was the intention. After some trying I found the way to get it to work.
This works in our case:
//declaration
procedure PDF2TXTSetLicenseCode(lpRegCode: PAnsiChar); stdcall; external 'pdf2txt.dll' name 'PDF2TXTSetLicenseCode';
//implementation
PDF2TXTSetLicenseCode(PAnsiChar(AnsiString('yourlicensecode'));
======================
This is a great solution, your great solution will helpful for our other customers in the future, thank you again.
========================
Our Delphi 2010 environment is using Unicode, that was the intention. After some trying I found the way to get it to work.
This works in our case:
//declaration
procedure PDF2TXTSetLicenseCode(lpRegCode: PAnsiChar); stdcall; external 'pdf2txt.dll' name 'PDF2TXTSetLicenseCode';
//implementation
PDF2TXTSetLicenseCode(PAnsiChar(AnsiString('yourlicensecode'));
======================
This is a great solution, your great solution will helpful for our other customers in the future, thank you again.
Related Posts
Related posts:
PDF file is not searchable
Issue running pdf extractor as scheduled task
Why pdf2txtocr.dll has stopped working?
Upload PDF and Convert PDF to text online from PHP
PDF to Word SDK, PDF to DOC SDK, PDF to DOCX SDK, PDF to RTF SDK, Open PDF in MS Word, Royalty Free ...
How to convert from PDF to text in memory completely?
How can I convert from EMF and WMF files to Text files? I want extract text contents from thousands ...
How to get key value pairs from fillable PDF files?