pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maruan Sahyoun <sahy...@fileaffairs.de>
Subject Re: Shell Can't Find pdfbox
Date Sun, 08 Nov 2015 15:31:46 GMT
@Timan
> Am 08.11.2015 um 15:38 schrieb Tilman Hausherr <THausherr@t-online.de>:
> 
> Am 08.11.2015 um 15:14 schrieb Jonathan Levi:
>> The documentation is at https://pdfbox.apache.org/1.8/commandline.html. All I see
is the suggested command line format, i.e., for the Decrypt command:
>> 
>> usage: java -jar pdfbox-app-x.y.z.jar Decrypt [OPTIONS] <inputfile> [outputfile]
> 
> The parameter for "-jar" is a file. So if the file argument has no path, it will be taken
from the local directory. Sorry, but you're kindof arguing about a non-issue. People download
the jar file somewhere, and then they run it from that directory.
> 
> A .jar file is not an executable. It is a zipped file with is an input for the java interpreter
/ compiler.
> 
> 
> @Maruan: what's this?
> https://pdfbox.apache.org/1.8/commandline.html
> 
> 
>   PDFSplit ## {#pdfSplit}

an error I just now fixed

Maruan

> 
> 
> 
> Tilman
> 
>> 
>>  
>>  As for theStackoverflow article: I copied the pdfbox JAR into ~/Library/Java/Extensions,
restarted the computer, and verified:
>> 
>> jonathan$ ls ~/Library/Java/Extensions
>> pdfbox-app-1.8.10.jar
>> 
>> I then attempted to run the pdfbox JAR using the -classpath option:
>> 
>> jonathan$ java -classpath ~/Library/Java/Extensions/pdfbox-app-1.8.10.jar \
>>> -jar pdfbox-app-1.8.10.jar ExtractText afile.pdf afile.txt; cat afile.txt
>> Error: Unable to access jarfile pdfbox-app-1.8.10.jar
>> cat: afile.txt: No such file or directory
>> 
>> Finally, I ran the pdfbox JAR using its full path:
>> 
>> jonathan$ java -jar ~/Library/Java/Extensions/pdfbox-app-1.8.10.jar \
>>> ExtractText afile.pdf afile.txt; cat afile.txt
>> (Text)
>> 
>> 
>>  
>> -----Original Message-----
>> From: Tres Finocchiaro <tres.finocchiaro@gmail.com>
>> To: users <users@pdfbox.apache.org>
>> Sent: Sat, Nov 7, 2015 9:33 pm
>> Subject: Re: Shell Can't Find pdfbox
>> 
>> 
>>> [...] it appears to be a different method than what the Apache
>> PDFBox
>> documentation specifies
>> 
>> Can you please provide a link to the
>> incorrect documentation?
>> 
>> No Java I've used recommends putting JAR files in a
>> UNIX PATH search
>> location.  The only possible thing I can think of is a wrapper
>> script
>> someone created as a helper.
>> 
>> When I search the Internet for "pdfbox
>> /usr/local/bin/", the archive of
>> this email is the only documentation I can
>> find on the matter -- minus a
>> mention of a /usr/local/bin/pdfbox wrapper script
>> which I can't find the
>> source for (suspected brew/tap/macport type culprit, but
>> no hits).
>> 
>> When I look through the PDFBOX command line tutorial I can't find
>> mention
>> of /usr/local/bin either.
>> 
>> Here is a good stackoverflow article
>> discussing where to put JAR files in
>> general and in which scenarios you should
>> and shouldn't use the
>> classpath
>> suggestions:
>> 
>> http://stackoverflow.com/questions/12842063/where-to-install-jar-files-on-os-x-so-other-java-applications-will-find-them
>> 
>>  
>> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message