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:
Are your PDFStamp Command Line and PDF to Text support Windows 7 system?
PDF to Text Converter can’t align text lines
Convert PDF to text using advanced OCR technology
PDF to Word SDK, PDF to DOC SDK, PDF to DOCX SDK, PDF to RTF SDK, Open PDF in MS Word, Royalty Free ...
PDF to Excel Converter and OCR to Any Converter are two simple-to-use utilities which can extract ta...
File not Found PDF2Txt.dll problem with PDF to Text Converter SDK product
VeryPDF Text and Image Extraction Toolkit is a developer product for reliably extracting text, image...
How to Integrate PDF to TXT COM/SDK with Embacadero Delphi on Windows 10 & 11 (64-Bit)