Re: Converting Blusfish syntax-highlighted PHP code in to a PDF



On 4/13/07, Gabriel Dragffy <dragffy@xxxxxxxxx> wrote:
Your command works flawlessly, once I have done "syntax enable" and I
get a great .ps file.

Sorry I forgot to mention syntax enable. Must be buried in a
configuration file at my place.

My final question is "what about PDF?". I have
found that I can 'cat' the .ps file and pipe that in to lp, but all my
attempts to integrate this operation in VIM's command line have failed -
can you suggest something?

Using cups-pdf, you can specify the printer that vim uses like

:set printdevice=Virtual_Printer

(or however the pdf-printer may be named in cups,) as a single command like

vim "+set printdevice=Virtual_Printer" +ha +q test.php

and the pdf output (here named: test.pdf) will go to the directory
specified in cups-pdf configuration.

There are also lots of print options that can be set like eg.

:set printoptions=header:0

for suppressing the header.

Another way would be using ghostscript's "ps2pdf" for converting .ps to .pdf.

Cheers,
n.

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: Converting Blusfish syntax-highlighted PHP code in to a PDF
    ... configuration file at my place. ... you can specify the printer that vim uses like ... and the pdf output will go to the directory ...
    (Ubuntu)
  • Re: How to pass a reference to the current module
    ... From an external source, such as configuration file, the user will specify the *name* of a function somehow with the assumption that the function will be coded somewhere by that name. ... To go one more step deeper into the rationale, the idea would be to replace optparse type behavior with a gui wherein one can type input parameters into fields rather than specify them at the command line with optional flags. ...
    (comp.lang.python)
  • Re: Keyrings and OPENSSH
    ... IBM Ported Tools OpenSSH doesn't allow you to specify IdentityKeyRingLabel ... Do you want to share the actual SAFkey ring and private key ... to utilize a single controlling configuration file, ... send email to listserv@xxxxxxxxxxxxxxx with the message: INFO IBM-MAIN ...
    (bit.listserv.ibm-main)
  • RE: Specify EIF Config file location programmatically
    ... You can specify an entry in the blah.exe.config file that redirects the ... | Unable to read and validate the configuration file ... | to programmatically specify the location of my EIF config. ...
    (microsoft.public.vsnet.enterprise.tools)
  • Re: Boot Order
    ... The service is macro software that ... software won't let me specify where its configuration file ... >In other words, in a shutdown script, net stop the ...
    (microsoft.public.win2000.setup)