View Full Version : PDF2TEXT ErrorCode2 problem
BHarney
19-Oct-2006, 11:10 AM
Using BC 2.4.3, just downloaded and installed the PDF2Text plugin. I get error code 2 when trying to compare two PDFs, which, per the PDF2Text.txt file indicates a problem with the output file, the text file in this case.
When I edit the rule, under the conversion tab, run when loading is set to
PdfToText\PdfToText.exe -layout -nopgbrk %s %t
and the read only box is checked.
I'm running WinXPpro SP2.
BTW, the PDF does have searchable text, I just checked.
Chris
19-Oct-2006, 03:13 PM
Error Code 2 is a Windows error code that means a file is not found.
This can mean that the path to PdfToText.exe is not correct.
If you installed Beyond Compare into the default location, make sure you have the file located at:
"c:\program files\beyond compare 2\PdfToText\PdfToText.exe"
If the file is in the right spot and it isn't working, it might help to specify a full path instead of a relative path to PDFToText.
Try changing:
PdfToText\PdfToText.exe -layout -nopgbrk %s %t
To:
"c:\program files\beyond compare 2\PdfToText\PdfToText.exe" -layout -nopgbrk %s %t
If that still doesn't work, try running the PDFToText.exe tool outside of Beyond Compare to see if it is having a problem with your PDF file.
Use a command like:
PdfToText.exe -layout -nopgbrk source.pdf output.txt
I had the pdftotext.exe in subfolder pdf2text . not in the standard pdftotext folder, like I was told to do. My bad. Works like a champ now. Thanks for the quick reply, and again for BC, for which I'm finding new uses everyday.
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.