[gs-devel] ps2ascii
Gerold Böhler
gerold at reloc.org
Sun Sep 20 13:59:42 PDT 2009
Well i suppose my answer was a little premature :-)
This is what i try:
/usr/local/bin/gs -q -dNODISPLAY -dSAFER -dDELAYBIND -dWRITESYSTEMDICT
-dSIMPLE -f ps2ascii.ps 'file.pdf' -dFirstPage=1 -dLastPage=1
and i always get all of the text from the pdf file.
I'm using ghostscript 8.70 via macports on snow leopard
Any more hints?
Thanks,
Gerold
On Sep 20, 2009, at 9:03 PM, Gerold Böhler wrote:
> Hi Ray,
>
> thanks for the quick answer, works great.
>
> Kind regards,
>
> Gerold
>
>
> On Sep 20, 2009, at 7:52 PM, Ray Johnston wrote:
>
>> Hi Gerald,
>>
>> What you request is easily done. Ghostscript has -dFirstPage=##
>> -dLastPage=## command line options for PDF files. These options
>> should precede the -c option.
>>
>> Regards,
>> Ray
>> _______________________________________________________________
>>
>> Gerold Böhler wrote:
>>> Hi all,
>>> i am using the following command line to extract text from a pdf
>>> via ghostscript:
>>> gs -q -dNODISPLAY -dSAFER -dDELAYBIND -dWRITESYSTEMDICT -dSIMPLE -
>>> c save -f ps2ascii.ps file.pdf -c quit
>>> i stole this from ps2ascii and i call it from within a ruby script.
>>> Everything works fine, i just would like to extract the content of
>>> a single page and not the entire document.
>>> Is that possible with ghostscript?
>>> Thanks and regards,
>>> Gerold Böhler
>>> --
>>> reloc
>>> Dipl. Ing. FH Gerold Böhler
>>> Zeughausgasse 8
>>> A-6800 Feldkirch
>>> +43 699 171 96 328
>>> gerold at reloc.org
>>> http://www.reloc.org
>>> _______________________________________________
>>> gs-devel mailing list
>>> gs-devel at ghostscript.com
>>> http://www.ghostscript.com/mailman/listinfo/gs-devel
>>
>
> --
> reloc
> Dipl. Ing. FH Gerold Böhler
> Zeughausgasse 8
> A-6800 Feldkirch
>
> +43 699 171 96 328
> gerold at reloc.org
> http://www.reloc.org
>
>
>
>
>
>
--
reloc
Dipl. Ing. FH Gerold Böhler
Zeughausgasse 8
A-6800 Feldkirch
+43 699 171 96 328
gerold at reloc.org
http://www.reloc.org
More information about the gs-devel
mailing list