Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am sure this is a very stupid question...but maybe I'm missing something. I use pdftotext.exe to convert PDF files to plain text. I pass the content of the PDF to a variable. I call the PDF converter from within a script
open (FILE, "$installation_folder/bin/pdftotext $path_to_PDF/$file_id +- |"); my $text = do { local($/); <FILE> };
This works pretty well. Now I compile my script into an exe. If a select the option Hide Console (as the script is part of a small GUI, and I don't want the console to be shown), the variable $text remains empty. (If I compile the script without hiding the console, everything is fine). What can I do? Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hiding console
by kcott (Archbishop) on Feb 28, 2014 at 13:01 UTC | |
by Anonymous Monk on Feb 28, 2014 at 13:05 UTC | |
by kcott (Archbishop) on Feb 28, 2014 at 13:15 UTC | |
|
Re: hiding console
by rminner (Chaplain) on Feb 28, 2014 at 14:52 UTC | |
|
Re: hiding console
by Anonymous Monk on Feb 28, 2014 at 16:41 UTC |