Tag Info

New answers tagged

1

curl seems to handle redirects differently from wget by default. The direct download URL will involve some redirects and it also requires the HTTP referer header to be set correctly after the first redirect (otherwise, you will get a HTML page). First, you need to enable location redirects in curl with -L, and then enable curl's automatic handling of the ...


0

I managed to get this fine wget -O main.pdf "http://ac.els-cdn.com/S0378426612000817/1-s2.0-S0378426612000817-main.pdf?_tid=5eb365f4-ea5e-11e4-b707-00000aacb360&acdnat=1429865356_af9bf791080efa05beb6e88a2c82b41b"


0

You should quote the URL: curl -o test.pdf 'http://ac.els-cdn.com/S0378426612000817/1-s2.0-S0378426612000817-main.pdf?_tid=f9832c96-ea5d-11e4-a289-00000aacb361&acdnat=1429865186_dff0f37b2151255adf02f22e3dd546ea' otherwise the shell interprets the URL before it reaches curl.


2

enscript just does not support Unicode. You need to use a different tool such as paps to convert text to PostScript. With --header option an output .pdf is similar to one produced with enscript: $ paps text --header | ps2pdf - outheader.pdf


0

cd to your folder containing your pdf-file and then.. pdfgrep 'pattern' your.pdf or if you want to search in more than just one pdf-file (e.g. in all pdf-files in your folder) pdfgrep 'pattern' `ls *.pdf` or pdfgrep 'pattern' $(ls *.pdf)


4

One possible approach is to install unoconv (if not already installed) and unoconv file.odt Please see man unoconv for details unoconv is a command line utility that can convert any file format that LibreOffice can import, to any file format that LibreOffice is capable of exporting. unoconv uses the LibreOffice’s UNO bindings for ...


3

That is unlikely going to work, as the suggestion in the comment is both incomplete (you cannot just specify some directory) and incorrect (--env:... should be -env:... Here is what I recommend you do: Stop all instances of libreoffice Start libreoffice from the commandline without specifying --headless: libreoffice ...


0

Recent versions of ghostscript include a pcl interpreter which is a page description language as is postscript. Microsoft also has a couple page description languages. Interpreters for these languages may be available. If the printer is well known It may be possible to emulate it (specifically all daisy wheel printers are very easy to emulate and less will ...


0

Recent versions of ghostscript include a pcl interpreter, and can work with the full range of ghostscript output formats including pdf, ps, image formats like Tiff and Jpeg, and all their known printers. You may need to compile from source. I have no Idea if this will work directly with your printer or if additional intermediate steps would be needed. As a ...


2

This is a problem that seemed to have been reported around 2007 and resurfaced (or else I used an older version of the library for a long time that did not have this problem). The thing you can do is post-process the output file (assuming your sed has the -i option): tiff2pdf -j input.tif -o out.pdf sed -i 's|/DecodeParms << /ColorTransform 0 ...



Top 50 recent answers are included