| <<<Back 1 day (to 2018/01/11) | 20180112 |
Guest98116 | In ghostscript suppose I want to scale down a pdf pages contents to 1/4th of a4 size but keep the page a4 size making the rest whitespace is it possible? | 05:14.45 |
aiena | how to convert inches to PS Points | 06:40.29 |
| what is the formula? | 06:40.36 |
chrisl | aiena: PS points are 1/72 inch | 07:29.28 |
aiena | ok | 08:04.13 |
| chrisl: hmm a bit confused was using an online calculator to convert inches to points. It states that 8.27 inches is approx. 595.44 points. If I calculate with the formula 1inches = 1/72 PSpoints I get 8.27 inces = 0.11486 PS points. Int my test the online calculator value seems to render the correct pdf size am I calculating wrong? | 12:04.06 |
kens | No.... | 12:04.22 |
| 1 point is 1/72 of an inch | 12:04.30 |
| Therefore 8.27 inches is 8.27 * 72 not divided by 72 | 12:04.50 |
aiena | ah | 12:05.08 |
| ok | 12:05.29 |
| hmm something is wrong with this command I am trying to merge 3 pdfs http://paste.opensuse.org/view/raw/aaa5dfb9 | 12:09.16 |
| it is saying cannot find the output file and then giving another error | 12:09.37 |
kens | Ghostscript doesn't merge PDF files | 12:09.38 |
aiena | can I append one pdf to the tail of another with gs? | 12:10.04 |
kens | No | 12:10.11 |
| You cna make a new PDF file whcih should be visually the same, but it doens't merge PDF files | 12:10.29 |
| Its documented here: | 12:10.45 |
| https://www.ghostscript.com/doc/9.22/VectorDevices.htm#Overview | 12:10.45 |
| And the error you quote is fairly obvious I'd have thought | 12:11.04 |
| Ghostscript says it could not open the output file | 12:11.17 |
| And then terminates, because obviously it could not open the output file | 12:11.40 |
aiena | but why it cannot open the output file | 12:11.54 |
kens | I have no idea | 12:11.59 |
aiena | it is creating the output file the permissions are fine on the dir | 12:12.06 |
kens | Possibly the directory doesn't exist | 12:12.07 |
aiena | I was asking about the second error though | 12:12.14 |
kens | Or you have no permissions to write there | 12:12.14 |
| THe second error is a consequence of the first error | 12:12.27 |
aiena | and why is there a "." after the first | 12:12.30 |
| error? | 12:12.36 |
kens | If you can't create an output file then uyou can't open the pdfwrite device | 12:12.38 |
| Seriously ? | 12:12.51 |
aiena | ok what about the . after the file path? | 12:12.55 |
kens | Oh you;'re using ' | 12:13.09 |
| You can't do that I expect | 12:13.16 |
| Use " | 12:13.19 |
| Or just don't bother at all since there are no spaces in your filenames | 12:13.42 |
aiena | hmm single quotes work for the scaling command | 12:13.44 |
| kens there may be spaces in the file names | 12:13.58 |
kens | THen use " | 12:14.03 |
aiena | a python ui is running these commands | 12:14.09 |
| ok | 12:14.10 |
| I am just testing the commands themselves | 12:14.21 |
| ok will use "" | 12:14.31 |
| kens: here " will not enable shell expansion right | 12:15.03 |
kens | I would start by using neither. Does it work ? If so then use ", does it work ? etc | 12:15.12 |
| " is only expanded in scripts | 12:15.34 |
| Not at the command line | 12:15.40 |
| Though I am by no means a Linux shell script expert | 12:15.59 |
| Again, when approaching propblems, simplify the problem to identify what is wrong | 12:16.20 |
| You can add complexity later, first thing is to prove it works at all | 12:16.31 |
aiena | I knwo windows hates '' | 12:17.13 |
| know | 12:17.16 |
kens | THen you are incorrect | 12:17.22 |
aiena | yeah | 12:17.33 |
kens | Windows has no problem wih " | 12:17.34 |
aiena | has problems with single quotes | 12:17.50 |
kens | If you want to specify a path with spaces in Windows then you must use " | 12:17.56 |
aiena | no problems with double quotes | 12:17.58 |
| that is what I meant probably the irc client shows double quotes same as single quotes I guess | 12:18.23 |
| kens: actually the command runs ok. | 12:24.20 |
| So it seems to append the pdfs to each other creating a new one | 12:24.45 |
| I guess this is different from merging as such | 12:24.57 |
| hmm single quotes work in the shell but they dont work without a shell | 12:31.47 |
| can gs witout a shell accept pathnames with spaces in them? | 12:32.04 |
emendelson | Apologies for dumb question: Is it possible to tell gswin32c to find the title string in a PS file and use that title as the name of the PDF file created by pdfwrite? | 22:01.24 |
| My guess is that this is something any expert can do, but I haven't found it. Many thanks for any help with this. | 22:02.00 |
| Forward 1 day (to 2018/01/13)>>> | |