You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Leleu Eric <er...@gmail.com> on 2012/10/02 21:15:55 UTC
Re: Split single page from PDF
Hi,
When you run the app jar without parameters, you have the following output
usage: java pdfbox-app-x.y.z.jar <command> <args..>
You have forgotten the <command>, that is PDFSplit in you case.
java -jar pdfbox-app-1.7.1.jar PDFSplit -split 1 -startPage
1 -endPage 2 ~/apdffile.pdf
BR,
Eric
2012/10/2 Marcos Martínez <ma...@yahoo.es>
> Hello
>
> First of all, thank you very much for develop such useful program.
>
> I'm a Mac user, with Mountain Lion OS X. I just downloaded the file
> PDFBox-app-1.7.1.jar (the standalone version).
> Usually you can run jar files using the terminal with the following syntax:
>
> java - jar appname.jar
>
> When running this command I get a message from Pdfbox indicating the usage
> and syntax. I want to split a PDF file in order to create a new single PDF
> file with the first page of the original file. According to the
> instructions and the examples in the website, I wrote:
>
> java -jar PDFBox-app-1.7.1.jar -split 1 -startPage 1 -endPage 2
> filename.pdf
>
> But I only get again and again the message describing the usage for
> PDFBox. No action is performed.
>
> What's the problem?
>
> Thank you in advance!
>
> iMarcos
> 2012
Re: Split single page from PDF
Posted by Marcos Martínez <ma...@yahoo.es>.
Oh...
Thank you very much!
iMarcos
2012
El 02/10/2012, a las 21:15, Leleu Eric <er...@gmail.com> escribió:
> Hi,
>
> When you run the app jar without parameters, you have the following output
>
> usage: java pdfbox-app-x.y.z.jar <command> <args..>
>
> You have forgotten the <command>, that is PDFSplit in you case.
>
> java -jar pdfbox-app-1.7.1.jar PDFSplit -split 1 -startPage
> 1 -endPage 2 ~/apdffile.pdf
>
> BR,
> Eric
>
> 2012/10/2 Marcos Martínez <ma...@yahoo.es>
>
>> Hello
>>
>> First of all, thank you very much for develop such useful program.
>>
>> I'm a Mac user, with Mountain Lion OS X. I just downloaded the file
>> PDFBox-app-1.7.1.jar (the standalone version).
>> Usually you can run jar files using the terminal with the following syntax:
>>
>> java - jar appname.jar
>>
>> When running this command I get a message from Pdfbox indicating the usage
>> and syntax. I want to split a PDF file in order to create a new single PDF
>> file with the first page of the original file. According to the
>> instructions and the examples in the website, I wrote:
>>
>> java -jar PDFBox-app-1.7.1.jar -split 1 -startPage 1 -endPage 2
>> filename.pdf
>>
>> But I only get again and again the message describing the usage for
>> PDFBox. No action is performed.
>>
>> What's the problem?
>>
>> Thank you in advance!
>>
>> iMarcos
>> 2012