Reputation
5,898
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
1 24 42
Newest
 Yearling
Impact
~1.1m people reached

May
27
comment Right align columns in Sublime Text 3
BTW, I didn't recommend -o markdown, but -o somename.pdf :)
May
27
comment Right align columns in Sublime Text 3
BTW, your "@Kurt's filter" is an honorable mention, but not factually correct :) -- I'm not the author of that filter, Wasif Hasan Baig is.
May
27
comment Right align columns in Sublime Text 3
See also my updated answer. I included an example about how to generate a pipe_table with alignment colons.
May
27
comment Right align columns in Sublime Text 3
Oh, I mis-understood your question then. I thought you'd wanted an easy way to edit your text columns in a text editor so they are aligned. I thought you already know about the different Pandoc/Markdown table formats... My answer showed that you do not need to manually format in an editor, and that you could tell Pandoc to generate Markdown tables from CSV. -- Anyway, there are more tricks to learn if you read man pandoc_markdown.
May
27
comment Right align columns in Sublime Text 3
Did you see my answer? It should be very easy to adapt it so that the specific use-case you introduced in your question is solved. My example expanded your use case quite a bit, in order to demo the full powers of this approached. You may easily "loose the sight on the whole wood because of all the many trees" therefore...
May
25
comment Add gutter (binding margin) to existing PDF file
I know, I was just hinting at its difference to /ImageShift .
May
25
comment Add gutter (binding margin) to existing PDF file
This should also work: gs -o out.pdf -sDEVICE=pdfwrite -c "<</PageOffset [100 -100]>>setpagedevice" -f in.pdf. The /ImageShift pagedevice parameter is only available in PostScript 3 and may not be supported by Ghostscript.
May
24
comment Add gutter (binding margin) to existing PDF file
Where did you find the original solution? :-) (Good improvement with PostScript-coding the automatic translation for odd pages, BTW) :)
May
24
comment Merge PDFs in the correct order
@MichaelKjörling: OMG, you may want to delete your comment again, despite of the upvote it got. To create multipage PDFs with convert is a crime! It's a crime against sobriety and common sense, because it will mince-meat all nice vector elements from PDF contents into full page raster images. Especially the form of the command you gave -- it will use the default resolution of 72 DPI, loosing lots and lots and lots of the original quality, and throwing away all font information, searchability and accessibility. I can't even...
May
22
comment How to convert .PDF to .eps (on Windows)
@nimcap: You can use gswin64c.exe -o inputpdf-page_%03d.eps -sDEVICE=eps2write -r300 -dPDFFitPage input.pdf and just accept the page size it outputs...
May
14
comment Error opening PDF files and change the size when copying from one PC to another
@Karan: C'mon, get reasonable again. No-one said he's lying. And asking for clarification I was. Also repeated in the answer "Are you, by any chance, ..."
May
14
comment Error opening PDF files and change the size when copying from one PC to another
Whatever he says... Maybe "policy" has forbidden to transfer files. So he is "clever" and opens file in text editor and copy'n'pastes. Been there, done that...
Apr
13
comment How to embed fonts into PDF
If setdistillerparams is ignored, the whole first -c "<<...>>" is also void. Ghostscript may then still complete the command successfully, albeit not producing the intended, but a different output (i.e., fonts not embedded).
Apr
13
comment How to embed fonts into PDF
@slhck: On what OS platform did you test this? The -c "...." is to hold a snippet of PostScript code. The quotes are there to work around spaces inside the snippet. That snippet could be divided into two snippets, but then each one should have its own -c and its own quotes, like -c "<< ... >>" -c "setdistillerparams". (So, yes, for the last -c the quotes could go, because the argument setdistillerparams does not include a space...)
Apr
13
comment How to embed fonts into PDF
@slhck: Thanks for spotting the missing quotes. I now added them at the correct location.
Feb
4
comment How to resume CUPS printer from command line?
@Sepero: All possible cupsd.conf parameters up to CUPS v1.7 are documented here: http://www.cups.org/documentation.php/doc-1.7/ref-cupsd-conf.html. Check the annotations for each parameter on the right edge of the page: it will tell you which CUPS release was the first to support it. Happy discovery of more useful params! :-)
Feb
4
comment How to resume CUPS printer from command line?
@Sepero: Yes. For example: you can try JobRetryInterval 58 to try every 58 seconds. Other possible values are 1w (1 week), 3d (3 days), 7h(7 hours) or 4m (4 minutes).
Jan
22
comment I want to change DPI with Imagemagick without changing the actual byte-size of the image data
@LeoIzen: I explained in detail that the DPI is only meaningful for 'rendering to devices'. Which means, the area would not stay constant. Which is why your downvote is not justified.
Jan
6
comment Combine/merge PDF files in Windows?
@sunk818: Thanks, I included your suggested edit into the answer (and then some).
Dec
24
comment Get current folder name by a DOS command?
@erict: path of batch file.