|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
ps2asciiHi 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@... http://www.reloc.org _______________________________________________ gs-devel mailing list gs-devel@... http://www.ghostscript.com/mailman/listinfo/gs-devel |
|
|
Re: ps2asciiHi 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@... > http://www.reloc.org > > > > > > > _______________________________________________ > gs-devel mailing list > gs-devel@... > http://www.ghostscript.com/mailman/listinfo/gs-devel > _______________________________________________ gs-devel mailing list gs-devel@... http://www.ghostscript.com/mailman/listinfo/gs-devel |
|
|
Re: ps2asciiHi 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@... >> http://www.reloc.org >> _______________________________________________ >> gs-devel mailing list >> gs-devel@... >> 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@... http://www.reloc.org _______________________________________________ gs-devel mailing list gs-devel@... http://www.ghostscript.com/mailman/listinfo/gs-devel |
|
|
Re: ps2asciiWell 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@... >>> http://www.reloc.org >>> _______________________________________________ >>> gs-devel mailing list >>> gs-devel@... >>> 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@... > http://www.reloc.org > > > > > > -- reloc Dipl. Ing. FH Gerold Böhler Zeughausgasse 8 A-6800 Feldkirch +43 699 171 96 328 gerold@... http://www.reloc.org _______________________________________________ gs-devel mailing list gs-devel@... http://www.ghostscript.com/mailman/listinfo/gs-devel |
| Free embeddable forum powered by Nabble | Forum Help |