| <<<Back 1 day (to 2018/02/19) | 20180220 |
backtrack_ | hi | 00:44.51 |
ghostbot | Welcome to #ghostscript. If you have a question, please ask it, don't ask to ask it. Do be prepared to wait for a reply as devs will check the logs and reply when they come on line. If you are looking for help or infomation about MuPDF, try the new #mupdf channel. | 00:44.51 |
backtrack_ | to print images into a pdf | 00:44.58 |
| i need to use the image viewer software? | 00:45.09 |
kens | backtrack_ I don't understnad your question. | 08:02.11 |
deekej | hello chrisl, could you please merge this pull-request once you have a moment? :) | 12:27.46 |
| https://github.com/ArtifexSoftware/urw-base35-fonts/pull/20 | 12:27.46 |
| thanks | 12:27.48 |
chrisl | deekej: donre | 12:28.51 |
| Or even "done! | 12:28.56 |
| <sigh> | 12:29.01 |
deekej | ^_^ | 12:29.06 |
backtrack_ | kens, i need to make a pdf from some jpg | 13:36.10 |
| the only way i found is to open images, then print it to pdf printer | 13:36.33 |
| is the only way? | 13:36.37 |
Robin_Watts | backtrack_: You can do it using ghostscript directly. | 13:57.29 |
| On windows, presumably? | 13:57.46 |
kens | Yeah in the 'lib' directory of the Ghostscript installation, use viewjpeg.ps and the pdfwrite device. viewjpeg.ps will read a JPEG file and the pdfwrite device creates PDF files from whatever input its supplied with. Don't know what happens about media sizes, you may have to set that yourself | 14:01.58 |
Robin_Watts | I've been trying: gswin32c.exe -o out.pdf -sDEVICE=pdfwrite -r<whatever resolution you want> -- lib/viewjpeg.ps -c "(input.jpg) viewJPEG" | 14:02.35 |
| but that's not working... what am I doing wrong? | 14:02.45 |
kens | Dunno, give me a minute | 14:02.51 |
kens | hunts up a jpeg | 14:02.57 |
Robin_Watts | gswin32c.exe -o out.pdf -sDEVICE=pdfwrite -r<whatever resolution you want> -- lib/viewjpeg.ps -c "(input.jpg) viewJPEG showpage" | 14:03.08 |
| That worked. | 14:03.11 |
kens | Oh so it wants a showpage ? weird. | 14:03.24 |
Robin_Watts | no, I lie, that didn't work either :( | 14:03.57 |
kens | OK one second | 14:04.04 |
| Oh -r has no real effect on pdfwrite by the way | 14:05.11 |
Robin_Watts | gswin32c.exe -sDEVICE=pdfwrite -o out.pdf lib/viewjpeg.ps -c "(image.jpg) << /PageSize 2 index viewJPEGgetsize 2 array astore >> setpagedevice viewJPEG" | 14:06.19 |
kens | gswin32 -sDEVICE=pdfwrite -sOutputFile=out.pdf \ghostpdl\lib\viewjpeg.ps -c "(D:/temp/out.jpg) viewJPEG showpage" -f | 14:07.27 |
| That worked for me | 14:07.31 |
Robin_Watts | My invocation came from the end of viewjpeg.ps, and sets the sizes etc :) | 14:07.57 |
kens | Yeah I know, but mine is easier for a quick test | 14:08.07 |
| Seems the JPEG is scaled to the media size, my default is Letter | 14:08.30 |
backtrack_ | kens, the softwae i use is called PDFCreator | 15:07.44 |
kens | Not anything from us. If you check back above there is a suggested route to use Ghostscript to produce PDF files directly from an image. | 15:08.22 |
| If you use the next release of Ghostscript it should not decompress the JPEG either, which has quality benefits | 15:09.08 |
backtrack_ | kens, is not a fast solution | 15:09.30 |
kens | IAgain, I don't know what you mean. Given that PDF Creator is almost certainly using Ghostscript, using Ghostscript directly is bound ot be faster than opening the image in an application and printing it. | 15:10.31 |
backtrack_ | kens, there is not some software that allows opening images and creats pdf? | 15:54.17 |
kens | Yes, Ghostscript does that, we told you so above | 15:54.17 |
| There are bound to be other solutions, its a simple enough task | 15:54.17 |
backtrack_ | kens, the solution you are talking about is the one with commands? | 15:56.38 |
kens | Well yes, if you want a GUI you'll have to look elsewhere. What's the problem with a command line ? | 15:57.05 |
| You can always write a shell script | 15:57.22 |
backtrack_ | kens, at work in office you need a faster solution | 15:58.00 |
kens | In what way is htis not fast ? | 15:58.10 |
| I would expect that a command line solution would be faster than a GUI-based applcation | 15:58.29 |
| As I already said, opening an application, printing to a Port Monitor to get a PostScript file, and tehn sending the PostScript to Ghostscript anyway (which is what PDF Creator probably does) is bound to be slower than simply sending the original image straight to Ghostscript | 15:59.53 |
| Forward 1 day (to 2018/02/21)>>> | |