| <<<Back 1 day (to 2019/07/22) | Fwd 1 day (to 2019/07/24) >>> | 20190723 |
kk_g1 | Hello | 07:05.32 |
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. | 07:05.32 |
kk_g1 | any mupdf developers are there | 07:06.00 |
kens | No | 07:17.32 |
rawtaz | hi there. i have a problem; occasionally some out of five daily reports are not written to disk when sent to the CutePDF writer printer in windwos 2008 r2. i know it uses ghostscript, and there's a file where one can define the command line arguments it gives to ghostscript. | 15:50.53 |
| in order to debug this i'd like to turn on some debug/verbose mode in the ghostscript subprocess, such that i can get a log file where it says what it's doing, so i can see if i can spot any differences between when it works and when it doesnt. | 15:51.29 |
| i looked in the ghostscript manual but it's not clear to me what argument i can use to the ghostscript command, to make it log processing output to a file. can you give me some pointer? | 15:52.01 |
| i need that output/log to go to a file | 15:53.17 |
kens | You can redirect the Ghostscript stderr and stdout to a log file in the normal way with a shell | 15:53.32 |
| Use > and 2> | 15:53.43 |
rawtaz | that wont work, because i cant define the entire command line, i can just specify arguments to ghostscript | 16:16.59 |
| so, is there some argument to it whereby it will write some log of any kind to the specified file? | 16:17.20 |
chrisl | rawtaz: There is often a -q or -dQUIET option given on the gs command line, checking for that and removing it if it's there might be a start | 16:26.53 |
| You can also use the " -sstdout=%stderr" option which will redirect stdout onto stderr | 16:28.39 |
rawtaz | yea. problem is i have no control over where stderr is going, heh. that's why im looking for a way to tell GS to put logs in a file :) | 16:32.40 |
chrisl | Well, that's really a question for the CutePDF developers | 16:33.12 |
rawtaz | but regardless, i will try removing the -q that is in there, definitely. there's no -dQUIET, and i will also try -dDEBUG | 16:33.13 |
| yeah, i mailed them just now to see if they have any pointers. but then we can establish that there's no way to tell gs to log its processning to a file, other than redirecting outputs? | 16:33.40 |
chrisl | You can redirect stdout to a specific file, but I don't think you can for stderr, which is probably the more useful in this case | 16:34.31 |
rawtaz | right, yeah. hm, stdout in this context, is that the generated PDF data? | 16:35.03 |
chrisl | That depends on how gs is being called, it might be, but probably more likely just information and warnings | 16:35.40 |
rawtaz | ok. ill have a fiddle around with itin more detail | 16:35.52 |
| on a related note, if you were to want a PDF printer in windows that doesnt have one built-in, what software would you use? | 16:36.13 |
chrisl | I don't use Windows..... | 16:36.36 |
rawtaz | hehe ok :) | 16:36.42 |
| i only do when i have to | 16:36.58 |
| thanks for your kind help! | 16:38.32 |
chrisl | From what I recall, PrimoPDF was okay | 16:38.45 |
| But it likely works the same as CutePDF | 16:39.20 |
| rawtaz: Hmm, the curepdf website seems to claim they're using Ghostscript 8.15 (in a way that looks legally iffy to me). 8.15 dates back to 2003, and our current release is 9.27 | 16:41.25 |
rawtaz | yeah its crazy. i mentioned that in the mail to them just now. ive installed gs 9.19 a while back, works fine. i asked them specifically this time if one can update to the latest version of gs or if that breaks anything. | 16:42.45 |
| i dont understand why they reference such an old gs | 16:42.53 |
chrisl | Well, it might be worth updating to the latest version, and seeing how that goes | 16:43.18 |
rawtaz | yeah, might do that :) | 16:43.39 |
| still very curious about getting some logs though, regardless | 16:43.51 |
| but now i have more info to work with, so ill have a go at it as soon as i can | 16:44.05 |
chrisl | Well, good luck | 16:44.19 |
rawtaz | thanks! | 16:45.45 |
| will hang around here and report back once it's figured out | 16:45.55 |
| in case anyone's cat is curious | 16:46.02 |
chrisl | rawtaz: FWIW, one option is, when one goes wrong, configure the printer driver to "print to file", and that'll get you the Postscript. Then you can manually run that through Ghostcript at the command prompt, and see what gs tells you | 16:47.19 |
| But even then, we can't be exactly sure of the command line args that CutePDF is passing to gs | 16:48.13 |
rawtaz | hmmm ok. will keep that in mind | 16:50.05 |
Mark59 | Just downloaded GhostPCL and was wondering if there was a key command to go back up, like "Enter" goes down in the document | 21:04.02 |
| <<<Back 1 day (to 2019/07/22) | Forward 1 day (to 2019/07/24)>>> | |