Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

pdftotext pass options

by welle (Beadle)
on May 22, 2013 at 17:02 UTC ( #1034789=perlquestion: print w/replies, xml ) Need Help??
welle has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks

On a Windows machine I am using pdftotext to bunch convert pdf files into plain text. Using the following, I get no problems:

system("$path/pdftotext","-nopgbrk","$path_my_pdf","$path_my_pdf.txt") +;

I now want to add the encoding option "-enc UTF-8", so I try

system("$path/pdftotext","-enc UTF-8 -nopgbrk","$path_my_pdf","$path_m +y_pdf.txt"); or simply system("$path/pdftotext","-enc UTF-8","$path_my_pdf","$path_my_pdf.txt +");

but it doesn't work. What am I missing? Thanks

SOLVED

system("$path/pdftotext","-enc", "UTF-8","$path_my_pdf","$path_my_pdf. +txt");

Replies are listed 'Best First'.
Re: pdftotext pass options
by Not_a_Number (Parson) on May 22, 2013 at 18:06 UTC

    According to the pdftotext man page, -enc defaults to "UTF-8" anyway.

    So maybe you don't need to bother?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1034789]
Approved by Happy-the-monk
help
Chatterbox?
[PriNet]: quick question... anyone know how to remove all the existing keys in a %hash ? i've tried several options, but when i re-use the hash, some of the "upper" keys that i don't re-use stick and i can't get them to "remove"

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2017-06-28 02:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (619 votes). Check out past polls.